- 1.105.1 (latest)
- 1.105.0
- 1.104.1
- 1.103.0
- 1.102.0
- 1.101.0
- 1.100.0
- 1.98.0
- 1.97.0
- 1.96.0
- 1.95.0
- 1.94.0
- 1.93.1
- 1.92.1
- 1.91.0
- 1.90.0
- 1.89.0
- 1.88.0
- 1.87.0
- 1.86.0
- 1.85.0
- 1.84.0
- 1.83.0
- 1.82.0
- 1.81.0
- 1.80.0
- 1.79.0
- 1.78.0
- 1.77.0
- 1.76.1
- 1.68.0
- 1.67.0
- 1.66.0
- 1.65.0
- 1.64.0
- 1.63.2
- 1.62.1
- 1.61.0
- 1.60.0
- 1.59.0
- 1.58.4
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.2
Reference documentation and code samples for the Cloud Spanner V1 Client class Priority.
The relative priority for requests. Note that priority isn't applicable for BeginTransaction.
The priority acts as a hint to the Cloud Spanner scheduler and doesn't 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 can 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 is fulfilled ahead of a higher priority request. - If a transaction contains multiple operations with different priorities, Cloud Spanner doesn't guarantee to process the higher priority operations first. There might be other constraints to satisfy, such as the order of operations.
Protobuf type google.spanner.v1.RequestOptions.Priority
Namespace
Google \ Cloud \ Spanner \ V1 \ RequestOptionsMethods
static::name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
static::value
Parameter | |
---|---|
Name | Description |
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;