What has been your experience with Rails caching + compression?
What has been your experience with Rails caching + compression?
Mandatory disclaimer, I wrote the gem.
You will definitely have to flush before switching from no compression to compression or changing marshallers though.
it was based roughly on this https://gist.github.com/watsonbox/3170415
No, not really.
We use postgres and once you get to around 1m records, even COUNT is slow as it does a full table scan, even with indexes.
There are benchmarks on the project that illustrate the performance edge it has over Dalli as well.
Redis provides multiple databases (0-16) for just this situation. Use one db for caching, another for Sidekiq, and another for ad-hoc tasks. Redis can also be configured to evict entries with an expiration first, which means cached data will be cycled through while the important bits linger safely.