Conversation
…tead of the first element
There was a problem hiding this comment.
Redundant self detected.
|
I don't know if |
|
We have BTW remember this is not a relational DB, so there are a few differences on how we model our data. On |
|
Yes, that's true. But the same would apply to I would leave that desicion up to the user. You provide different alternatves with ork and he decides how to use them. For example I believe that for small, medium size apps, modeling relationships with secondary indexes is just fine. When index2i was released in 2011, the very same Basho was saying this: http://www.slideshare.net/rklophaus/querying-riak-just-got-easier-introducing-secondary-indices Maybe a small gem is the right place for this, like ork-hooks or the others. |
|
About the I'm sorry but I don't believe that I should merge this into |
|
@damiancaruso do not close this PR yet. I will reconsider this PR, when I come back from vacations. |
|
When you say the I would enable all the features using index2i when including a module as somebody might be using Ork with Bitcask backend. For example the current I'm working on You're right about links, I think is deprecated in Riak 2. |
This is basically the same as
referencedbut returning the Ork::ResultSet instead of the first element.Useful for one-to-many or many-to-many associations based on secondary indexes.