A free, self-paced textbook in 8 chapters. Read a chapter, then drill it with the 50 companion flashcards using spaced repetition.
MongoDB is a NoSQL document-oriented database designed for scalability and high performance. Unlike traditional relational databases that organize data into rigid tables, MongoDB s...
MongoDB provides a comprehensive set of CRUD, or Create, Read, Update, Delete, operations that map cleanly onto everyday application needs. To create documents, you use db.collecti...
The aggregation pipeline is MongoDB's primary tool for complex data analysis and transformation. It processes documents through a sequence of stages, each transforming the data and...
Indexing is the principal mechanism for improving query performance in MongoDB. Without indexes, MongoDB performs a collection scan, examining every document in a collection to sat...
A replica set is MongoDB's primary mechanism for high availability and data redundancy. It consists of a group of MongoDB instances that maintain the same data set, including one p...
Sharding is MongoDB's strategy for horizontal scaling, enabling databases to handle data sets and throughput levels that exceed the capacity of any single server. In a sharded depl...
MongoDB's flexible document model enables several schema design patterns that differ from traditional relational approaches. The two fundamental strategies are embedding and refere...
MongoDB provides a rich ecosystem of features and tools beyond basic CRUD operations. Multi-document ACID transactions, supported since version 4.0 for replica sets and 4.2 for sha...