CData Python Connector for MongoDB

Build 25.0.9454

Compression

Specifies the compression method used for network communication between the client and the MongoDB server.

Possible Values

None, Snappy, Zlib

Data Type

string

Default Value

"None"

Remarks

This property enables compression and decompression of messages between the application and MongoDB, thereby reducing the total amount of data transmitted over the network.

  • When Compression is set to None, it is not enabled. This means that the data can remain in its original, uncompressed form.
  • When Compression is set to Snappy, it indicates that network traffic between the MongoDB client and server will be compressed using the Snappy algorithm. Both the client and the server must support Snappy compression, which is enabled by default in most modern versions of the service.
  • When Compression is set to Zlib, the connector activates network compression using the zlib algorithm for communication between the client and server.

This property helps improve performance when working with large MongoDB documents or tables.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9454