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
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.
I actually used the binding for this. I am not using the REST API.
The binding is limited to 1000/request, right?
yeah
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