MongoDB is fast by default, until it isn't. Once your collections grow past a few hundred thousand documents, unindexed queries start doing full collection scans, and latency climbs fast. Indexes are the single most impactful thing you can do to fix this.

But MongoDB gives you a lot of index types, and picking the wrong one — or using the right...