File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Compression
17
17
Overview
18
18
--------
19
19
20
- In this guide, you can learn how to use supported compression algorithms with
20
+ In this guide, you can learn how to use compression algorithms with
21
21
{+driver-short+}.
22
22
23
23
You can use compression to reduce the size of messages sent between your application
@@ -51,15 +51,16 @@ show in the following example:
51
51
Specifying Compression to a MongoClient
52
52
---------------------------------------
53
53
54
- You can also specify the compression algorithm to use when creating a ``MongoClient`` object,
55
- as shown in the following example:
54
+ You can also specify the compression algorithm to use by passing the algorithms to use
55
+ to the ``compressors`` parameter of the ``MongoClient`` constructor, as shown in the
56
+ following example:
56
57
57
58
.. code-block:: python
58
59
59
60
client = pymongo.MongoClient(compressors="snappy")
60
61
61
62
You can also specify multiple compression algorithms by passing a list of algorithms to the
62
- ``MongoClient`` constructors , as shown in the following example:
63
+ ``MongoClient`` constructor , as shown in the following example:
63
64
64
65
.. code-block:: python
65
66
You can’t perform that action at this time.
0 commit comments