BDA3
BDA3
MongoDB module, tailored to a 5-mark answer level. I’ve explained things simply, with
examples where needed, and included diagrams in text format for easier understanding.
1. MongoDB – Introduction
Example Document:
"name": "Rahul",
"age": 22,
"course": "BDA"
3. Replication in MongoDB
Replication helps in data redundancy and high availability. MongoDB uses a replica
set, a group of MongoDB servers where:
If the primary goes down, one of the secondaries is elected as the new primary
automatically.
Diagram:
[Primary]
[Secondary1] [Secondary2]
4. Sharding in MongoDB
Components of Sharding:
Diagram:
Use Case: Social media platforms with millions of users and posts.
MongoDB supports various data types similar to other databases, but some are unique
to BSON:
• String – "hello"
• Integer – NumberInt(25)
• Double – 25.6
• Boolean – true/false
• Date – ISODate("2023-05-01")
Advantages:
Disadvantages:
7. Features of MongoDB
• Aggregation Framework: For complex data processing like SQL’s GROUP BY.
Let me know if you'd like this in a Word file or want diagrams/images added!