Module: Google::Cloud::Firestore::Admin::V1::Database::ConcurrencyMode

Defined in:
proto_docs/google/firestore/admin/v1/database.rb

Overview

The type of concurrency control mode for transactions.

Constant Summary collapse

CONCURRENCY_MODE_UNSPECIFIED =

Not used.

0
OPTIMISTIC =

Use optimistic concurrency control by default. This mode is available for Cloud Firestore databases.

1
PESSIMISTIC =

Use pessimistic concurrency control by default. This mode is available for Cloud Firestore databases.

This is the default setting for Cloud Firestore.

2
OPTIMISTIC_WITH_ENTITY_GROUPS =

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.

3