batch count

This commit is contained in:
Priec
2026-09-05 09:16:27 +02:00
parent 52cfbd7070
commit b4fdf706ef
8 changed files with 208 additions and 2 deletions

View File

@@ -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;
}