Cloud Firestore Admin V1 API - Module Google::Cloud::Firestore::Admin::V1::Database::ConcurrencyMode (v1.12.1)
1.12.1 (latest)
1.12.0
1.11.0
1.10.0
1.9.1
1.8.0
1.7.0
1.6.0
1.5.0
1.4.1
1.3.0
1.2.0
1.1.0
1.0.1
0.18.0
0.17.1
0.16.0
0.15.0
0.14.3
0.13.0
0.12.0
0.11.0
0.10.0
0.9.0
0.8.0
0.7.1
0.6.0
0.5.0
0.4.0
0.3.5
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
OPTIMISTIC
value: 1 Use optimistic concurrency control by default. This mode is available
for Cloud Firestore databases.
This is the default setting for Cloud Firestore Enterprise Edition
databases.
PESSIMISTIC
value: 2 Use pessimistic concurrency control by default. This mode is available
for Cloud Firestore databases.
This is the default setting for Cloud Firestore Standard Edition
databases.
OPTIMISTIC_WITH_ENTITY_GROUPS
value: 3 Use optimistic concurrency control with entity groups by default.
This mode is enabled for some databases that were automatically upgraded
from Cloud Datastore to Cloud Firestore with Datastore Mode.
It is not recommended for any new databases, and not supported for
Firestore Native databases.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-04-03 UTC.
[[["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 2026-04-03 UTC."],[],[]]