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
1717Overview
1818--------
1919
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
2121{+driver-short+}.
2222
2323You can use compression to reduce the size of messages sent between your application
@@ -51,15 +51,16 @@ show in the following example:
5151Specifying Compression to a MongoClient
5252---------------------------------------
5353
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:
5657
5758.. code-block:: python
5859
5960 client = pymongo.MongoClient(compressors="snappy")
6061
6162You 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:
6364
6465.. code-block:: python
6566
You can’t perform that action at this time.
0 commit comments