Does Couchbase Server compress data internally? Via Snappy Compression?

Hello,

i hope everyone had a good start into the new year. :>

Those are my questions:

  1. Does couchbase server (3.x) internally always compress (via snappy?) values for each key/value pair? So that in memory AND disk only the compressed value reside, which are then transparently decompressed, before being sent back to any client?
  2. If it is compressed internally, does XDCR use those compressed bytes for replication as well?

I ask this, because i could compress JSON on the client side via my own transcoder. And I wonder, if that is actually necessary? It is just important to me, that the data is compacted on the couchbase server side. And that this compacted data is transferred between the data centers.

There are some google pages, that mention, that couchbase uses snappy internally. But i find no definite proof.

Thank you for any help or pointer.

Have a nice day!

Hi… I am having the same question about compression. please let me know if couchbase have any in-built data compression?

Regards
Shiv

Couchbase has Snappy compression in the persistence path, but not when transferring over the network to either clients or XDCR. Some client libraries, even Couchbase clients, have built in compression if enabled and it’s even sometimes on-by-default for non-JSON.

Thank you for quick response.

And… to follow… Is it possible to disable the compression?