This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
Batch bulk upload limits #465
Labels
design
feature
Feature requests and suggestions
regression
Something is broken, but works in previous releases
Milestone
As much as possible we should analyze payloads before sending them to prevent wrangler spinning on impossible loads for no reason. In the case of a bulk upload using a json file (the basic bulk write method), this means the following:
Wrangler should check that the payload is less than 100MB, and bail with a message if it is not. Future optimizations would include streaming a file and chunking it appropriately, but this is really stupid hard with json.
If the first parameter is satisfied, Wrangler should batch requests to meet the 10,000 key limit.
(Bonus)
Assert that all keys are 512B maximum
Assert that all values are 2MB maximum
https://api.cloudflare.com/#workers-kv-namespace-write-multiple-key-value-pairs
(separate issue to be filed for "bucket" behavior)
The text was updated successfully, but these errors were encountered: