<?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: Dropbox api Data loading slowly in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-Data-loading-slowly/m-p/323674#M19031</link>
    <description>&lt;P&gt;yes its the file metadata that is loading slowly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is my code which uses access token to link my users to my dropbox.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ListFolderTask object takes much time to get data and then set to adpater&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jan 2019 11:47:14 GMT</pubDate>
    <dc:creator>Muneebzzzz</dc:creator>
    <dc:date>2019-01-21T11:47:14Z</dc:date>
    <item>
      <title>Dropbox api Data loading slowly</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-Data-loading-slowly/m-p/323186#M18993</link>
      <description>&lt;P&gt;I have developed an android app which uses Dropbox sdk. iam&amp;nbsp;fetching my data on my loading screen on app, it worked fine when my data was small on my dropbox.. now i have purchased a dropbox and loaded GB's of audio files and images.. now it took 3 minutes to&amp;nbsp;fetch data on my app.. i dont upload anything from my android app..only download.. please help me regarding this that how can i improve this speed&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:08:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-Data-loading-slowly/m-p/323186#M18993</guid>
      <dc:creator>Muneebzzzz</dc:creator>
      <dc:date>2019-05-29T09:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api Data loading slowly</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-Data-loading-slowly/m-p/323326#M19001</link>
      <description>&lt;P&gt;Are you referring to the actual transfer speed you're seeing when trying to download a single large file? Your connection speed to Dropbox depends on the routing you get between your ISP and our servers, and may be slower than your ISP's rated speeds. The Dropbox API doesn't offer a way to control the speed; it will just try to run as fast as possible.&lt;/P&gt;
&lt;P&gt;Sometimes resetting or retrying your connection gets you a different route and better speeds, but that is outside of our control. Some ISPs also throttle sustained connections so if you see an initial high connection speed followed by lower speeds, that could be the reason.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 17:41:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-Data-loading-slowly/m-p/323326#M19001</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-15T17:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api Data loading slowly</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-Data-loading-slowly/m-p/323414#M19012</link>
      <description>&lt;P&gt;I have a data of approx 50GB on my dropbox which contains audio files. Audio files are small in size but are many. When i launch my mobile (android) application which i have made, i takes nearly 3 minutes to fetch data and show it on screen then i proceed further to interact with audio files to download.. downloading doesnot take time but at the initial start of my application, it takes much time to fetch data to my app&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 07:31:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-Data-loading-slowly/m-p/323414#M19012</guid>
      <dc:creator>Muneebzzzz</dc:creator>
      <dc:date>2019-01-16T07:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api Data loading slowly</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-Data-loading-slowly/m-p/323510#M19015</link>
      <description>&lt;P&gt;Thanks, so you mean it's not the actual file data download that's slow, but rather it's loading the file metadata that's slow? Can you share the code that's running during the slow part so we can take a look?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 15:58:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-Data-loading-slowly/m-p/323510#M19015</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-16T15:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api Data loading slowly</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-Data-loading-slowly/m-p/323674#M19031</link>
      <description>&lt;P&gt;yes its the file metadata that is loading slowly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is my code which uses access token to link my users to my dropbox.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ListFolderTask object takes much time to get data and then set to adpater&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 11:47:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-Data-loading-slowly/m-p/323674#M19031</guid>
      <dc:creator>Muneebzzzz</dc:creator>
      <dc:date>2019-01-21T11:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox api Data loading slowly</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-Data-loading-slowly/m-p/323761#M19037</link>
      <description>&lt;P&gt;Thanks! First, I see that you're using&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-" target="_blank"&gt;listFolder&lt;/A&gt; to list the contents of folders. That's the correct method, but note that you also need to use &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderContinue-java.lang.String-" target="_blank"&gt;listFolderContinue&lt;/A&gt;, as you're not guaranteed to get all of the results back in a single call to &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-" target="_blank"&gt;listFolder&lt;/A&gt;. Please review &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-" target="_blank"&gt;the&amp;nbsp;listFolder documentation&lt;/A&gt; for more information.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, you can't directly control the performance of&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-" target="_blank"&gt;listFolder&lt;/A&gt;, but it looks like you&amp;nbsp;may be calling it more than necessary.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, I see that you're calling it initially here, but are never actually using the result: (at least in the code you shared)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;temp = client.files().listFolder("");&lt;/PRE&gt;
&lt;P&gt;If you don't need that call, you should remove it, which would reduce the overall execution time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, I see that you're implementing your own recursive functionality by calling&amp;nbsp;listFolder again for each sub-folder (and so on) here:&lt;/P&gt;
&lt;PRE&gt;ListFolderResult subResult = client.files().listFolder(result.getEntries().get(i).getPathLower());
HandleEntries(subResult);&lt;/PRE&gt;
&lt;P&gt;Depending on your scenario, it may be better to use the Dropbox native 'recursive'&amp;nbsp;listFolder functionality. You can do so by getting a &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/ListFolderBuilder.html" target="_blank"&gt;ListFolderBuilder&lt;/A&gt; from &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderBuilder-java.lang.String-" target="_blank"&gt;listFolderBuilder&lt;/A&gt;, and calling ListFolderBuilder.withRecursive to set 'recursive' to true. If you use that instead of your initial listFolder call (and subsequent manual recursive calls),&amp;nbsp;Dropbox will automatically give you all of the nested entries. Again though, be sure to read &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderBuilder-java.lang.String-" target="_blank"&gt;the documentation&lt;/A&gt;&amp;nbsp;for information on how to properly implement this.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 16:44:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-api-Data-loading-slowly/m-p/323761#M19037</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-17T16:44:41Z</dc:date>
    </item>
  </channel>
</rss>

