Skip to content

Commit 04dc4b4

Browse files
committed
Update limits.md
1 parent 05b12de commit 04dc4b4

File tree

1 file changed

+16
-26
lines changed

1 file changed

+16
-26
lines changed

articles/cosmos-db/mongodb/vcore/limits.md

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,36 @@ This document provides an overview of the service limits for Azure Cosmos DB for
1515

1616
## Query and Execution Limits
1717

18-
### Maximum MongoDB Query Memory Size
19-
- The maximum memory size for MongoDB queries depends on the tier. For example, for M80, the query memory size limit is approximately 150 MiB.
20-
- In sharded clusters, if a query pulls data across nodes, the limit on that data size is 1GB.
21-
22-
### Maximum Execution Time for MongoDB Operations
18+
### MongoDB Execution Limits
2319
- Maximum transaction lifetime: 30 seconds.
2420
- Cursor lifetime: 10 minutes. Note: A cursorNotFound error might occur if the cursor exceeds its lifetime.
25-
- Default: 120 seconds. This can be overridden on a per-query basis using `maxTimeMS`.
21+
- Default query execution limit: 120 seconds. This can be overridden on a per-query basis using `maxTimeMS`.
2622
#### Example:
2723
```javascript
2824
db.collection.find({ field: "value" }).maxTimeMS(5000)
2925
```
3026

27+
### Maximum MongoDB Query Size
28+
- The maximum memory size for MongoDB queries depends on the tier. For example, for M80, the query memory size limit is approximately 150 MiB.
29+
- In sharded clusters, if a query pulls data across nodes, the limit on that data size is 1GB.
30+
3131
## Indexing Limits
3232

3333
### General Indexing Limits
34-
- Maximum number of compound index paths: 32.
34+
- Maximum number of compound index fields: 32.
3535
- Maximum size for `_id` field value: 2KB.
3636
- Maximum size for index path: 256B.
37+
- Default maximum: 64.
38+
- Configurable up to: 300 indexes per collection.
3739
- Sorting is done in memory and does not push down to the index.
38-
- Background index builds are in private preview. To enable, customers need to file a support ticket.
39-
- A single index build can be in progress on the same collection.
40-
- The number of simultaneous index builds on different collections is configurable (default: 2).
41-
- Use the `currentOp` command to view the progress of long-running index builds.
42-
- Unique index builds are done in the foreground and block writes in the collection.
43-
- Composite indexes do not support geospatial indexes (2d, 2d sphere indexes).
40+
- Maximum level of nesting for embedded objects/arrays on index definitions: 6.
41+
- Background index builds are in preview. To enable, please file a support ticket.
42+
- A single index build can be in progress on the same collection.
43+
- The number of simultaneous index builds on different collections is configurable (default: 2).
44+
- Use the `currentOp` command to view the progress of long-running index builds.
45+
- Unique index builds are done in the foreground and block writes in the collection.
4446

4547
### Wildcard Indexing Limits
46-
- No specific limits; restrictions mirror MongoDB wildcard index restrictions.
4748
- For wildcard indexes, if the indexed field is an array of arrays, the entire embedded array is taken as a value instead of traversing its contents.
4849

4950
### Geospatial Indexing Limits
@@ -62,8 +63,6 @@ db.collection.find({ field: "value" }).maxTimeMS(5000)
6263
- Case insensitive tokenization is not supported yet.
6364

6465
### Vector Search Limits
65-
- Supported distance metrics: L2 (Euclidean), inner product, and cosine.
66-
- Supported indexing methods: IVFFLAT (GA) and HSNW.
6766
- Indexing vectors up to 2,000 dimensions in size.
6867
- Indexing applies to only one vector per path.
6968
- Only one index can be created per vector path.
@@ -94,7 +93,7 @@ db.collection.find({ field: "value" }).maxTimeMS(5000)
9493
- Maximum: 6 (in preview). Contact support for additional shards.
9594

9695
### Secondary Regions
97-
- Maximum: 1. Contact support for additional regions.
96+
- Maximum: 1 additional secondary region. Contact support for additional regions.
9897

9998
### Free Tier Limits
10099
The following limitations can be overidden by upgrading a paid tier
@@ -106,12 +105,6 @@ The following limitations can be overidden by upgrading a paid tier
106105
- No service-level-agreement provided (requires HA to be enabled)
107106
- Free tier clusters are paused after 60 days of inactivity where there are no connections to the cluster.
108107

109-
## Collection, Index, and Database Limits
110-
111-
### Indexes
112-
- Default maximum: 64.
113-
- Configurable up to: 300 indexes per collection.
114-
115108
## Replication and HA Limits
116109

117110
### Cross-Region Replication
@@ -125,9 +118,6 @@ The following limitations can be overidden by upgrading a paid tier
125118

126119
## Miscellaneous Limits
127120

128-
### Nesting Levels
129-
- Maximum level of nesting for embedded objects/arrays on index definitions: 6.
130-
131121
### Portal Mongo Shell Usage
132122
- The Portal Mongo Shell can be used for 120 minutes within a 24-hour window.
133123

0 commit comments

Comments
 (0)