<?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: Image gallery with backend, poor performance in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-gallery-with-backend-poor-performance/m-p/644517#M29605</link>
    <description>&lt;P&gt;Thanks for the feedback! As Здравко said, there may some ways to optimize your call pattern, but it would very much depend on your particular scenario, and it sounds like you have certain design constraints to accommodate. As for the Dropbox API itself, you're already using the right endpoints. The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/continue&lt;/A&gt;] endpoints are the right way to list the contents of a folder; &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail_batch" target="_blank"&gt;/2/files/get_thumbnail_batch&lt;/A&gt; is the best way to retrieve multiple thumbnails at once; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_blank"&gt;/2/files/get_temporary_link&lt;/A&gt; is the right way to get a direct link for a file, and there isn't a batch version of that available. There isn't any way to just speed up these endpoints, but I'll pass this along as a feature request for various performance/batching improvements. I can't promise if or when any of these might be implemented though.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2022 16:23:47 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2022-12-16T16:23:47Z</dc:date>
    <item>
      <title>Image gallery with backend, poor performance</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-gallery-with-backend-poor-performance/m-p/644425#M29602</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello. We are developing a mechanism for importing user files (images, videos) from dropbox into our system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To view the list of files, our frontend does not interact with the dropbox API directly, instead, it makes calls to the backend, and the backend makes calls to the dropbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The page on the frontend is a gallery where the user marks the files he would like to import with checkboxes. We need thumbnails and links to the source file for the detail view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To display a paginated file list (10 files per page) our backend:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Requests a paginated list of 10 files &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;files-list_folder&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;- 0.27 sec&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Requests a list of 10 thumbnails &lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail_batch" target="_blank" rel="nofollow noopener"&gt;files-get_thumbnail_batch&lt;/A&gt;&lt;SPAN&gt; - 3 sec for 640*480px&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Requests a temporary link to a file &lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_blank" rel="nofollow noopener"&gt;files-get_temporary_link&lt;/A&gt;&lt;SPAN&gt; 0.3 sec/each * 10 files = 3 sec&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a result, it turns out that the user is waiting for a response for 7 seconds. We would like to know if we are using the right APIs and how we could improve performance without using embedded components on the frontend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Our backend is located on AWS Lambda in the us-east-1 region, so we hope this is not a network issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 08:51:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-gallery-with-backend-poor-performance/m-p/644425#M29602</guid>
      <dc:creator>serhiisv</dc:creator>
      <dc:date>2022-12-16T08:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Image gallery with backend, poor performance</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-gallery-with-backend-poor-performance/m-p/644500#M29603</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1600762"&gt;@serhiisv&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;..&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The page on the frontend is a gallery where the &lt;U&gt;user marks&lt;/U&gt; the files he would like &lt;U&gt;to import&lt;/U&gt; with checkboxes. ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Requests a temporary link to a file &lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_blank" rel="nofollow noopener"&gt;files-get_temporary_link&lt;/A&gt;&lt;SPAN&gt; 0.3 sec/each * 10 files = 3 sec&lt;/SPAN&gt;&lt;BR /&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1600762"&gt;@serhiisv&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Usually there are ways to optimize the workflow, but this is something very dependent on particular scenarios. In your case, I cannot understand why you are requesting any temporary links while the intended is import&amp;nbsp; - even more import in backend. You just lose 3 secs (according the your calculations) for... nothing. Instead transfer forth and back some links, easier way would be download selected files directly (identified with their IDs - already received in the first step). In such a way you can speed up your procedure almost twice! &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Probably other optimizations can be achieved too, taking in mind the proceedings details.&lt;/P&gt;&lt;P&gt;Hope this helps to some extent.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 15:20:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-gallery-with-backend-poor-performance/m-p/644500#M29603</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-12-16T15:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Image gallery with backend, poor performance</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-gallery-with-backend-poor-performance/m-p/644502#M29604</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for the answer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We need a temporary link so that the user can view the video/image in high quality before importing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We already have several "adapters" for importing from other platforms that work according to the rules described above. However, other platforms provided a link to the original file and a thumbnail in the "list_folder" request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This decision was made to remove complex logic on the frontend and standardize all requests/responses to all platforms.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 15:36:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-gallery-with-backend-poor-performance/m-p/644502#M29604</guid>
      <dc:creator>serhiisv</dc:creator>
      <dc:date>2022-12-16T15:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Image gallery with backend, poor performance</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-gallery-with-backend-poor-performance/m-p/644517#M29605</link>
      <description>&lt;P&gt;Thanks for the feedback! As Здравко said, there may some ways to optimize your call pattern, but it would very much depend on your particular scenario, and it sounds like you have certain design constraints to accommodate. As for the Dropbox API itself, you're already using the right endpoints. The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;/2/files/list_folder&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" target="_blank"&gt;/continue&lt;/A&gt;] endpoints are the right way to list the contents of a folder; &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail_batch" target="_blank"&gt;/2/files/get_thumbnail_batch&lt;/A&gt; is the best way to retrieve multiple thumbnails at once; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_blank"&gt;/2/files/get_temporary_link&lt;/A&gt; is the right way to get a direct link for a file, and there isn't a batch version of that available. There isn't any way to just speed up these endpoints, but I'll pass this along as a feature request for various performance/batching improvements. I can't promise if or when any of these might be implemented though.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 16:23:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Image-gallery-with-backend-poor-performance/m-p/644517#M29605</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-12-16T16:23:47Z</dc:date>
    </item>
  </channel>
</rss>

