ipfs / ipfs/go-datastore

Add a Rename method?

Open
#100 3 comments 0 reactions 2 assignees Claimed by @schomatis View on GitHub
Dominant language
Go
Stars
247
Forks
67
PR merge metrics
No merged PRs in 30d

Description

The migration of the blockstore to multihashs only is going to require a massive renaming off a large number of keys. At least for the flatfs datastore, an important optimization is to rename the file rather than remove and insert a new key. The last time we did such a rename (https://github.com/ipfs/fs-repo-migrations/pull/39) we only had a single datastore config using flatfs so we special cased it. Now things are more complicated with badgerds this will be more difficult.

Is it worth it to provide a Rename method?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.