cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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
Go to solution

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

Greg-DB
Dropbox Staff
Go to solution
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

Greg-DB
Dropbox Staff
Go to solution
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.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?