Gzip diffs to improve storage usage
What does this MR do?
#212661 (closed) pointed out that we weren't taking advantage of Rails.cache
compression here, since we're working directly with redis. This MR adds ActiveSupport:Gzip
to our read/write so we get that benefit.
I was curious about our size savings, both for the current .to_json
data as well as if we stored the data as a string.. JSON, as expected, compresses rather nicely:
Data | Size |
---|---|
Uncompressed hash.to_s
|
57287 |
Compressed hash.to_s
|
20371 |
Uncompressed hash.to_json
|
68508 |
Compressed hash.to_json
|
11877 |
Related to #212661 (closed)
Edited by Mayra Cabrera