File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ Definition
43
43
],
44
44
ordered: <boolean>,
45
45
writeConcern: { <write concern> },
46
+ maxTimeMS: <int>,
46
47
let: <document> // Added in MongoDB 5.0
47
48
}
48
49
@@ -114,6 +115,15 @@ Definition
114
115
115
116
.. versionadded:: 4.4
116
117
118
+ * - ``maxTimeMS``
119
+
120
+ - positive integer
121
+
122
+ - Optional. The cumulative time limit in milliseconds for processing operations on
123
+ the cursor. MongoDB aborts the operation at the earliest following
124
+ :term:`interrupt point`.
125
+
126
+ *Supported on mongos since MongoDB 5.0, only supported on mongod in previous version
117
127
118
128
* - :ref:`let <delete-let-syntax>`
119
129
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ Definition
29
29
ordered: <boolean>,
30
30
writeConcern: { <write concern> },
31
31
bypassDocumentValidation: <boolean>,
32
- comment: <any>
32
+ comment: <any>,
33
+ maxTimeMS: <int>
33
34
}
34
35
35
36
The :dbcommand:`insert` command takes the following fields:
@@ -103,6 +104,15 @@ Definition
103
104
104
105
.. versionadded:: 4.4
105
106
107
+ * - ``maxTimeMS``
108
+
109
+ - positive integer
110
+
111
+ - Optional. The cumulative time limit in milliseconds for processing operations on
112
+ the cursor. MongoDB aborts the operation at the earliest following
113
+ :term:`interrupt point`.
114
+
115
+ *Supported on mongos since MongoDB 5.0, only supported on mongod in previous version
106
116
107
117
:returns:
108
118
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ The :dbcommand:`update` command has the following syntax:
59
59
writeConcern: { <write concern> },
60
60
bypassDocumentValidation: <boolean>,
61
61
comment: <any>,
62
+ maxTimeMS: <int>,
62
63
let: <document> // Added in MongoDB 5.0
63
64
}
64
65
)
@@ -139,6 +140,15 @@ The command takes the following fields:
139
140
140
141
.. versionadded:: 4.4
141
142
143
+ * - ``maxTimeMS``
144
+
145
+ - positive integer
146
+
147
+ - Optional. The cumulative time limit in milliseconds for processing operations on
148
+ the cursor. MongoDB aborts the operation at the earliest following
149
+ :term:`interrupt point`.
150
+
151
+ *Supported on mongos since MongoDB 5.0, only supported on mongod in previous version
142
152
143
153
* - :ref:`let <update-let-syntax>`
144
154
You can’t perform that action at this time.
0 commit comments