Basic single-field indexes కు అతిరిక్తగా, MongoDB advanced indexing strategies లను అందిస్తుంది — compound index ordering (ESR rule), covered queries, partial/sparse indexes, TTL indexes, మరియు మరెన్నో — ఇవి query performance ను నాటకీయంగా ప్రభావితం చేస్తాయి. వీటిని నైపుణ్యంగా వాడుకోవడం MongoDB ని పెద్ద స్థాయిలో optimize చేయడానికి కీలకం.
Compound indexes కు ESR rule
For a compound index supporting a query with Equality, Sort, and Range conditions,
order the fields: EQUALITY → SORT → RANGE (the ESR rule).
