From b27b11fd41b7168936b1c11e12719f9fd689bdd1 Mon Sep 17 00:00:00 2001 From: karajan1001 Date: Mon, 7 Dec 2020 22:20:10 +0800 Subject: [PATCH] doc for `dvc import --jobs` --- content/docs/command-reference/import.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/content/docs/command-reference/import.md b/content/docs/command-reference/import.md index 55b04dfca3..cec558502d 100644 --- a/content/docs/command-reference/import.md +++ b/content/docs/command-reference/import.md @@ -11,7 +11,8 @@ import. ## Synopsis ```usage -usage: dvc import [-h] [-q | -v] [-o ] [--rev ] url path +usage: dvc import [-h] [-q | -v] [-j ] + [-o ] [--rev ] url path positional arguments: url Location of DVC or Git repository to download from @@ -90,6 +91,12 @@ data artifact from the source repo. > [Importing and updating fixed revisions](#example-importing-and-updating-fixed-revisions) > example below). +- `-j `, `--jobs ` - number of threads to run simultaneously to + handle the downloading of files from the remote. The default value is + `4 * cpu_count()`. For SSH remotes, the default is just `4`. Using more jobs + may improve the total download speed if a combination of small and large files + are being fetched. + - `-h`, `--help` - prints the usage/help message, and exit. - `-q`, `--quiet` - do not write anything to standard output. Exit with 0 if no