You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eqJoin now behaves like innerJoin, that is to say it drops document that don't get a match in the second stream. It would be nice to be able to keep them.
People can use concatMap, but they may look for a sugar syntax and not find it -- which is irritating.
We should definitely allow eqJoin to work with outerJoin semantics (or the other way around). Moving to optional until we can get a full proposal going.
One more thing that would be really nice if we update eqJoin would be to enforce that we find just one match on the right sequence (hasOne relation).
If I do an eqJoin on the primary id, then that's cool, but if I use a secondary index, I somehow have no guarantee that I'll just get one document back.
I think I talk at some point with @jdoliner and he told me that it would be hard to enforce unique values in the secondary index, so if we can have a flag in eqJoin to throw in case more than one match is found, it would be really nice.
Now I have to use an inner query and a r.branch (two if I want an outerJoin behavior), which is not really pretty.
I think in principle, enforcement of this has nothing to do with eqJoin. It's basically about introducing a unique secondary index option (which may or may not be feasible in a distributed system environment).
Activity
coffeemug commentedon Jul 10, 2013
We should definitely allow
eqJointo work withouterJoinsemantics (or the other way around). Moving to optional until we can get a full proposal going.neumino commentedon Jul 12, 2013
One more thing that would be really nice if we update
eqJoinwould be to enforce that we find just one match on the right sequence (hasOnerelation).If I do an
eqJoinon the primary id, then that's cool, but if I use a secondary index, I somehow have no guarantee that I'll just get one document back.I think I talk at some point with @jdoliner and he told me that it would be hard to enforce unique values in the secondary index, so if we can have a flag in
eqJointo throw in case more than one match is found, it would be really nice.Now I have to use an inner query and a
r.branch(two if I want an outerJoin behavior), which is not really pretty.coffeemug commentedon Jul 13, 2013
I think in principle, enforcement of this has nothing to do with
eqJoin. It's basically about introducing a unique secondary index option (which may or may not be feasible in a distributed system environment).srh commentedon Mar 5, 2014
@wojons requested this feature in IRC today.
wojons commentedon Mar 5, 2014
Would be nice to have all the types of joins available since you never know which one your going to need.
coffeemug commentedon Jul 18, 2014
Bump, lots of people are running into this.
mlucy commentedon Jul 18, 2014
@coffeemug -- should we move this to a different milestone?
coffeemug commentedon Jul 18, 2014
Closing in favor of #2720.