Professional Documents
Culture Documents
Case Study 3
Case Study 3
Case Study 3
A social media network stores user profiles, posts, and comments in a NoSQL database. Students
must retrieve a user's post along with all the comments for that post.
For the case study above, discuss these questions and propose a solution:
- How would you retrieve a list of all articles along with their titles and the names of their
respective authors? [linking]
2. Tag-Based Search:
- Given a specific tag, how would you find articles that are tagged with it? [linking]
- Can you design a query to retrieve all articles authored by a specific author, including their
titles and publication dates? [embedding]
- How would you identify the most popular tags based on the number of articles they are
associated with? [map reduce]
5. Article Comments:
- Retrieve the comments for a specific article, including the comment content and the
usernames of the commenters. [denormalize/graph database]
6. Content Versioning:
- What strategies would you implement to handle content revisions and maintain a history of
changes to articles? [linking]
7. Data Maintenance:
- As new articles and comments are added, how would you ensure that the database remains
efficient and reliable for content retrieval? [graph database]
2|Page