Closed adamcrown closed 4 years ago
Currently, we fetch individual records from Redis, which is not great for performance. We should instead use Redis MGET to fetch as many partials in a collection as possible in one call. The only render and cache the misses.
This should be supported already by ActiveSupport::Cache::Store#fetch_multi.
ActiveSupport::Cache::Store#fetch_multi
Currently, we fetch individual records from Redis, which is not great for performance. We should instead use Redis MGET to fetch as many partials in a collection as possible in one call. The only render and cache the misses.