---
title: "Documents Compression"
description: "The Documents Compression* feature employs the Zstd compression algorithm"
url: "https://docs.ravendb.net/6.2/studio/database/settings/documents-compression"
version: "6.2"
---

# Documents Compression

> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

## Documents Compression

> **Note**
>
> - The **Documents Compression** feature employs the `Zstd` compression algorithm  
>   to achieve more efficient data storage with constantly improving compression ratios.  
>   Learn more in this [overview](https://docs.ravendb.net/6.2/server/storage/documents-compression.md#overview).
>
> - Documents compression can be set for all collections, selected collections, and revisions.  
>   Default compression settings are [configurable](https://docs.ravendb.net/6.2/server/configuration/database-configuration.md#databasescompressioncompressallcollectionsdefault).
>
> - When turned on, compression will be applied to:
>   - **New documents**:
>     - A new document that is saved will be compressed.
>   - **Existing documents**:
>     - Existing documents that are modified and saved will be compressed.
>     - Existing documents that are Not modified will only be compressed when executing the  
>       [compact database operation](https://docs.ravendb.net/6.2/client-api/operations/server-wide/compact-database.md#compaction-triggers-compression).
>
> - From the Studio, go to **Settings** > **Documents Compression** to set compression for a particular database.  
>   Compression can also be set from the [Client API](https://docs.ravendb.net/6.2/server/storage/documents-compression.md).
>
> - To see the contents and size details of your database storage go to the [Storage Report](https://docs.ravendb.net/6.2/studio/database/stats/storage-report.md) view in the Studio.
>
> - In this page:
>   - [Set documents compression from Studio](#set-documents-compression-from-studio)

## Set documents compression from Studio

![Document Compression Configuration](https://docs.ravendb.net/assets/images/documents-compression-5ec91f93a035e2f1fc00ecbff0541c5f.png)

1. Go to **Settings > Document Compression**

2. Toggle on to compress documents from ALL collections.

3. Or, select specific collections to be compressed.

4. Toggle on to compress revisions of all collections.

5. Save the configuration.
