From 29cac7d68b81ac10e91d5a9bb9b18bb08f804e3c Mon Sep 17 00:00:00 2001 From: rustagir Date: Thu, 23 Jan 2025 17:28:27 -0500 Subject: [PATCH 1/2] DOCSP-45877: txn parallel ops not supported --- docs/transactions.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/transactions.txt b/docs/transactions.txt index 377423d67..d3da56802 100644 --- a/docs/transactions.txt +++ b/docs/transactions.txt @@ -24,8 +24,8 @@ In this guide, you can learn how to perform a **transaction** in MongoDB by using {+odm-long+}. Transactions let you run a sequence of write operations that update the data only after the transaction is committed. -If the transaction fails, the {+php-library+} that manages MongoDB operations -for the {+odm-short+} ensures that MongoDB discards all the changes made within +If the transaction fails, {+php-library+}, which manages MongoDB operations +for the {+odm-short+}, ensures that MongoDB discards all the changes made within the transaction before they become visible. This property of transactions that ensures that all changes within a transaction are either applied or discarded is called **atomicity**. @@ -74,15 +74,20 @@ MongoDB Server and the {+odm-short+} have the following limitations: you perform write operations in a transaction. To learn more about this limitation, see :manual:`Create Collections and Indexes in a Transaction ` in the {+server-docs-name+}. + - MongoDB does not support nested transactions. If you attempt to start a transaction within another one, the extension raises a ``RuntimeException``. To learn more about this limitation, see :manual:`Transactions and Sessions ` in the {+server-docs-name+}. + - {+odm-long+} does not support the database testing traits ``Illuminate\Foundation\Testing\DatabaseTransactions`` and ``Illuminate\Foundation\Testing\RefreshDatabase``. As a workaround, you can create migrations with the ``Illuminate\Foundation\Testing\DatabaseMigrations`` trait to reset the database after each test. +- {+odm-long+} does not support running parallel operations within a + single transaction. + .. _laravel-transaction-callback: Run a Transaction in a Callback From d59611bcaf030d4b5d4ce7dea6436d8ef42b530f Mon Sep 17 00:00:00 2001 From: rustagir Date: Thu, 23 Jan 2025 17:30:24 -0500 Subject: [PATCH 2/2] small fix --- docs/transactions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/transactions.txt b/docs/transactions.txt index d3da56802..b4a7827ba 100644 --- a/docs/transactions.txt +++ b/docs/transactions.txt @@ -24,7 +24,7 @@ In this guide, you can learn how to perform a **transaction** in MongoDB by using {+odm-long+}. Transactions let you run a sequence of write operations that update the data only after the transaction is committed. -If the transaction fails, {+php-library+}, which manages MongoDB operations +If the transaction fails, the {+php-library+}, which manages MongoDB operations for the {+odm-short+}, ensures that MongoDB discards all the changes made within the transaction before they become visible. This property of transactions that ensures that all changes within a transaction are either applied or