Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Combine database calls? #1
I notice that u do separate database calls for the results?
I have a feeling that combining all the database-queries into one will be more efficient.
Hey sorry for the late fix, I had forgotten about this, busy in other things.
Do your info, I had to modify supermodel and add support for a 'where' method for a model to be able to run my tests. It's a basic implementation but works for most basic use cases. I have sent a pull request for the same, but until that is accepted we'll have to use my fork of it, i've overridden the supermodel gem with my fork in Gemfile. Will remove that once the pull request gets approved.