[help] tar_make() hangs "querying #### local files in .targets_stores/.../objects" #1556
-
Help
DescriptionLong time drake / targets user here. I run workflows with hundreds of branches that each have 10s of targets. I'm struggling to identify the source of a performance issue that is really holding my iteration back. After running Once I force quit, y computer becomes responsive again. Has anyone encountered this? Any idea what I can do to fix my targets store so it doesn't occur? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The "querying n local files" step happens in Line 149 in 4d878f7 For most large pipelines, querying all the files together can actually speed up the pipeline. If you query them one by one, you'll get a lot more operating system overhead. If that step is slow, you might try Slowness might also come from low disk speed, e.g. if the data store lives on a Windows network drive instead of your local machine. |
Beta Was this translation helpful? Give feedback.
The "querying n local files" step happens in
targets:::runtiem_set_file_info(). The slow step is a (wrapped)file.info()call:targets/R/class_runtime.R
Line 149 in 4d878f7
For most large pipelines, querying all the files together can actually speed up the pipeline. If you query them one by one, you'll get a lot more operating system overhead.
If that step is slow, you might try
tar_prune()to remove unnecessary files from_targets/objects/. The only caveats with that are (1) if a collaborator is running a pipeline on the same data store as you, or (2) if you are using content-addressable storage (tar_repository_cas()e.g.).Slowness might also come fr…