MongoDB card review1 min read
mediumWhat are compound indexes in MongoDB?
Compound indexes contain multiple fields in a single index. They improve performance for queries that filter or sort using multiple fields. The order of fields in compound indexes affects how MongoDB uses them.