MongoDB Assignment
Design a MongoDB database with at least two collections that contain related documents. You must:
1. Create a minimum of 10 documents per collection.
2. Demonstrate at least 15 queries, covering:
ü Basic CRUD operations (insert, update, delete, find).
ü Aggregation Framework (e.g., $group, $match, $sort, $limit).
ü Data validation (using MongoDB schema validation techniques).
Extra Marks Will Be Awarded For:
ü Using document relationships (e.g., using _id references or embedded documents).
ü Real-time data ingestion (e.g., streaming IoT sensor data, stock prices, or Twitter API data).
ü Indexing Strategies (e.g., creating indexes on frequently queried fields).
ü Joins using $lookup to relate data across collections.
ü Sharding (demonstrating how MongoDB distributes data across servers).
Report: Create a report discussing your project, covering the following:
ü Brief background/context
ü Discuss the Dataset/Data used
ü Screenshots of queries and output
ü Discuss your main queries, and any extra implementations such as joins, document relationships, indexing etc.
Screencast Presentation of Your Assignment
Create an MP4 video (max 4 minutes) with voice-over, presenting your MongoDB work.
Your video should include:
1. Overview of your MongoDB database – describe the collections and document structures.
2. Demo of your key MongoDB queries – show execution in the MongoDB shell.
Use Screencast-O-Matic (or similar tools) to record your video.
Submission Instructions:
Upload your report as “StudentNumber_MongoDB.docx”, your Mongo queries in a separate word doc, and the screencast to Moodle under Upload area.
You must also submit a signed A1 plagiarism form for this assignment.
Final Notes:
· Ensure you provide clear screenshots for all MongoDB queries.
· Add complexity to MongoDB queries for higher marks.