Skip to content

Commit 45dc70c

Browse files
corryrootjdestefano-mongo
authored andcommitted
(DOCSP-17931): Updated link. (mongodb#5815)
* (DOCSP-17931): Updated link. * Update source/reference/connection-string.txt Co-authored-by: jdestefano-mongo <jonathan.destefano@10gen.com>
1 parent baa15ae commit 45dc70c

File tree

9 files changed

+37
-20
lines changed

9 files changed

+37
-20
lines changed

source/core/timeseries-collections.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ index for a time series collection is not displayed by
353353
Default Compression Algorithm
354354
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
355355

356-
Time series collections ignore the global default compression algorithm,
357-
:term:`snappy`, in favor of :term:`zstd`, unless a different compression
356+
Time series collections use the default collection compression algorithm,
357+
:term:`zstd`, unless a different compression
358358
algorithm is specified using the ``storageEngine`` option when the
359359
collection was created. For example, to change the compression algorithm
360360
to ``snappy`` for a new ``weather`` collection, add the following

source/core/wiredtiger.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ to replay all data modified since the last checkpoint. For information
8585
on the frequency with which MongoDB writes the journal data to disk,
8686
see :ref:`journal-process`.
8787

88-
WiredTiger journal is compressed using the :term:`snappy` compression
89-
library. To specify a different compression algorithm or no
90-
compression, use the
88+
Starting in MongoDB 5.1, WiredTiger journal is compressed using
89+
the :term:`zstd` compression library. To specify a different
90+
compression algorithm or no compression, use the
9191
:setting:`storage.wiredTiger.engineConfig.journalCompressor` setting.
9292
For details on changing the journal compressor, see
9393
:ref:`manage-journaling-change-wt-journal-compressor`.
@@ -119,15 +119,17 @@ With WiredTiger, MongoDB supports compression for all collections and
119119
indexes. Compression minimizes storage use at the expense of additional
120120
CPU.
121121

122-
By default, WiredTiger uses block compression with the :term:`snappy`
123-
compression library for all collections and :term:`prefix compression`
124-
for all indexes.
122+
Starting in MongoDB 5.1, WiredTiger has the following default settings:
125123

126-
For collections, the following block compression libraries are also available:
124+
- block compression with the zstd compression library for all collections.
125+
- prefix compression for all indexes.
126+
127+
For collections, the following block compression libraries are also
128+
available:
127129

128130
- :term:`zlib`
129131

130-
- :term:`zstd` (Available starting in MongoDB 4.2)
132+
- :term:`snappy`
131133

132134
To specify an alternate compression algorithm or no compression, use
133135
the :setting:`storage.wiredTiger.collectionConfig.blockCompressor`

source/faq/storage.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,13 @@ How much compression does WiredTiger provide?
6060

6161
The ratio of compressed data to uncompressed data depends on your data
6262
and the compression library used. By default, collection data in
63-
WiredTiger use :term:`Snappy block compression <snappy>`; :term:`zlib`
64-
and :term:`zstd` compression is also available. Index data use
65-
:term:`prefix compression` by default.
63+
WiredTiger use :term:`zstd` *(Starting in MongoDB 5.1)* ; :term:`zlib`
64+
and :term:`Snappy block compression <snappy>` compression is
65+
also available. Index data use :term:`prefix compression` by default.
66+
67+
.. note::
68+
69+
.. include:: /includes/fact-5.1-default-block-compression.rst
6670

6771
.. _wt-cache-and-eviction:
6872

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Starting in MongoDB 5.1, the default block compression engine used for
2+
MongoDB collections and journal data is :term:`zstd`.
3+
4+
In previous versions, the default block compression engine used was
5+
:term:`snappy<snappy>`.

source/reference/configuration-options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3914,7 +3914,7 @@ LDAP Parameters
39143914

39153915
.. setting:: storage.wiredTiger.collectionConfig.blockCompressor
39163916

3917-
*Default*: snappy
3917+
*Default*: zstd *(Starting in MongoDB 5.1)*
39183918

39193919
Specifies the default compression for collection data. You can
39203920
override this on a per-collection basis when creating collections.

source/reference/connection-string.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ Examples
130130
your deployment when you click the :atlas:`Connect
131131
</connect-to-database-deployment/>` button in the Atlas UI.
132132
To register a new Atlas account, start at the
133-
:mdbacct:`MongoDB Atlas registration page
134-
</register?tck=docs_server>`. To learn more, see
133+
`MongoDB Atlas registration page
134+
<https://www.mongodb.com/cloud/atlas/register?tck=docs_server_connection_cta>`__. To learn more, see
135135
:atlas:`Get Started with Atlas </getting-started/>`.
136136

137137
Your Atlas connection string might resemble the following

source/reference/glossary.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -900,9 +900,7 @@ Glossary
900900
snappy
901901
A compression/decompression library designed to balance
902902
efficient computation requirements with reasonable compression rates.
903-
Snappy is the default compression
904-
library for MongoDB's use of :ref:`WiredTiger
905-
<storage-wiredtiger>`. See `Snappy
903+
See `Snappy
906904
<https://google.github.io/snappy/>`_ and the :wtdocs:`WiredTiger compression
907905
documentation </compression.html>`
908906
for more information.

source/reference/program/mongod.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ WiredTiger Options
17331733

17341734
.. option:: --wiredTigerCollectionBlockCompressor <compressor>
17351735

1736-
*Default*: snappy
1736+
*Default*: zstd *(Starting in MongoDB 5.1)*
17371737

17381738
Specifies the default compression for collection data. You can
17391739
override this on a per-collection basis when creating collections.

source/release-notes/5.1.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ determines whether the temporary documents required for :ref:`retryable
5959
<retryable-writes>` :dbcommand:`findAndModify` commands are stored in
6060
the *side* collection (``config.image_collection``).
6161

62+
Default Block Compression Changed
63+
---------------------------------
64+
65+
.. include:: /includes/fact-5.1-default-block-compression.rst
66+
67+
The :term:`zstd` compression engine provides better compression ratios
68+
and will provide a better experience to the average mongoDB user.
69+
6270
Report an Issue
6371
---------------
6472

0 commit comments

Comments
 (0)