-
Notifications
You must be signed in to change notification settings - Fork 24
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
SQL Query for each row #27
Comments
Looks like a bug to me. The two queries per record are what happens when a child gets |
With the fix in pull request #31, only one SELECT query is executed per row. There should still be a way to get all of them using only one query. |
And with another commit appended to pull request #31, only one query is used per type of needed record! That would leave your specific situation at only two queries: One for selecting the |
Awesome! Thanks for your work, hope it gets merged soon =) |
So do I, but until then you can put this in your Gemfile so it gets the
|
Is this bugged in that there seems to be a SQL query for each row in the table? This is from the console:
migrations/create_fruits.rb
migrations/create_bananas.rb
models/fruit.rb
models/banana.rb
Environment
Rails 3.1
The text was updated successfully, but these errors were encountered: