diff --git a/lib/mergeset/table.go b/lib/mergeset/table.go index 6cf669615..ab82d123c 100644 --- a/lib/mergeset/table.go +++ b/lib/mergeset/table.go @@ -1323,10 +1323,7 @@ func getCompressLevel(itemsCount uint64) int { if itemsCount <= 1<<25 { return 2 } - if itemsCount <= 1<<28 { - return 3 - } - return 4 + return 3 } func (tb *Table) nextMergeIdx() uint64 { diff --git a/lib/storage/partition.go b/lib/storage/partition.go index acec2bb18..8861a0afa 100644 --- a/lib/storage/partition.go +++ b/lib/storage/partition.go @@ -1542,13 +1542,7 @@ func getCompressLevel(rowsPerBlock float64) int { if rowsPerBlock <= 1000 { return 2 } - if rowsPerBlock <= 2000 { - return 3 - } - if rowsPerBlock <= 4000 { - return 4 - } - return 5 + return 3 } func (pt *partition) nextMergeIdx() uint64 {