@@ -15,35 +15,36 @@ This document provides an overview of the service limits for Azure Cosmos DB for
15
15
16
16
## Query and Execution Limits
17
17
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
23
19
- Maximum transaction lifetime: 30 seconds.
24
20
- 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 ` .
26
22
#### Example:
27
23
``` javascript
28
24
db .collection .find ({ field: " value" }).maxTimeMS (5000 )
29
25
```
30
26
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
+
31
31
## Indexing Limits
32
32
33
33
### General Indexing Limits
34
- - Maximum number of compound index paths : 32.
34
+ - Maximum number of compound index fields : 32.
35
35
- Maximum size for ` _id ` field value: 2KB.
36
36
- Maximum size for index path: 256B.
37
+ - Default maximum: 64.
38
+ - Configurable up to: 300 indexes per collection.
37
39
- 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 .
44
46
45
47
### Wildcard Indexing Limits
46
- - No specific limits; restrictions mirror MongoDB wildcard index restrictions.
47
48
- 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.
48
49
49
50
### Geospatial Indexing Limits
@@ -62,8 +63,6 @@ db.collection.find({ field: "value" }).maxTimeMS(5000)
62
63
- Case insensitive tokenization is not supported yet.
63
64
64
65
### Vector Search Limits
65
- - Supported distance metrics: L2 (Euclidean), inner product, and cosine.
66
- - Supported indexing methods: IVFFLAT (GA) and HSNW.
67
66
- Indexing vectors up to 2,000 dimensions in size.
68
67
- Indexing applies to only one vector per path.
69
68
- Only one index can be created per vector path.
@@ -94,7 +93,7 @@ db.collection.find({ field: "value" }).maxTimeMS(5000)
94
93
- Maximum: 6 (in preview). Contact support for additional shards.
95
94
96
95
### Secondary Regions
97
- - Maximum: 1. Contact support for additional regions.
96
+ - Maximum: 1 additional secondary region . Contact support for additional regions.
98
97
99
98
### Free Tier Limits
100
99
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
106
105
- No service-level-agreement provided (requires HA to be enabled)
107
106
- Free tier clusters are paused after 60 days of inactivity where there are no connections to the cluster.
108
107
109
- ## Collection, Index, and Database Limits
110
-
111
- ### Indexes
112
- - Default maximum: 64.
113
- - Configurable up to: 300 indexes per collection.
114
-
115
108
## Replication and HA Limits
116
109
117
110
### Cross-Region Replication
@@ -125,9 +118,6 @@ The following limitations can be overidden by upgrading a paid tier
125
118
126
119
## Miscellaneous Limits
127
120
128
- ### Nesting Levels
129
- - Maximum level of nesting for embedded objects/arrays on index definitions: 6.
130
-
131
121
### Portal Mongo Shell Usage
132
122
- The Portal Mongo Shell can be used for 120 minutes within a 24-hour window.
133
123
0 commit comments