Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4af26e7

Browse files
DOCSP-45877: txn parallel ops not supported (#3247) (#3249)
* DOCSP-45877: txn parallel ops not supported * small fix (cherry picked from commit b89a52e)
1 parent 3ac8c21 commit 4af26e7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎docs/transactions.txt‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ In this guide, you can learn how to perform a **transaction** in MongoDB by
2424
using {+odm-long+}. Transactions let you run a sequence of write operations
2525
that update the data only after the transaction is committed.
2626

27-
If the transaction fails, the {+php-library+} that manages MongoDB operations
28-
for the {+odm-short+} ensures that MongoDB discards all the changes made within
27+
If the transaction fails, the {+php-library+}, which manages MongoDB operations
28+
for the {+odm-short+}, ensures that MongoDB discards all the changes made within
2929
the transaction before they become visible. This property of transactions
3030
that ensures that all changes within a transaction are either applied or
3131
discarded is called **atomicity**.
@@ -74,15 +74,20 @@ MongoDB Server and the {+odm-short+} have the following limitations:
7474
you perform write operations in a transaction. To learn more about this
7575
limitation, see :manual:`Create Collections and Indexes in a Transaction </core/transactions/#create-collections-and-indexes-in-a-transaction>`
7676
in the {+server-docs-name+}.
77+
7778
- MongoDB does not support nested transactions. If you attempt to start a
7879
transaction within another one, the extension raises a ``RuntimeException``.
7980
To learn more about this limitation, see :manual:`Transactions and Sessions </core/transactions/#transactions-and-sessions>`
8081
in the {+server-docs-name+}.
82+
8183
- {+odm-long+} does not support the database testing traits
8284
``Illuminate\Foundation\Testing\DatabaseTransactions`` and ``Illuminate\Foundation\Testing\RefreshDatabase``.
8385
As a workaround, you can create migrations with the ``Illuminate\Foundation\Testing\DatabaseMigrations``
8486
trait to reset the database after each test.
8587

88+
- {+odm-long+} does not support running parallel operations within a
89+
single transaction.
90+
8691
.. _laravel-transaction-callback:
8792

8893
Run a Transaction in a Callback

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /