Temel tek alan indexlerinin ötesinde, MongoDB gelişmiş indexleme stratejilerini sunmaktadır — compound index sıralaması (ESR kuralı), covered queries, partial/sparse indexes, TTL indexes ve daha fazlası — bunlar sorgu performansını dramatik şekilde etkiler. Bunlara hakim olmak, MongoDB'yi ölçekte optimize etmek için anahtardır.
Compound indexler için ESR kuralı
For a compound index supporting a query with Equality, Sort, and Range conditions,
order the fields: EQUALITY → SORT → RANGE (the ESR rule).
