Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
filipengstrom91
6 years agoExplorer | Level 4
filesListFolder slow
Hi,
I use the Dropbox webhook to start a Javascript function I've written. It worked great the first few months when the folders just contained a few files. Now they contain approximately 200-250 ...
- 6 years ago
There are a number of variables that can affect the overall performance here, so we can't promise any specific speed for listing a folder. Looking at your code though, there are a few things that may help:
- You're using "limit: 5", which will limit Dropbox to returning about 5 entries per page. Since you need to make an HTTP request and response for each page, using a small limit like that will increase the overhead and increase how long the entire process takes. If you don't need to use a small page size like that for some reason, switching to a larger number may speed this up.
- You're using "recursive: true", which can increase how much work Dropbox has to do to list out the entries. If you don't need nested entries, switching this to "recursive: false" may speed this up.
Greg-DB
Dropbox Community Moderator
6 years agoThere are a number of variables that can affect the overall performance here, so we can't promise any specific speed for listing a folder. Looking at your code though, there are a few things that may help:
- You're using "limit: 5", which will limit Dropbox to returning about 5 entries per page. Since you need to make an HTTP request and response for each page, using a small limit like that will increase the overhead and increase how long the entire process takes. If you don't need to use a small page size like that for some reason, switching to a larger number may speed this up.
- You're using "recursive: true", which can increase how much work Dropbox has to do to list out the entries. If you don't need nested entries, switching this to "recursive: false" may speed this up.
filipengstrom91
6 years agoExplorer | Level 4
Thank you for your reply. Changing the limit to 2000 solved my problem. It now loads within a couple of seconds. I realise that I didn't understand what limit meant. Thanks!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!