Skip to content

Commit eae21af

Browse files
authored
Materialize indexes: api (#30213)
1 parent 1b2c0a7 commit eae21af

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

ydb/public/api/protos/ydb_export.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ message ExportToS3Settings {
139139
// If encryption_settings field is not specified,
140140
// the resulting data will not be encrypted.
141141
EncryptionSettings encryption_settings = 15;
142+
143+
// Materialization of index table data.
144+
// By default, only index metadata is uploaded and indexes are built during import — it saves space
145+
// and reduces export time, but it can potentially increase the import time.
146+
// Indexes can be materialized, then their data will be uploaded during export and downloaded during import.
147+
bool materialize_indexes = 16;
142148
}
143149

144150
message ExportToS3Result {

ydb/public/api/protos/ydb_import.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@ message ImportFromS3Settings {
6262
string destination_path = 2;
6363
}
6464

65+
enum IndexFillingMode {
66+
// If unspecified, use default - Build
67+
INDEX_FILLING_MODE_UNSPECIFIED = 0;
68+
// Build index
69+
INDEX_FILLING_MODE_BUILD = 1;
70+
// Import materialized index
71+
INDEX_FILLING_MODE_IMPORT = 2;
72+
// Try to import materialized index, build otherwise
73+
INDEX_FILLING_MODE_AUTO = 3;
74+
}
75+
6576
string endpoint = 1 [(required) = true];
6677
Scheme scheme = 2; // HTTPS if not specified
6778
string bucket = 3 [(required) = true];
@@ -100,6 +111,10 @@ message ImportFromS3Settings {
100111
// If encryption_settings field is not specified,
101112
// the resulting data is considered not encrypted.
102113
Ydb.Export.EncryptionSettings encryption_settings = 15;
114+
115+
// Index filling mode.
116+
// If not specified, indexes will be built.
117+
IndexFillingMode index_filling_mode = 16;
103118
}
104119

105120
message ImportFromS3Result {

0 commit comments

Comments
 (0)