Skip to content

Nosql MongoDB Textbook

A free, self-paced textbook in 8 chapters. Read a chapter, then drill it with the 50 companion flashcards using spaced repetition.

8 chapters · 50 cards · Updated

Chapters

  1. 1Foundations of MongoDB

    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...

  2. 2CRUD Operations and Querying

    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...

  3. 3The Aggregation Framework

    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...

  4. 4Indexing and Query Performance

    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...

  5. 5Replication for High Availability

    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...

  6. 6Sharding for Horizontal Scaling

    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...

  7. 7Schema Design Patterns

    MongoDB's flexible document model enables several schema design patterns that differ from traditional relational approaches. The two fundamental strategies are embedding and refere...

  8. 8Advanced Features and Ecosystem

    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...

← Back to the Nosql MongoDB deck