hi guys, will Cloudflare eventually
hi guys, will Cloudflare eventually support bulk delete or bulk put in cloudflare KV using in Workers? CF workers has a limitation of 6 concurrent connection at the same time and it's really painful to bulk put like 20 - 30 items using the SDK in workers.
2 Replies
Hey Tony, yes we do plan to support this, though at the moment we are working on core engineering/core infrastructure work as the priority (totally fine to ask the question here btw, very related to KV)
Can I ask what type of data flows is resulting in you needing to delete and create so many KV pairs?
I'm using Cloudflare KV to store compiled permissions for my access control module. Whenever a user updates their policy, the system currently needs to list, overwrite, and delete around 20–30 items.
Although this doesn't happen often, when it does, the code becomes messy because I have to batch the delete and put operations into groups of six—due to Cloudflare’s concurrent connection limits.
I'm performing these operations using the Cloudflare KV REST API, which supports batching. It's a bit strange, though, that this feature is available via the REST API but not through KV Bindings.