concurrencyMode property

String? concurrencyMode
getter/setter pair

The concurrency control mode to use for this database. Possible string values are:

  • "CONCURRENCY_MODE_UNSPECIFIED" : Not used.
  • "OPTIMISTIC" : Use optimistic concurrency control by default. This mode is available for Cloud Firestore databases.
  • "PESSIMISTIC" : 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" : 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.

Implementation

core.String? concurrencyMode;