Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Implement large bucket uploads split across multiple bulk KV API requests #601

Merged
merged 5 commits into from
Sep 18, 2019

Conversation

gabbifish
Copy link
Contributor

@gabbifish gabbifish commented Sep 17, 2019

This PR closes #499.

It segments a large directory (bucket) upload to Workers KV into multiple KV calls if the payload (keys and values) provided is one of the below:

  1. Over 50MB in size, OR
  2. Over 10,000 KV pairs

Otherwise, the logic simply uploads the key-value pairs without segmentation.

This logic has been tested with a directory of 50 2MB files, all uploaded to a Workers KV namespace.

Waiting on #613 to be merged into master before continuing this.

@gabbifish gabbifish added status - needs review regression Something is broken, but works in previous releases labels Sep 17, 2019
@gabbifish gabbifish changed the title Implement bucket uploads split across multiple KV API requests. Implement bucket uploads split across multiple bulk KV API requests. Sep 17, 2019
@gabbifish gabbifish added this to the 1.4.0 milestone Sep 17, 2019
@gabbifish gabbifish changed the title Implement bucket uploads split across multiple bulk KV API requests. Implement large bucket uploads split across multiple bulk KV API requests Sep 17, 2019
@gabbifish gabbifish changed the title Implement large bucket uploads split across multiple bulk KV API requests [WIP] Implement large bucket uploads split across multiple bulk KV API requests Sep 17, 2019
@gabbifish gabbifish mentioned this pull request Sep 18, 2019
@gabbifish gabbifish force-pushed the gabbi/add-multipart-bucket-upload branch from c4bc47e to 8a5c24a Compare September 18, 2019 05:36
@gabbifish gabbifish changed the title [WIP] Implement large bucket uploads split across multiple bulk KV API requests Implement large bucket uploads split across multiple bulk KV API requests Sep 18, 2019
@gabbifish gabbifish removed the blocked label Sep 18, 2019
@gabbifish gabbifish force-pushed the gabbi/add-multipart-bucket-upload branch from 76d8341 to 6b53c98 Compare September 18, 2019 19:13
src/commands/kv/bucket/upload.rs Outdated Show resolved Hide resolved
src/commands/kv/bucket/upload.rs Outdated Show resolved Hide resolved
src/commands/kv/bucket/upload.rs Outdated Show resolved Hide resolved
src/commands/kv/bucket/upload.rs Outdated Show resolved Hide resolved
src/commands/kv/bucket/upload.rs Outdated Show resolved Hide resolved
src/commands/kv/bucket/upload.rs Show resolved Hide resolved
src/commands/kv/bucket/upload.rs Show resolved Hide resolved
src/commands/kv/bulk/put.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@ashleymichal ashleymichal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slipped, meant to leave last review as request changes

@gabbifish gabbifish merged commit fb9a296 into feat-kv-additions Sep 18, 2019
@delete-merged-branch delete-merged-branch bot deleted the gabbi/add-multipart-bucket-upload branch September 18, 2019 23:32
@gabbifish gabbifish modified the milestones: 1.4.0, KV Additions Sep 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
regression Something is broken, but works in previous releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants