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.

Practitioner6 lessons~4h
0/6 complete

Course content

Data Modeling

  • BSON Types — NumberLong vs Int32 vs Double15 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