feat: handle multiple InsertRequests in GRPC method (#47)
* feat: make InsertRequest in a batch * feat: make InsertRequest in a batch * feat: make InsertRequest in a batch
This commit is contained in:
@@ -34,7 +34,7 @@ service GreptimeDatabase {
|
||||
message GreptimeRequest {
|
||||
RequestHeader header = 1;
|
||||
oneof request {
|
||||
InsertRequest insert = 2;
|
||||
InsertRequests inserts = 2;
|
||||
QueryRequest query = 3;
|
||||
DdlRequest ddl = 4;
|
||||
DeleteRequest delete = 5;
|
||||
@@ -54,6 +54,10 @@ message QueryRequest {
|
||||
}
|
||||
}
|
||||
|
||||
message InsertRequests {
|
||||
repeated InsertRequest inserts = 1;
|
||||
}
|
||||
|
||||
message InsertRequest {
|
||||
string table_name = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user