Reactive Joins in Meteor
discovermeteor.com
Reactive Joins in Meteor
1–9 of 9 posts
Re: Reactive Joins in Meteor
#2Re: Reactive Joins in Meteor
#3Great post, we were just talking about this stuff in the office today!
Re: Reactive Joins in Meteor
#4Re: Reactive Joins in Meteor
#5I can imagine this scenario would scale much better using meteor to receive just the basic models (unjoined) but then doing the filter/joins on the client side (I don't use meteor, but from what I understand you can basically query the data you've received on the server from the client). That way, the server wouldn't bear the burden of running almost identical queries for multiple clients who only differ in their user ID's.
Re: Reactive Joins in Meteor
#6Re: Reactive Joins in Meteor
#7Re: Reactive Joins in Meteor
#8Why not use backwards document references? Put the post id on each comment and query like Comments.find({post: post._id}, {limit: 30}) to get 30 comments. Why would you store all of the comments for a Post on the post itself?
At least that's how I understand the philosophy.
Re: Reactive Joins in Meteor
#9Why not use backwards document references? Put the post id on each comment and query like Comments.find({post: post._id}, {limit: 30}) to get 30 comments. Why would you store all of the comments for a Post on the post itself?