Skip to content

RethinkDB should compress on-disk and/or network data #759

Closed

Description

@thoughtpolice

Issue #310 was originally about this but the problem was misidentified, and now it is home to its own proper discourse.

This ticket is to track the original goal: enabling RethinkDB to use compression. There's generally some savings to be had.

Ideally, RDB would probably compress both on-disk data and network data. IME, these are both normally pretty good wins. Sometimes I/O even gets better due to being able to commit more data to disk (or the network pipe) at once.

So there are some things to definitely consider like whether they should be tunable, what algorithm to use, etc. Personally, I have lately used lz4 as my compressor, as it's both fast and liberally licensed (BSD.)

However, as Rethink is under the Affero GPL, I would also like to pitch QuickLZ as an option (under GPL.) I've used it in the past (commercially even) and it's great. It's very fast and one benefit it has API-wise is that it includes a streaming mode as well as a block compression mode. Particularly for networking it might be worth looking into. Generally the streaming mode can save you a few % in my experience if you use it, but depending on how you transport data (like in consistently sized blocks,) it may be easier to layer in with a traditional API.

Activity

  1. coffeemug commented on May 7, 2013

    @coffeemug
    Contributor

    @thoughtpolice -- thanks so much for recreating the original issue!

  2. coffeemug commented on Jun 24, 2013

    @coffeemug
    Contributor

    This should be very easy to do once #939 is in. We might be able to get this done in 1.8 FYI.

  3. coffeemug commented on Jun 24, 2013

    @coffeemug
    Contributor

    Oh sorry, I was actually talking exclusively about on-disk compression above. (We could do drivers <-> server network compression pretty easily, but we haven't talked about cross-node compression -- this is probably much further away)

  4. mlucy commented on Dec 14, 2013

    @mlucy
    Member

    Closing in favor of #1396, which has more discussion on this, including numbers for specific compression algorithms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions