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

Cached the object permissions models in order to save queries #295

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

thedrow
Copy link
Contributor

@thedrow thedrow commented Jan 27, 2015

I noticed that guardian performs extra queries when they are not needed.
Caching them in process is probably a good idea.

Review on Reviewable

@thedrow
Copy link
Contributor Author

thedrow commented Jan 27, 2015

How the hell this failure happened? https://travis-ci.org/lukaszb/django-guardian/jobs/48511254#L200
I'm patching at the function level.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 96.07% when pulling 2353e36 on thedrow:feature/cache-object-permissions-models into dd33b2c on lukaszb:devel.

@brianmay
Copy link
Contributor

Caching is probably a good thing. It is also very good that this pull requests has tests to go with it too.

However, it is a rather complicated change, and I suspect there are more urgent things that need fixing first. So suggest we look at the more urgent things and revisit this one later.

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

Successfully merging this pull request may close these issues.

3 participants