-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: limit bulk API requests to batches of 5,000 #554
fix: limit bulk API requests to batches of 5,000 #554
Conversation
🦋 Changeset detectedLatest commit: 486e917 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/1948186101/npm-package-wrangler-554 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/554/npm-package-wrangler-554 Or you can use npx https://prerelease-registry.developers.workers.dev/runs/1948186101/npm-package-wrangler-554 dev path/to/script.js |
The `kv:bulk delete` command now batches up delete requests in groups of 5,000, displaying progress for each request.
The `kv:bulk put` command now batches up put requests in groups of 5,000, displaying progress for each request.
2315f47
to
486e917
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
); | ||
expect(requests.count).toEqual(3); | ||
expect(std.out).toMatchInlineSnapshot(` | ||
"Uploaded 0 of 12000. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should land this, but a potential followup could be a percentage?
Something like: Uploaded 7% (1.5k out of 100.3k)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added an issue to track this #555
The
kv:bulk delete
andkv:bulk put
commands now batch up requests in groups of 5,000,displaying progress for each request.