Skip to content
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

feat: add key transformation method for sharding #1

Merged
merged 2 commits into from
Nov 1, 2021

Conversation

v-stickykeys
Copy link

@v-stickykeys v-stickykeys commented Oct 27, 2021

Motivation

To get sharding merged into the existing go-ds-s3 plugin. See ipfs#195 (comment)

Changes

Instead of just sharding with an S3 key <cid>/data, I added a key transforms map that would allow developers to add their own sharding methods.

Notes

For context, here are the S3 sharding methods available in js-ipfs https://github.com/ipfs/go-ipfs/blob/master/docs/datastores.md#flatfs

Copy link

@decentralgabe decentralgabe left a comment

Choose a reason for hiding this comment

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

is it possible to test this - have you tested?

@v-stickykeys
Copy link
Author

is it possible to test this - have you tested?

Wanted to confirm the approach first and merge because it is easier to test when merged into master.

@v-stickykeys v-stickykeys merged commit 094a6c5 into master Nov 1, 2021
@decentralgabe decentralgabe deleted the feat/key-transform branch November 8, 2021 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants