Case Study 3

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1|Page

Case Study 3 – Content Management System

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.

Strategy: Utilize document references or graph databases to establish relationships between


posts and comments. Alternatively, consider de-normalizing the data by storing comments
within the post document.

For the case study above, discuss these questions and propose a solution:

1. Article List with Authors:

- 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]

3. Author's Published Articles:

- Can you design a query to retrieve all articles authored by a specific author, including their
titles and publication dates? [embedding]

4. Most Popular Tags:

- 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

Database 1: Article Data

Database 2: Author Data

You might also like