You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RethinkDB should compress on-disk and/or network data #759
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.
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)
Activity
coffeemug commentedon May 7, 2013
@thoughtpolice -- thanks so much for recreating the original issue!
coffeemug commentedon Jun 24, 2013
This should be very easy to do once #939 is in. We might be able to get this done in 1.8 FYI.
coffeemug commentedon Jun 24, 2013
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)
mlucy commentedon Dec 14, 2013
Closing in favor of #1396, which has more discussion on this, including numbers for specific compression algorithms.