Skip to content

Commit 760138c

Browse files
user settings
1 parent e63f33e commit 760138c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modules/concept-docs/pages/compression.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ The server may change compression settings for the bucket at any time, but it is
8383

8484
While the tiniest of documents will not be reduced in size by compressing, there is another category of slightly larger documents in whose case the time overhead of compressing and decompressing outweighs the slight advantage of marginally reduced transmission time from client to server or back.
8585

86-
To safeguard against the case of several thousand documents stealing CPU time to barely discernable advantage, a threshold for minimum doument size to compress is set in the SDK, with a sensible default value - that value can be seen for your chosen SDK in its API documentation (normally 32 bytes), and you can override this to disable compression:
87-
88-
* For Java, to disable compression from client to server, http://docs.couchbase.com/sdk-api/couchbase-core-io-1.6.0/com/couchbase/client/core/env/DefaultCoreEnvironment.Builder.html#compressionMinSize-int-[set `compressionMinSize` to max int (2147483647)^].
89-
Alternatively, to disable compression in both directions, set the Java system property `com.couchbase.snappyEnabled` to `False`.
90-
* For .NET, Snappy compression is not currently supported.
91-
* For SDKs using LCB's connstr (Node.js, PHP, Python), override the default with `"compression=off"` in your connection string.
92-
Additionally, for Python you can set the `couchbase.bucket.Bucket.compression` property to `COMPRESS_NONE`.
93-
* For Go, can also be disabled by using `compression=off` in the connection string.
86+
To safeguard against the case of several thousand documents stealing CPU time to barely discernable advantage,
87+
a threshold for minimum doument size to compress is set in the SDK, with a sensible default value of 32 bytes.
88+
89+
90+
== User Settings
91+
92+
By default, compression is turned on in the SDK.
93+
You can override the default compression setting with `enable_compression=off` in the xref:howtos:managing-connections.adoc#connection-strings[connection string].

0 commit comments

Comments
 (0)