boltdb/bolt

Q: efficient append?

glycerine opened this issue · 2 comments

I'm storing a large []byte blob in bolt.

I would like to efficiently append to the end of this blob.

I would like to append without having to read and write all the previously written megabytes of blob.

The entirety of the blob should be available when reading from its key.

Is this possible in Bolt?

Doesn't look like append is available.

@glycerine how about creating a bucket under the specified key and "append" by Puting new values under the NextSequence ID and when the whole content required, ForEach on the bucket and create an appended byte slice from it ?