CRUD Tips
8min
The legacy query API methods support atomic operations across collections. For more information, see Ditto documentation version 4.4 > Best Practices for CRUD > Batching Multiple Operations.
Cross-collection atomic operations are currently unsupported by Ditto Query Language (DQL); development is actively in progress.
The following snippet shows an example of the writeStrategy: insertDefaultIfAbsent parameter passed as an argument to theupsert method:
For example, use DispatchQueue.global, as follows:
Updated 12 Mar 2024
Did this page help you?