Compound Indexes and the Order of Fields

A compound index keeps its entries in order by one field and then by the next, so a single index can serve a filter and a sort together, and the order of its fields (equal, then sort, then range) decides how much of it MongoDB has to read.

By

Updated

Cheat sheet: Compound Indexes and the Order of Fields
Category
MongoDB
Level
Journeyman
Tags
Compound Index, database, ESR Rule, Index Prefix, mongodb, sort, limit and skip