Skip to content

Commit

Permalink
Enhance help for ImportData option in ydb tools restore (#10599)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixcc authored Oct 18, 2024
1 parent 2470133 commit 77f6bc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ydb/public/lib/ydb_cli/commands/ydb_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ void TCommandRestore::Config(TConfig& config) {
.StoreTrue(&UseBulkUpsert)
.Hidden(); // Deprecated. Using ImportData should be more effective.

config.Opts->AddLongOption("import-data", "Use ImportData - a more efficient way to upload data with lower consistency level."
" Global secondary indexes are not supported in this mode.")
config.Opts->AddLongOption("import-data", "Use ImportData - a more efficient way to upload data."
" ImportData will throw an error if you try to upload data into an existing table that has"
" secondary indexes or is in the process of building them. If you need to restore a table"
" with secondary indexes, make sure it's not already present in the scheme.")
.StoreTrue(&UseImportData);

config.Opts->MutuallyExclusive("bandwidth", "rps");
Expand Down

0 comments on commit 77f6bc8

Please sign in to comment.