// SetBlockSize sets the approximate size of user data packed per block. // // The default is roughly 4096 uncompressed bytes. A better setting depends on // your use case. See the LevelDB documentation for details. func (o *BlockBasedOptions) SetBlockSize(s int) { C.rocksdb_block_based_options_set_block_size(o.Opt, C.size_t(s)) }
// Approximate size of user data packed per block. Note that the // block size specified here corresponds to uncompressed data. The // actual size of the unit read from disk may be smaller if // compression is enabled. This parameter can be changed dynamically. // Default: 4K func (self *BlockBasedTableOptions) SetBlockSize(block_size int) { C.rocksdb_block_based_options_set_block_size(self.c, C.size_t(block_size)) }