EXERCISE
1Meet the NoSQL family member that's most like your familiar SQL databases - but with superpowers for handling messy, real-world data!
If SQL databases are like strict filing cabinets where every folder must have exactly the same structure, then Document databases are like smart notebooks where each page can be different but still organized!
Popular Examples: MongoDB, Elasticsearch
What makes them special:
In practice:
// User notification document - each one can be unique!
{
"userId": "12345",
"type": "friend_request",
"message": "John wants to connect",
"timestamp": "2025-06-05T10:30:00Z",
"customData": {
"profilePic": "john.jpg",
"mutualFriends": 5
}
}
Perfect for:
Pro Tip: Document databases let you store messy, real-world data without forcing it into rigid table structures.