Horizon: Relational joins `.eqJoin()`

Created on 30 Apr 2016  路  3Comments  路  Source: rethinkdb/horizon

Wondering if we could at minimum support .eqJoin(). I'm thinking of a cascading syntax for .find() and .findAll()

something like .find(table1).join(table1Id)

I think this tackles one to one, one to many and many to many associations :)

Needs DB support client server still formulating

Most helpful comment

Unfortunately changefeeds on joins have been pushed into RethinkDB 2.5. We decided to implement changefeeds on reductions in RethinkDB 2.4 first instead. RethinkDB 2.5 is probably about 5-6 months away.

All 3 comments

This would be really cool, though I'd like to wait until changefeeds on eqJoins are added in RethinkDB 2.4. (see rethinkdb/rethinkdb#3997). Once they're in the server it'll be very fast in Horizon

Is this still in plans? Any idea when rdb2.4 and related horizon goodies will be released :)?

Any good temporary solutions? Best I could come up with:

Watch data from 2 collections and let middleware re-combine data from both whenever 1 updates.

Unfortunately changefeeds on joins have been pushed into RethinkDB 2.5. We decided to implement changefeeds on reductions in RethinkDB 2.4 first instead. RethinkDB 2.5 is probably about 5-6 months away.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hnordt picture hnordt  路  9Comments

thinklinux picture thinklinux  路  5Comments

danielmewes picture danielmewes  路  7Comments

deontologician picture deontologician  路  9Comments

coffeemug picture coffeemug  路  4Comments