ipfs / go-datastore

key-value datastore interfaces
MIT License
230 stars 65 forks source link

Delete old, unused datastores. #76

Closed Stebalien closed 6 years ago

Stebalien commented 6 years ago

Having to maintain old, unused, untested code is a pain (they won't work anyways because most of them haven't really been tested).

magik6k commented 6 years ago

List of what is actually used and how (chocked by searching for usages on latest gx version used by go-ipfs):

Datastores in basic_ds.go:

So I'd say we should remove callback, coalesce, elastigo, fs, mount, tiered and timecache, @Stebalien LGTY?

magik6k commented 6 years ago

And probably just rename syncmount to mount

Stebalien commented 6 years ago

LGTM. @whyrusleeping? You should probably sign off on this since we're deleting code.

whyrusleeping commented 6 years ago

@magik6k @Stebalien lets make a tag on the commit the code exists in before we delete it, and note it in an issue somewhere. After that, SGTM

kevina commented 6 years ago

Some of those might be useful as examples, such as fs and may be worth keeping around. Maybe we can move those to the examples directory.

Stebalien commented 6 years ago

I agree that some of them might be useful (e.g., tiered, timecache) but I'd actually like to get rid of the fs one, even if we keep the others. It's insecure/broken by default (it uses the key names as the file names without modifying them).

kevina commented 6 years ago

The idea was to move it to the examples directory as use it as documentation, not to keep around as a useful datastore. However, I am not set on the idea, any other trivial datastore could serve the same purpose.

Stebalien commented 6 years ago

Yeah, I see the value as documentation... I guess we could just put a big warning saying "don't actually do it this way".

kevina commented 6 years ago

I would also move it under examples/fs.