Use optimistic concurrency control by default. This setting is available
for Cloud Firestore customers.
OptimisticWithEntityGroups
Use optimistic concurrency control with entity groups by default. This is
the only available setting for Cloud Datastore customers.
This is the default setting for Cloud Datastore.
Pessimistic
Use pessimistic concurrency control by default. This setting is available
for Cloud Firestore customers.
This is the default setting for Cloud Firestore.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage documents the `ConcurrencyMode` enum within the `Google.Cloud.Firestore.Admin.V1` namespace, detailing the various concurrency control options for transactions."],["The latest version documented is 3.12.0, with a range of versions available from 2.2.0 up to the current release, each with a link to its respective documentation."],["There are four `ConcurrencyMode` fields defined: `Optimistic`, `OptimisticWithEntityGroups`, `Pessimistic`, and `Unspecified`, each providing different concurrency control mechanisms."],["`OptimisticWithEntityGroups` is the default concurrency setting for Cloud Datastore customers, while `Pessimistic` is the default for Cloud Firestore customers."],["The `Optimistic` and `Pessimistic` settings are available for Cloud Firestore customers, enabling them to select their preferred concurrency control approach, and the `Unspecified` field is not used."]]],[]]