I have a Meteor app which lists books. Clicking a book shows a list of its chapters and clicking a chapter shows a list of its comments. Now I'm trying to figure out how to optimize performance on the Meteor client.
My main concern is how I should structure my collections and if there is any way to let the server know what data to send first. I'm new to NoSQL but it seems that the correct Mongo approach is to let the chapters be subdocuments of a book and the comments subdocuments of the chapters.
However, I wouldnt want the client to have to wait until all chapters and comments are loaded into the client db just to show the list of books. I guess I could go with a relational db configuration but I am not sure if I can force Meteor to send the books table first or if using Meteor with a relational db would give me any other issues down the road.
Also, since I'm only transferring text, maybe this will not be much of a problem? Any suggestions appreciated!