Cloud Firestore Admin V1 API - Module Google::Cloud::Firestore::Admin::V1::Database::ConcurrencyMode (v0.15.0)

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 mode is available for Cloud Firestore 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.

OPTIMISTIC_WITH_ENTITY_GROUPS

value: 3
Use optimistic concurrency control with entity groups by default.

This is the only available mode for Cloud Datastore.

This mode is also available for Cloud Firestore with Datastore Mode but is not recommended.