Skip to content

Properly glob keys as separate arguments to read_multi #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2013

Conversation

fancyremarker
Copy link
Contributor

Previously, read_multi was passing all keys as a single array, which works with DalliStore, but only due to a discrepancy in the behavior of DalliStore compared to the default (ActiveSupport::Cache::Store). This discrepancy has been addressed by petergoldstein/dalli#362.

The upshot of this bug is that Mongoid::CachedJson would never actually utilize the cache with a cache other than DalliStore, and a call trace that hit read_multi. In particular, this degrades performance in most :test and :development environments, and introduces a discrepancy between :test and :production.

Previously, read_multi was passing all keys as a single array, which
works with DalliStore, but only due to a discrepancy in the behavior of
DalliStore compared to the default (ActiveSupport::Cache::Store).
dblock added a commit that referenced this pull request May 6, 2013
Properly glob keys as separate arguments to read_multi
@dblock dblock merged commit ba532bf into mongoid:master May 6, 2013
@dblock
Copy link
Collaborator

dblock commented May 7, 2013

I released 1.5.1, fyi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants