-
Notifications
You must be signed in to change notification settings - Fork 423
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
Bullet`s N+1 warning #681
Comments
Patches welcome to fix this and any other issues like it.
|
Just quick-checked how the main forum page rendered, and looks like Bullet is absolutely right here. What I noticed is calling "render category.forums" there, while the view got from controller only I don't have time now to make all checking and fixing, may be someone who has working forum and who has wish to fix this eager loading problem will do it? We need to check all controllers and queries for N+1 query, it can be done with https://github.com/flyerhzm/bullet gem or manually, then we need to fix ActiveRecord queries with correct methods ( |
|
Hey @sintro I'll be looking into this when I can. Is there any chance that you'll want to work on this or pair on this together? Also, editing your comment for clarity. |
@krainboltgreene I can help out. I did some preliminary fixes, but much much more to do. |
Awesome!
|
How's this looking? And, could it be related to #697? |
Just began to work with this gem, and noticed the warning form Bullet gem
This warning was right on categories index (main page of forem) and I am not sure on other actions there will not be same warnings. As forum is not main feature of my project, I am leaving my investigations on this problem for later, but still post this issue here. Did anybody face this problem, or it is just Bullet`s paranoia?
Update: Bullet was correct.
The text was updated successfully, but these errors were encountered: