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"]],[["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-07 UTC."],[[["\u003cp\u003eThis webpage documents the \u003ccode\u003eConcurrencyMode\u003c/code\u003e enum within the \u003ccode\u003eGoogle.Cloud.Firestore.Admin.V1\u003c/code\u003e namespace, detailing the various concurrency control options for transactions.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003eThere are four \u003ccode\u003eConcurrencyMode\u003c/code\u003e fields defined: \u003ccode\u003eOptimistic\u003c/code\u003e, \u003ccode\u003eOptimisticWithEntityGroups\u003c/code\u003e, \u003ccode\u003ePessimistic\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e, each providing different concurrency control mechanisms.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOptimisticWithEntityGroups\u003c/code\u003e is the default concurrency setting for Cloud Datastore customers, while \u003ccode\u003ePessimistic\u003c/code\u003e is the default for Cloud Firestore customers.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOptimistic\u003c/code\u003e and \u003ccode\u003ePessimistic\u003c/code\u003e settings are available for Cloud Firestore customers, enabling them to select their preferred concurrency control approach, and the \u003ccode\u003eUnspecified\u003c/code\u003e field is not used.\u003c/p\u003e\n"]]],[],null,[]]