goleveldb icon indicating copy to clipboard operation
goleveldb copied to clipboard

How seek compaction works?

Open joowon-byun opened this issue 4 years ago • 1 comments

Hello,

My team and I were using levelDB for our service. We found out that disabling seek compaction enhances our system speed.

We are wondering if we need write all the data to a new DB from the start.

  • I thought enabling the seek compaction will make levelDB with more levels. And disabling it will make a DB with less levels, ultimately.
  • My teammate think turning on and off the seek compaction will only impact the timing. So, ultimately, the DB will be in the same state whether the seek compaction is on or off. Therefore, the DB will ultimately be the same, with same levels.

Which one is right? Do we need to construct a new DB for speed improvement? Or we can just use the DB without seek compaction from now on?

joowon-byun avatar Nov 05 '20 08:11 joowon-byun

@syndtr Could you let us know which one is right?

KimKyungup avatar Nov 19 '20 00:11 KimKyungup