Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 637 Bytes

README.md

File metadata and controls

18 lines (9 loc) · 637 Bytes

bolt-multifile-sample

bolt using a single file to store k/v pairs with same bucket.

A blockchain named Sia using bolt db only has a single file for storing blockchain data. With data becoming big, the db performance will be down.

So this repository give an example to store data with same bucket and path using different files.

Usage:

The test file has given you best practice

Todo:

  • monitor the size of the last *.db, and create a new bolt db reference when reach the specified limit
  • data migration when the size of a *.db file is to small