Skip to content

Commit db87624

Browse files
committed
perf(dashboard_exporter): delegate part optimization to background job
1 parent af6b1d9 commit db87624

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/pkg/commons/db/clickhouse.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ func MustInitClickhouseNative(writer *types.DatabaseConfig) ch.Conn {
6161
Settings: ch.Settings{
6262
"deduplicate_blocks_in_dependent_materialized_views": "1",
6363
"update_insert_deduplication_token_in_dependent_materialized_views": "1",
64+
// trade of higher background overhead for lower query specific memory pressure
65+
// reduces memory usage by 20-30% in our prod insert queries
66+
"optimize_on_insert": "0",
6467
},
6568
ClientInfo: ch.ClientInfo{
6669
Products: []struct {

0 commit comments

Comments
 (0)