// SetMaxBytesForLevelBase sets the maximum total data size for a level. // // It is the max total for level-1. // Maximum number of bytes for level L can be calculated as // (max_bytes_for_level_base) * (max_bytes_for_level_multiplier ^ (L-1)) // // For example, if max_bytes_for_level_base is 20MB, and if // max_bytes_for_level_multiplier is 10, total data size for level-1 // will be 20MB, total file size for level-2 will be 200MB, // and total file size for level-3 will be 2GB. // Default: 10MB func (opts *Options) SetMaxBytesForLevelBase(value uint64) { C.rocksdb_options_set_max_bytes_for_level_base(opts.c, C.uint64_t(value)) }
func (o *Options) SetMaxBytesForLevelBase(n int) { C.rocksdb_options_set_max_bytes_for_level_base(o.Opt, C.uint64_t(uint64(n))) }