Compression

  • concept
    +
    In response to increasing volumes of data being sent over the wire, Couchbase Data Platform now provides data compression between the SDK and Couchbase Server. However, stable Snappy support is not yet available in Microsoft’s .NET platform.

    Couchbase Server (in the Enterprise Edition) stores documents in compressed form, when it is enabled in the server for a particular bucket, using Snappy Compression. As the Snappy compression library is not available for .NET, the server will automatically uncompress any compressed documents before sending them to the .NET client.

    If compression is set to active on the server, documents will be stored there in compressed form, even though the .NET client has sent them uncompressed, thus saving storage space (but not network bandwidth).

    Community-Supported Snappy Library

    Whilst there is no official Microsoft-supported Snappy compression in the .NET platform, the community has produced a promising option in Snappier — integrated with the the .NET Couchbase.Extensions Library, Since .NET SDK 3.4.10, the .NET SDK has been able to work with external Snappy libraries as the setting for the Server flag SnappyEverywhere is now supported.

    Install Snappier with the .NET Couchbase.Extensions Library,

    Additional Information

    Learn more about Snappy Compression with Couchbase Server here.