couchbase / moss

moss - a simple, fast, ordered, persistable, key-val storage library for golang
Other
959 stars 58 forks source link

Buckets? #55

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi, from the description it is not obvious to me if moss supports buckets(like bolt)?

There is the

child collections allow multiple related collections to be atomically grouped

which I'm not exactly sure if it is something like buckets or it is just a bunch of selected records manually put together?

mschoch commented 6 years ago

I think it is functionally similar, in that the application can group together a bunch of items under a name, and have a separate key-space to work with. And typically this performs better than prefixing all the keys with some identifier.

That said, I'm sure the implementations are much different, so questions like, "Can I create millions of buckets/child-collections?" may have different answers.

ghost commented 6 years ago

Yes, I just want to be able to basically have multiple values per key's value. That's buckets in BoltDB really, no magic.