Please correct me if I am wrong, but is one complex query less expensive than multiple small queries -> Question? Seems the question listed has opposing views. I was always taught that the most expensive operation is the opening and closing of the connection to the db. If that is the case, what is the most efficient way to bootstrap your data on application startup?
For simplicities sake, lets say my application requires a collection of latest posts, latest categories, the logged in user, and latest tags. Now I could fetch all this data in one query, or I could fetch this data individually. Which one would you recommend? If I went with a single query, how do you usually do this in Backbone, and how would you do this over a Restful API?
Thanks so much
Tyrone