Reference documentation and code samples for the Cloud Firestore Admin V1 API module Google::Cloud::Firestore::Admin::V1::Database::ConcurrencyMode.
The type of concurrency control mode for transactions.
Constants
CONCURRENCY_MODE_UNSPECIFIED
value: 0 Not used.
OPTIMISTIC
value: 1 Use optimistic concurrency control by default. This setting is available
for Cloud Firestore customers.
PESSIMISTIC
value: 2 Use pessimistic concurrency control by default. This setting is available
for Cloud Firestore customers.
This is the default setting for Cloud Firestore.
OPTIMISTIC_WITH_ENTITY_GROUPS
value: 3 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-15 UTC."],[],[]]