Skip to content

Commit

Permalink
[feat][proto] Add scalar data speed up key proto.
Browse files Browse the repository at this point in the history
  • Loading branch information
Haijun Yu authored and ketor committed Mar 26, 2024
1 parent 87bf0dc commit b07b502
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions proto/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,26 @@ enum ScalarIndexType {
SCALAR_INDEX_TYPE_BTREE = 2;
}

message ScalarSchemaItem {
// field key
string key = 1;

// filed type
ScalarFieldType field_type = 2;

// need to speed up key
bool enable_speed_up = 3;
}

message ScalarSchema {
// array field
repeated ScalarSchemaItem fields = 1;
}

message ScalarIndexParameter {
ScalarIndexType scalar_index_type = 1;
bool is_unique = 2; // for scalar index
ScalarSchema scalar_schema = 3;
}

message IndexParameter {
Expand Down

0 comments on commit b07b502

Please sign in to comment.