File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/cosmos-db/mongodb/vcore Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ Using Ctrl + C to interrupt the createIndex command after it has been issued doe
47
47
48
48
## Create Compound Indexes for queries with predicates on multiple fields
49
49
Compound indexes should be used in the following scenarios:
50
- - Queries with filters on any field in the JSON structure making it easier to use wildcard indexing instead of indexing each field individually.
51
- - Queries with filters on all but a few fields making it is easier to exclude a few fields instead of indexing most of the fields individually.
50
+ - Queries with filters on multiple fields
51
+ - Queries with filters on multiple fields and with one or more fields sorted in ascending or descending order
52
52
53
53
Consider the following document within the 'cosmicworks' database and 'employee' collection
54
54
``` json
You can’t perform that action at this time.
0 commit comments