Skip to content
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

Backburner is not using Mongoid::QueryCache #89

Open
silentshade opened this issue Mar 25, 2015 · 1 comment
Open

Backburner is not using Mongoid::QueryCache #89

silentshade opened this issue Mar 25, 2015 · 1 comment

Comments

@silentshade
Copy link
Collaborator

Starting with Mongoid 4 / Moped 2 it supports it's own caching strategy known as Query Cache. It's thread based, so it has to be enabled in each thread. ThreadsOnFork creates separate number of threads(workers) for each tube, so we have to enable the query cache within each thread. I'm thinking the best practice would give a global hook to run on thread creation. I'll try to investigate this problem.

@contentfree
Copy link
Collaborator

@silentshade Solving this will likely solve #90 as well.

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

No branches or pull requests

2 participants