You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
E_Fuks
3 years agoHelpful | Level 5
API Lock Files Batch works for some files and then stops working
Hi, we have build a script which locks files in the dropbox. For a big amount of roughly 100.000 files it works great. We have split the data in chunks of 2500 files, so that the API works. Doin...
Здравко
Legendary | Level 20
Hi E_Fuks,
If you don't receive any error because of big files number ("too_many_files"), better keep lock the files in one call (or as fewer calls as possible). Every call needs time to get GIL ownership, that's why your algorithm gets slow down and increase Dropbox server loads. Seems like mistake in the call response, since an error 'too_many_write_operations' better represent the situation. If you receive such error, repeat the call after exponential growing delay as many times as needed.
Hope this helps.
E_Fuks
3 years agoHelpful | Level 5
Thanks, that was also my initial thought. But we get a error argument list too long using 5000 files or more.
That's why we dropped the quantity of files.
- Здравко3 years agoLegendary | Level 20
E_Fuks wrote:... For a big amount of roughly 100.000 files it works great. ...
E_Fuks wrote:... But we get a error argument list too long using 5000 files or more. ...
Don't you contradict to yourself? 😁
Anyway... When and if the files count is too big, just decrease it. When and if overload happens, just delay and repeat the call and, if need, increase exponentially the delay. 😉 That's it.
Good luck.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 5 hours agoIf 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 or Facebook.
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!