Skip to content

Commit 3c7df8c

Browse files
authored
Update how-to-create-indexes.md
1 parent 07201a9 commit 3c7df8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cosmos-db/mongodb/vcore/how-to-create-indexes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ Using Ctrl + C to interrupt the createIndex command after it has been issued doe
4747

4848
## Create Compound Indexes for queries with predicates on multiple fields
4949
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
5252

5353
Consider the following document within the 'cosmicworks' database and 'employee' collection
5454
```json

0 commit comments

Comments
 (0)