MongoDB Craft & Gotchas

Type quirks, partial indexes, $expr, collation, and explain plans ops actually use.

Production MongoDB is more than CRUD. Learn BSON type traps, partial and collation indexes, $expr power and cost, write concern trade-offs, and how to read explain output.

Learn with Ada, your AI coding mentor — ask questions or tap I’m stuck in any lesson for a nudge without spoilers.

Practitioner6 lessons~4h
First lesson free

Try lesson 1 without an account. Sign in to unlock the remaining 5 lessons and save progress.

Course content

Data Modeling

  • BSON Types — NumberLong vs Int32 vs DoubleFree15 min

Indexes

  • 🔒Partial Indexes — Index Less, Go Faster16 min
  • 🔒Collation — Case-Insensitive Sort and Match14 min

Query Power

  • 🔒$expr — Field-to-Field Comparisons15 min

Operations

  • 🔒Write Concern — Durability vs Speed14 min
  • 🔒Reading explain() — IXSCAN vs COLLSCAN16 min