cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HTTP endpoint results in too_many_write_operations

HTTP endpoint results in too_many_write_operations

Lars2
New member | Level 2

Hi,

 

When doing an initial sync with dropbox from our app we sometimes receive a 429 "too_many_write_operations". I have read https://www.dropbox.com/developers/reference/data-ingress-guide and want to check if using batch upload will "fix" this, meaning that there is no limit in write_operations. Is that correct?

1 Accepted Solution

Accepted Solutions

Re: HTTP endpoint results in too_many_write_operations

Greg-DB
Dropboxer
It won't remove the limit entirely, but it should certainly improve performance significantly.

Essentially, the "too_many_write_operations" is a matter of "lock contention", in that multiple simultaneous calls to /files/upload try to take a lock and compete with each other.

Using /files/upload_session/finish_batch instead consolidates where the lock is taken. Each call to /files/upload_session/finish_batch also takes a lock, but you can commit multiple files using that single call and lock, so it generally works out better than using multiple calls to /files/upload.

View solution in original post

1 Reply 1

Re: HTTP endpoint results in too_many_write_operations

Greg-DB
Dropboxer
It won't remove the limit entirely, but it should certainly improve performance significantly.

Essentially, the "too_many_write_operations" is a matter of "lock contention", in that multiple simultaneous calls to /files/upload try to take a lock and compete with each other.

Using /files/upload_session/finish_batch instead consolidates where the lock is taken. Each call to /files/upload_session/finish_batch also takes a lock, but you can commit multiple files using that single call and lock, so it generally works out better than using multiple calls to /files/upload.

View solution in original post

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?