diff options
author | Ilia Shakhov <pixcc@ydb.tech> | 2024-10-18 17:36:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-18 14:36:57 +0000 |
commit | 77f6bc8994443c4031dd8d42db1dc6884ee08751 (patch) | |
tree | ac78cfb02314a6928968a65435eb46f5d7e0b78f | |
parent | 2470133cc223509720268e58986e48701f3d3d74 (diff) | |
download | ydb-77f6bc8994443c4031dd8d42db1dc6884ee08751.tar.gz |
Enhance help for ImportData option in ydb tools restore (#10599)
-rw-r--r-- | ydb/public/lib/ydb_cli/commands/ydb_tools.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ydb/public/lib/ydb_cli/commands/ydb_tools.cpp b/ydb/public/lib/ydb_cli/commands/ydb_tools.cpp index f0f67f0ce2..742c1a9d2f 100644 --- a/ydb/public/lib/ydb_cli/commands/ydb_tools.cpp +++ b/ydb/public/lib/ydb_cli/commands/ydb_tools.cpp @@ -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"); |