Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS-14789: Add maxTimeMS for cluster write commands #5821

Open
wants to merge 1 commit into
base: v6.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions source/reference/command/delete.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Definition
],
ordered: <boolean>,
writeConcern: { <write concern> },
maxTimeMS: <int>,
let: <document> // Added in MongoDB 5.0
}

Expand Down Expand Up @@ -114,6 +115,15 @@ Definition

.. versionadded:: 4.4

* - ``maxTimeMS``

- positive integer

- Optional. The cumulative time limit in milliseconds for processing operations on
the cursor. MongoDB aborts the operation at the earliest following
:term:`interrupt point`.

*Supported on mongos since MongoDB 5.0, only supported on mongod in previous versions.

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

Expand Down
12 changes: 11 additions & 1 deletion source/reference/command/insert.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ Definition
ordered: <boolean>,
writeConcern: { <write concern> },
bypassDocumentValidation: <boolean>,
comment: <any>
comment: <any>,
maxTimeMS: <int>
}

The :dbcommand:`insert` command takes the following fields:
Expand Down Expand Up @@ -103,6 +104,15 @@ Definition

.. versionadded:: 4.4

* - ``maxTimeMS``

- positive integer

- Optional. The cumulative time limit in milliseconds for processing operations on
the cursor. MongoDB aborts the operation at the earliest following
:term:`interrupt point`.

*Supported on mongos since MongoDB 5.0, only supported on mongod in previous versions.

:returns:

Expand Down
10 changes: 10 additions & 0 deletions source/reference/command/update.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ The :dbcommand:`update` command has the following syntax:
writeConcern: { <write concern> },
bypassDocumentValidation: <boolean>,
comment: <any>,
maxTimeMS: <int>,
let: <document> // Added in MongoDB 5.0
}
)
Expand Down Expand Up @@ -139,6 +140,15 @@ The command takes the following fields:

.. versionadded:: 4.4

* - ``maxTimeMS``

- positive integer

- Optional. The cumulative time limit in milliseconds for processing operations on
the cursor. MongoDB aborts the operation at the earliest following
:term:`interrupt point`.

*Supported on mongos since MongoDB 5.0, only supported on mongod in previous versions.

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

Expand Down