Skip to content

Commit f7e8071

Browse files
CyberROFLzinal
authored andcommitted
24-3: ImportData: consistent limits (ydb-platform#10526)
1 parent 11059fa commit f7e8071

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ydb/public/api/protos/ydb_import.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ message ImportDataRequest {
105105
// - sorted by primary key;
106106
// - all keys must be from the same partition;
107107
// - table has no global secondary indexes;
108-
// - size of serialized data is limited to 8 MB.
109-
bytes data = 3 [(length).le = 8388608];
108+
// - size of serialized data is limited to 16 MB.
109+
bytes data = 3 [(length).le = 16777216];
110110
oneof format {
111111
// Result of `ydb tools dump`
112112
YdbDumpFormat ydb_dump = 4;

ydb/public/lib/ydb_cli/dump/dump.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct TRestoreSettings: public TOperationRequestSettings<TRestoreSettings> {
5858
ImportData,
5959
};
6060

61-
static constexpr ui64 MaxBytesPerRequest = 8_MB;
61+
static constexpr ui64 MaxBytesPerRequest = 16_MB;
6262

6363
FLUENT_SETTING_DEFAULT(EMode, Mode, EMode::Yql);
6464
FLUENT_SETTING_DEFAULT(bool, DryRun, false);
@@ -67,7 +67,7 @@ struct TRestoreSettings: public TOperationRequestSettings<TRestoreSettings> {
6767
FLUENT_SETTING_DEFAULT(bool, SkipDocumentTables, false);
6868
FLUENT_SETTING_DEFAULT(bool, SavePartialResult, false);
6969

70-
FLUENT_SETTING_DEFAULT(ui64, MemLimit, 16_MB);
70+
FLUENT_SETTING_DEFAULT(ui64, MemLimit, 32_MB);
7171
FLUENT_SETTING_DEFAULT(ui64, RowsPerRequest, 0);
7272
FLUENT_SETTING_DEFAULT(ui64, BytesPerRequest, 512_KB);
7373
FLUENT_SETTING_DEFAULT(ui64, RequestUnitsPerRequest, 30);

0 commit comments

Comments
 (0)