<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: files_copy_batch_v2 api seems extremely slow in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-copy-batch-v2-api-seems-extremely-slow/m-p/341408#M19758</link>
    <description>Ok&lt;BR /&gt;</description>
    <pubDate>Fri, 26 Apr 2019 03:29:24 GMT</pubDate>
    <dc:creator>Buddyandbaxter1</dc:creator>
    <dc:date>2019-04-26T03:29:24Z</dc:date>
    <item>
      <title>files_copy_batch_v2 api seems extremely slow</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-copy-batch-v2-api-seems-extremely-slow/m-p/341407#M19757</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I've written a python script which handles merging updates from a patch directory into the main data directory.&lt;BR /&gt;&lt;BR /&gt;Simply it takes a list of files from the patch directory, copies them into the build dir and tags the patch directory as closed.&lt;BR /&gt;&lt;BR /&gt;If I do this manually and let the Dropbox client handle it, it takes about 5-10 seconds regardless of how many files are involved. However using the API, each file takes approximately 5 seconds. This is confounding, is there any reason? If the Dropbox client (on Windows) uses a different API for the same purpose, what is it?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;#adding to batch:
                batch.append(dropbox.files.RelocationPath(from_path=remote_patch_dir + k + kj,
                                                          to_path=remote_build_dir + kj))

#issuing copy call:
       res = dbx.files_copy_batch_v2(batch)

        jobid = res.get_async_job_id()

        while True:
            if dbx.files_copy_batch_check_v2(jobid).is_complete():
                break
            sleep(10)&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 09:06:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-copy-batch-v2-api-seems-extremely-slow/m-p/341407#M19757</guid>
      <dc:creator>jdboomzap</dc:creator>
      <dc:date>2019-05-29T09:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: files_copy_batch_v2 api seems extremely slow</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-copy-batch-v2-api-seems-extremely-slow/m-p/341408#M19758</link>
      <description>Ok&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Apr 2019 03:29:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-copy-batch-v2-api-seems-extremely-slow/m-p/341408#M19758</guid>
      <dc:creator>Buddyandbaxter1</dc:creator>
      <dc:date>2019-04-26T03:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: files_copy_batch_v2 api seems extremely slow</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-copy-batch-v2-api-seems-extremely-slow/m-p/341489#M19760</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1108710"&gt;@jdboomzap&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;Yes, unfortunately due to some changes on the backend, performance on this endpoint worsened recently. I'll bring this up with the team to see if we can improve this in the future, but I can't make any promises.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The desktop client does use a different mechanism for some functionality, but there isn't a way to replicate that on the API I'm afraid.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 14:57:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-copy-batch-v2-api-seems-extremely-slow/m-p/341489#M19760</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-04-26T14:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: files_copy_batch_v2 api seems extremely slow</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-copy-batch-v2-api-seems-extremely-slow/m-p/628872#M29056</link>
      <description>&lt;P&gt;Hi there, found this really old thread and the issue still exists when copying files from one path to another via the /files/copy_batch_v2 endpoint. Were there ever any improvements made to fix the slowness? because for me, the process keeps going on forever, and I am hardly able to copy files from one to another path.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;FYI, I am using c# with Dropbox NuGet package v6.26.0 installed. Most of the time, when I hit Files.CopyBatchV2Async with a list of RelocationPath, half of them failed and then I have to try again to copy them. Kind of using the same approach mentioned in this thread by using a while loop to track the progress of the copy process in Dropbox, and once it's completed, I then check for failed files and do the same operation again for failed files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any help would be appreciated. Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 00:56:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-copy-batch-v2-api-seems-extremely-slow/m-p/628872#M29056</guid>
      <dc:creator>alirameez</dc:creator>
      <dc:date>2022-10-13T00:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: files_copy_batch_v2 api seems extremely slow</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-copy-batch-v2-api-seems-extremely-slow/m-p/628982#M29059</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1582029"&gt;@alirameez&lt;/a&gt; I don't have any specific updates to share, but the team does continually make improvements if/when possible. If I try running the code that was included in the original post (though I lowered the 'sleep' value since it runs faster than that for me) now, it does run faster than described there originally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The original post only mentioned slowness though, and didn't indicate that the operations were actually failing. If you're seeing failures returned, make sure to check each &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/gh-pages/obj/api/Dropbox.Api.Files.RelocationBatchErrorEntry.html" target="_blank"&gt;RelocationBatchErrorEntry&lt;/A&gt; to see the reason for the failure.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 12:27:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/files-copy-batch-v2-api-seems-extremely-slow/m-p/628982#M29059</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-10-13T12:27:13Z</dc:date>
    </item>
  </channel>
</rss>

