Skip to content

Commit 873fddb

Browse files
authored
Update how-to-create-indexes.md
1 parent baeab66 commit 873fddb

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
@@ -27,12 +27,12 @@ Indexes should be created only for queryable fields. Wildcard indexing should be
2727
When a new document is inserted for the first time or an existing document is updated or deleted, each of the specified fields in the index is also updated. If the indexing policy contains a large number of fields (or all the fields in the document), more resources are consumed by the server in updating the corresponding indexes. When running at scale, only the queryable fields should be indexed while all remaining fields not used in query predicates should remain excluded from the index.
2828

2929
## Create the necessary indexes before data ingestion
30-
For optimal performance, indexes should be created upfront before data is loaded. Documents inserted for the first time and subsequently updated or deleted will have corresponding indexes updated synchronously. If indexes are created after data is ingested, more server resources are consumed to index historical data. Depending on the size of the historical data, this operation is time consuming and impacts steady state read and write performance.
30+
For optimal performance, indexes should be created upfront before data is loaded. All document writes, updates and deletes will have corresponding indexes updated synchronously. If indexes are created after data is ingested, more server resources are consumed to index historical data. Depending on the size of the historical data, this operation is time consuming and impacts steady state read and write performance.
3131

3232
> [!NOTE]
3333
For scenarios where read patterns change and indexes need to be added, background indexing should be enabled, which can be done through a support ticket.
3434

35-
## For multiple indexes created on historical data, issue non-blocking createIndex commands for each field
35+
## For multiple indexes created on historical data, issue nonblocking createIndex commands for each field
3636
It is not always possible to plan for all query patterns upfront, particularly as application requirements evolve. Changing application needs inevitably requires fields to be added to the index on a cluster with a large amount of historical data.
3737

3838
In such scenarios, each createIndex command should be issued asynchronously without waiting on a response from the server.

0 commit comments

Comments
 (0)