I’m seeing very slow badger reads (78 seconds), compared to prior use of files for reads (2.2 seconds). This is on SSD. Here’s a profile:
At badgerdb version github.com/dgraph-io/badger/v2 v2.0.1-rc1.0.20200709123515-8e896a7af361
setting up badger like this:
opt := badger.DefaultOptions(bpath).WithLogger(badgerDefaultLogger) opt.Compression = badgeroptions.None opt.ZSTDCompressionLevel = 0 opt.SyncWrites = true opt.MaxCacheSize = 0 opt.LoadBloomsOnOpen = false // should speed up start-up time. db, err := badger.Open(opt)
I’m wondering if there is any tuning I should be doing to get the highest possible read performance? The seeks to the right key prefix seem to take a lot of time.