diff --git a/doc/bugs/annex_metadata___40__not_--batch__39__ed__41___is_not_aware_of_files_added_via_addurls_--batch/comment_1_4169fceac6ef95400ddc79652558dc13._comment b/doc/bugs/annex_metadata___40__not_--batch__39__ed__41___is_not_aware_of_files_added_via_addurls_--batch/comment_1_4169fceac6ef95400ddc79652558dc13._comment new file mode 100644 index 0000000000..f02fd8669e --- /dev/null +++ b/doc/bugs/annex_metadata___40__not_--batch__39__ed__41___is_not_aware_of_files_added_via_addurls_--batch/comment_1_4169fceac6ef95400ddc79652558dc13._comment @@ -0,0 +1,20 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2018-04-04T16:01:21Z" + content=""" +I guess you expected annex.queuesize to be set to 1. +However, that would mean every single file that addurl adds +needs the whole git index file to be rewritten so other commands can +immediately know about it. Which could be very slow, which is why that is +not the default. + +What you can do is use `git annex addurl --batch --json` and observe the +key that it reports it's added. Then pass that key into `git annex metadata --batch --json` +to add metadata to the key, which will work before the file ever gets +added to the git index, and much more efficiently than relying on the +index. + +(Pretty sure this has came up before and that I suggested the same thing +then.) +"""]]