Shrink Your BoltDB: it helps to shrink your BoltDB file to fit the real size.
When you are testing CRUD operation on your BoltDB file and it only grows and never will adapt to the real size even if you delete all data inside, then this tool will help you to copy all the data to a new BoltDB file with the exact size.
This project is based on bbolt as the boltdb's author suggest.
To start using sybob, install Go and run go get
:
$ go get github.com/cydside/sybod
sybod data.db
sybod data.db destination.db
Without destination file name it will create a copy of data.db named:
newcopy_data.db
Try it and let me know!