Skip to content

Commit 465a103

Browse files
Google APIscopybara-github
authored andcommitted
feat: add max_commit_delay API
PiperOrigin-RevId: 599315735
1 parent 41a0bf9 commit 465a103

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

google/spanner/v1/spanner.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import "google/api/annotations.proto";
2222
import "google/api/client.proto";
2323
import "google/api/field_behavior.proto";
2424
import "google/api/resource.proto";
25+
import "google/protobuf/duration.proto";
2526
import "google/protobuf/empty.proto";
2627
import "google/protobuf/struct.proto";
2728
import "google/protobuf/timestamp.proto";
@@ -1163,6 +1164,14 @@ message CommitRequest {
11631164
// Default value is `false`.
11641165
bool return_commit_stats = 5;
11651166

1167+
// Optional. The amount of latency this request is willing to incur in order
1168+
// to improve throughput. If this field is not set, Spanner assumes requests
1169+
// are relatively latency sensitive and automatically determines an
1170+
// appropriate delay time. You can specify a batching delay value between 0
1171+
// and 500 ms.
1172+
google.protobuf.Duration max_commit_delay = 8
1173+
[(google.api.field_behavior) = OPTIONAL];
1174+
11661175
// Common options for this request.
11671176
RequestOptions request_options = 6;
11681177
}

0 commit comments

Comments
 (0)