Reference documentation and code samples for the Cloud Spanner V1 Client class CommitStats.
Additional statistics about a commit.
Generated from protobuf message google.spanner.v1.CommitResponse.CommitStats
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ mutation_count |
int|string
The total number of mutations for the transaction. Knowing the |
getMutationCount
The total number of mutations for the transaction. Knowing the
mutation_count
value can help you maximize the number of mutations
in a transaction and minimize the number of API round trips. You can
also monitor this value to prevent transactions from exceeding the system
limit.
If the number of mutations exceeds the limit, the server returns INVALID_ARGUMENT.
Generated from protobuf field int64 mutation_count = 1;
Returns | |
---|---|
Type | Description |
int|string |
setMutationCount
The total number of mutations for the transaction. Knowing the
mutation_count
value can help you maximize the number of mutations
in a transaction and minimize the number of API round trips. You can
also monitor this value to prevent transactions from exceeding the system
limit.
If the number of mutations exceeds the limit, the server returns INVALID_ARGUMENT.
Generated from protobuf field int64 mutation_count = 1;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |