Databases & SQL · Databases & SQL

MongoDB

Get started with MongoDB by understanding its purpose, architecture, and key concepts. Learn why MongoDB is classified as a NoSQL database, how it stores data as flexible documents, and how databases, collections, and documents work together. This tutorial provides a beginner-friendly overview of MongoDB, helping you understand its advantages, common use cases, and role in modern software applications.

Sponsored

Lesson outline

  1. 37
    Connect PyMongo to MongoDB

    Learn how to connect PyMongo to a running MongoDB instance in this hands-on tutorial. Step-by-step instructions, troubleshooting tips, and what to study next.

  2. 38
    Insert and Query Documents with PyMongo

    Learn how to insert and query documents with PyMongo in MongoDB. This hands-on tutorial covers core concepts, step-by-step operations, troubleshooting, and what to study next.

  3. 39
    PyMongo Cursor Methods

    Learn to use PyMongo cursor methods for advanced querying in MongoDB—sorting, limiting, skipping, and projecting data efficiently. Includes hands-on steps and troubleshooting.

  4. 40
    PyMongo Update Operators

    Learn to update documents with PyMongo operators. Master $set, $inc, $push, and more with hands-on examples and clear explanations.

  5. 41
    Aggregate Data in PyMongo

    Learn to aggregate data with PyMongo using the collection.aggregate() method. Step-by-step MongoDB tutorial covers pipeline stages, hands-on exercises, troubleshooting, and next steps.

  6. 42
    Mongoose vs PyMongo

    This tutorial compares Mongoose vs PyMongo, the two most popular MongoDB drivers for Node.js and Python. Learn the key differences, when to choose each, and how to connect and perform basic CRUD operations in both. Includes step-by-step walkthroughs, troubleshooting tips, and what to study next.

  7. 43
    Use MongoDB Atlas for a Managed Database

    Learn how to use MongoDB Atlas for a managed cloud database. This tutorial explains the benefits of a fully managed service, walks you through creating a cluster, connecting your app, and troubleshooting common issues.

  8. 44
    Deploy MongoDB Replica Set

    Deploy a MongoDB replica set for high availability. Learn the mental model, step-by-step setup, and troubleshooting tips in this hands-on lesson.

  9. 45
    Shard a Cluster

    Learn to shard a MongoDB cluster for horizontal scaling—understand how to distribute data across shards, choose a shard key, and configure a sharded cluster from the shell.

  10. 46
    Backup and Restore MongoDB

    Learn how to back up and restore MongoDB databases using mongodump and mongorestore. This step-by-step tutorial covers key concepts, hands-on examples, troubleshooting, and best practices to keep your data safe.

  11. 47
    MongoDB Database Profiler

    Learn to monitor MongoDB performance using the database profiler. This tutorial explains what the profiler is, how to enable it, how to read profiler output, and how to use it to find slow queries and improve performance.

    MongoDB — step-by-step tutorials

    What you will find here

    This track walks through mongodb in order — each lesson is server-rendered HTML you can read without JavaScript. Follow the outline, then practice in the browser IDE when a lesson links to runnable code.

    Tutorials vs quizzes and code samples

    Tutorials teach in sequence. For quick checks use quizzes. For copy-paste snippets see code samples. For deeper reading browse articles.