-
Notifications
You must be signed in to change notification settings - Fork 167
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
union operation in find method, similar to the IN Operator in SQL #74
Conversation
Hello, Due to my nature to want to be able to control these sort of stuff (and most of the time use cases like these Here's an example of a simple enough implementation: https://gist.github.com/d05e53cc3f1ae7623a8e |
… Set and MultiSet using it too
@cyx - thanks for the snippet. It is quite simple as you said, but still requires much more familiarity with the inner mechanisms of both ohm and redis. I'm working with @joker-777 so perhaps I'm biased, but I think that from an ohm end-user's perspective (in my case, a rather inexperienced one), using |
Hi @cyx Thanks for your answer. I think similar to @gingerlime. User.find(:tag => [["ruby", "python"]]) I hope you will merge this pull request nevertheless. |
any chance of getting this merged? or a reason why it definitely shouldn't? |
+1 for including this. |
I think you can do |
Hi
I always wanted s.th. similar like the SQL Operatorfor 'IN' for ohm.
I've implemented it now for Model.find and I was wondering if you have any thoughts about it?
In our case we have 4 slugs and instead of doing this:
We wanna do
Could there be some performance issues? What would be more performant?
I didn't run any test yet nor didn't write any. I first would like to get some other views about this subject.
Thanks