Cloud Spanner V1 Client - Class Priority (1.61.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class Priority.

The relative priority for requests. Note that priority is not applicable for BeginTransaction.

The priority acts as a hint to the Cloud Spanner scheduler and does not guarantee priority or order of execution. For example:

  • Some parts of a write operation always execute at PRIORITY_HIGH, regardless of the specified priority. This may cause you to see an increase in high priority workload even when executing a low priority request. This can also potentially cause a priority inversion where a lower priority request will be fulfilled ahead of a higher priority request.
  • If a transaction contains multiple operations with different priorities, Cloud Spanner does not guarantee to process the higher priority operations first. There may be other constraints to satisfy, such as order of operations.

Protobuf type google.spanner.v1.RequestOptions.Priority

Namespace

Google \ Cloud \ Spanner \ V1 \ RequestOptions

Methods

static::name

Parameter
NameDescription
value mixed

static::value

Parameter
NameDescription
name mixed

Constants

PRIORITY_UNSPECIFIED

Value: 0

PRIORITY_UNSPECIFIED is equivalent to PRIORITY_HIGH.

Generated from protobuf enum PRIORITY_UNSPECIFIED = 0;

PRIORITY_LOW

Value: 1

This specifies that the request is low priority.

Generated from protobuf enum PRIORITY_LOW = 1;

PRIORITY_MEDIUM

Value: 2

This specifies that the request is medium priority.

Generated from protobuf enum PRIORITY_MEDIUM = 2;

PRIORITY_HIGH

Value: 3

This specifies that the request is high priority.

Generated from protobuf enum PRIORITY_HIGH = 3;