ਬੁਨਿਆਦੀ ਸਿੰਗਲ-ਫੀਲਡ ਇੰਡੈਕਸਾਂ ਤੋਂ ਪਰੇ, MongoDB compound index ordering (ESR rule), covered queries, partial/sparse indexes, TTL indexes, ਅਤੇ ਹੋਰ ਬਹੁਤ ਸਾਰੀਆਂ ਉੱਨਤ ਇੰਡੈਕਸਿੰਗ ਰਣਨੀਤੀਆਂ ਦਾ ਅਫ਼ਰਾ ਦਿੰਦਾ ਹੈ — ਜੋ query performance ਨੂੰ ਨਾਟਕੀ ਤਰੀਕੇ ਨਾਲ ਪ੍ਰਭਾਵਿਤ ਕਰਦੀਆਂ ਹਨ। ਉਹਨਾਂ ਨੂੰ ਸਮਝਣਾ MongoDB ਨੂੰ ਵੱਡੇ ਪੈਮਾਨੇ 'ਤੇ ਓਪਟੀਮਾਈਜ਼ ਕਰਨ ਲਈ ਮੁੱਖ ਹੈ।
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).
