Batch Write Transactions
Use a write transaction when you want to combine multiple database operations into a single atomic transaction.
The legacy query API methods support atomic operations across collections. For more information, see ditto.store.write in your language's API reference.
Cross-collection atomic write transactions are currently unsupported by Ditto Query Language (DQL); development is actively in progress.
For example, in Swift, use DispatchQueue.global, as follows:
If you see this message in your Ditto logs, read the Troubleshooting guide for more information about how to debug blocked database transactions.
Updated 02 Aug 2024
Did this page help you?