NetworkMessageCompressors
- Last Updated: August 9, 2024
- 1 minute read
- DataDirect Connectors
- JDBC
- MongoDB 6.1
- Documentation
Purpose
Specifies whether the driver attempts to use data compression for all messages passed between the client and server. Data compression can significantly reduce network traffic, which, in turn, can lower data transfer costs for cloud services.
Valid Values
none | zlib
Behavior
If set to none, the driver passes messages between the client and server without attempting to use compression.
If set to zlib, messages passed between the client and the server are compressed using the zlib compression algorithm. If the server is not configured to use this type of compression for network messages, the driver falls back to passing messages without using compression.
Data Source Methods
public String getNetworkMessageCompressors()
public void setNetworkMessageCompressors(String)
Default Value
none
Data Type
String