batch count
This commit is contained in:
@@ -12,6 +12,8 @@ service Searcher {
|
||||
// Returns live authorized row data and one-based filtered navigation bounds.
|
||||
// A missing position returns NOT_FOUND. Search and row reads are not a snapshot.
|
||||
rpc GetFilteredRow(SearchRequest) returns (komp_ac.tables_data.GetTableDataResponse);
|
||||
// Up to 64 independent counts. Results preserve request order; errors are per item.
|
||||
rpc BatchCount(BatchCountRequest) returns (BatchCountResponse);
|
||||
rpc Count(SearchRequest) returns (SearchCountResponse);
|
||||
}
|
||||
|
||||
@@ -127,3 +129,18 @@ message SearchResponse {
|
||||
}
|
||||
repeated Hit hits = 1;
|
||||
}
|
||||
|
||||
message BatchCountRequest {
|
||||
repeated SearchRequest requests = 1;
|
||||
}
|
||||
|
||||
message BatchCountResult {
|
||||
oneof outcome {
|
||||
uint64 count = 1;
|
||||
string error = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message BatchCountResponse {
|
||||
repeated BatchCountResult results = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user