Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Combine database calls? #1

Closed
lephyrius opened this issue Mar 19, 2013 · 2 comments
Closed

Combine database calls? #1

lephyrius opened this issue Mar 19, 2013 · 2 comments

Comments

@lephyrius
Copy link

I notice that u do separate database calls for the results?
Any reason for it?

I have a feeling that combining all the database-queries into one will be more efficient.
The thing is that I use soulmate for it's efficiency and no reason to slow it down in some other end..
Maybe provide a way to only get the ID:s from the results in search_by method?

@dhruvasagar
Copy link
Owner

Makes absolute sense, strangely I did the same optimization where I am using this but I forgot to update it here in the gem. Will do so by tonight. Thanks a lot!

@dhruvasagar
Copy link
Owner

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.

seattle-jim pushed a commit to seattle-jim/soulmate_rails that referenced this issue Jun 18, 2013
Make the redis database be namespaced to app
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants