speedb-io / speedb

A RocksDB compliant high performance scalable embedded key-value store
https://www.speedb.io/
Apache License 2.0
912 stars 71 forks source link

db_bench: Improve handling of multiple cf-s in the code (too complex) #735

Open udi-speedb opened 1 year ago

udi-speedb commented 1 year ago

db_bench's code handling the number of cf-s is too complex, and, needlessly repeatedly check the number of cf-s (== 1 or > 1). This is unnecessarily complex and makes the code error prone and less readable. A similar improvement was previously done for the handling of multiple db-s.