Skip to content

Commit d93356c

Browse files
DOCS-14789: Add maxTimeMS for cluster write commands
1 parent 133153b commit d93356c

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

source/reference/command/delete.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Definition
4343
],
4444
ordered: <boolean>,
4545
writeConcern: { <write concern> },
46+
maxTimeMS: <int>,
4647
let: <document> // Added in MongoDB 5.0
4748
}
4849

@@ -114,6 +115,15 @@ Definition
114115

115116
.. versionadded:: 4.4
116117

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
117127

118128
* - :ref:`let <delete-let-syntax>`
119129

source/reference/command/insert.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ Definition
2929
ordered: <boolean>,
3030
writeConcern: { <write concern> },
3131
bypassDocumentValidation: <boolean>,
32-
comment: <any>
32+
comment: <any>,
33+
maxTimeMS: <int>
3334
}
3435

3536
The :dbcommand:`insert` command takes the following fields:
@@ -103,6 +104,15 @@ Definition
103104

104105
.. versionadded:: 4.4
105106

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
106116

107117
:returns:
108118

source/reference/command/update.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ The :dbcommand:`update` command has the following syntax:
5959
writeConcern: { <write concern> },
6060
bypassDocumentValidation: <boolean>,
6161
comment: <any>,
62+
maxTimeMS: <int>,
6263
let: <document> // Added in MongoDB 5.0
6364
}
6465
)
@@ -139,6 +140,15 @@ The command takes the following fields:
139140

140141
.. versionadded:: 4.4
141142

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
142152

143153
* - :ref:`let <update-let-syntax>`
144154

0 commit comments

Comments
 (0)