Database storage size increases significantly when OptimizeLevelStyleCompaction is sued

I have noticed if I open a rocksdb database with following options the initial size of the folder where rocksdb stores the data becomes 145 MB even I put 100 Bytes of single record.
DB* db;
Options options;
Can anyone tell me why so much space if required?

that is indeed strange… can you list the contents of the db folder and attach the LOG file?

1 Like