Syllabus- Important Facts On MongoDB
MongoDB is a popular, open-source NoSQL database designed to handle large volumes of unstructured data. Unlike traditional relational databases that use tables and rows, MongoDB stores data in flexible, JSON-like documents, which allows for a more dynamic and scalable data model. This flexibility makes MongoDB an excellent choice for applications that require large-scale, real-time data processing and where the data structure can evolve over time.
Session 1 – Introduction to MongoDB
- Installing MongoDB
- The current SQL/NoSQL landscape
- Document-oriented vs. other types of storage
- Mongo's featureset
- Common use-cases
- MongoDB databases
- MongoDB Collections
- MongoDB Documents
- Indexes in MongoDB
- Data Modeling in MongoDB
- Replication in MongoDB
- Sharding in MongoDB
Session 2 – CRUD Operations in MongoDB
-
Creating documents
- insert
- update
- save
-
Querying documents
- find
- Working with equality
- Query operators
- Building complex queries
- Updating documents
- Deleting documents
Session 3 – Introduction to Mongoose
- Word on ORM/ODM
- Installing mongoose
- Connecting to MongoDB from mongoose
- Defining Mongoose schemas
- Creating models with Mongoose
- CRUD operations with Mongoose
- Mongoose middleware
- Validation in Mongoose
- Mongoose plugins
- Population (referencing documents)
- Indexing in Mongoose
- Error handling in Mongoose
Session 4 – Core Concepts of Mongoose
- Understanding mongoose schemas and datatypes
- Working with Models
- Using modifiers in schema
- Using virtual fields
- Optimizing query performance by enabling indexes
Session 5 – Extending Models
- Working with hooks
- Validation of model data
- Creating custom static methods
- Creating custom instance methods
- CRUD operations with Mongoose
- Virtuals in Mongoose
Session 6 – MongoDB Operations
- Connecting to MongoDB using Mongoose
- Database and Collection management
- Performing CRUD operations
- Working with MongoDB queries and operators
- Aggregation framework in MongoDB
- Using indexes to optimize queries