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
How to avoid N+1 queries in CamaleonCms? #556
Comments
Come up with monkey patching, but shouldn't be a better way of doing this? |
Solved! please test using github version |
I'm getting N+1 query warnings as well, due to a couple of issues. The first issue is the I also have an issue with a list of links to related posts. When I loop over a group of posts to display a link for each, I get an N+1 warning. I think this is the result of calling My code:
|
@briank-musichouse
Regards, |
Thanks, I'll give it a try. |
I'm using bullet to detect N+1 queries. And it complains about custom_fields:
N+1 Query detected CamaleonCms::CustomFieldsRelationship => [:custom_fields] Add to your finder: :includes => [:custom_fields]
Here is my view with query code:
The text was updated successfully, but these errors were encountered: