How do you modify every KV entry without

How do you modify every KV entry without being ratelimited? "Error: Too many API requests by single worker invocation."
5 Replies
thomasgauvin
thomasgauvin8mo ago
The API has lower rate limits than the binding does, I would recommend trying that path as well. We're aware of the API's rate limiting constraints and looking for opportunities to improve there, so the recommendation for the time being is to use the binding.
Anthony
AnthonyOP8mo ago
I actually used the binding for this. I am not using the REST API.
Marcus
Marcus7mo ago
The binding is limited to 1000/request, right?
Anthony
AnthonyOP7mo ago
yeah
thomasgauvin
thomasgauvin7mo ago
The REST API for Workers KV can be used to have bulk uploads, perhaps that can help here? https://developers.cloudflare.com/api/operations/workers-kv-namespace-write-multiple-key-value-pairs
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API

Did you find this page helpful?