Re:Efficient GraphQL Queries in Ruby on Rails and Postgres
by imtringued on Thursday September 26, 2019 @06:55AM
(#21079793)
Joins don't scale to more than one relation.
Modify the original sample to load two relations: fetch all events with their first 5 categories and all their users.
If you use two joins then you get a combinatorial explosion because you are now getting all permutations of the (event, category, user) tuple.
Modify the original sample to load two relations: fetch all events with their first 5 categories and all their users. If you use two joins then you get a combinatorial explosion because you are now getting all permutations of the (event, category, user) tuple.