आधारभूत एकल-क्षेत्र इन्डेक्सभन्दा परे, MongoDB ले उन्नत इन्डेक्सिङ् स्ट्र्याटेजी प्रदान गर्छ — compound index ordering (ESR rule), covered queries, partial/sparse indexes, TTL indexes, र अन्य — जसले क्वेरी कार्यक्षमतालाई नाटकीय रूपमा प्रभावित गर्छ। तिनलाई आয्वत गर्नु MongoDB लाई स्केलमा अप्टिमाइज गर्ने कुञ्जी हो।
Compound indexes को लागि ESR नियम
For a compound index supporting a query with Equality, Sort, and Range conditions,
order the fields: EQUALITY → SORT → RANGE (the ESR rule).
