You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 (ipfs/fs-repo-migrations#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?
The text was updated successfully, but these errors were encountered:
I was thinking about something that would work a bit like linux rename command, possibly restricted to prefix only. That would allow for a nice optimizations in some cases, like ipfs-ds-convert with more advanced datastores.
I'm fine with the basic version too, it might be better in that it will be easier to implement an optimized version for more datastores.
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 (ipfs/fs-repo-migrations#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?
The text was updated successfully, but these errors were encountered: