lib/storage: return back finalPartsToMerge from 2 to 3 in order to prevent from excessive merges in old partitions

This commit is contained in:
Aliaksandr Valialkin 2019-11-05 17:26:13 +02:00
parent e5b1fa0c38
commit a10c4cad85

View File

@ -58,7 +58,7 @@ const defaultPartsToMerge = 15
// It must be smaller than defaultPartsToMerge.
// Lower value improves select performance at the cost of increased
// write amplification.
const finalPartsToMerge = 2
const finalPartsToMerge = 3
// getMaxRowsPerPartition returns the maximum number of rows that haven't been converted into parts yet.
func getMaxRawRowsPerPartition() int {