↧
Answer by Daniel Williams for MongoDB Feed Design and Query
So this document you show represents one blog post and those are the comments, tags, likes, etc? If that's the case this isn't too bad.1.db.posts.find({'$or':[{'comments.author.id':{$in:[some list of...
View ArticleMongoDB Feed Design and Query
I am designing a news feed for a blog site. I am trying to design the feed so blogs with recent activity from your friends keeps those blogs on the top of your feed while feeds you have no...
View Article