Merge pull request #13425 from smatvienko-tb/fix/FILLFACTOR

remove FILLFACTOR 95. As default 90 is fine for most applications
This commit is contained in:
Viacheslav Klimov 2025-05-30 16:41:22 +03:00 committed by GitHub
commit 54aeb363da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,19 +22,19 @@
-- That why we need to define DESC index explicitly as (ts DESC NULLS LAST)
CREATE INDEX IF NOT EXISTS idx_rule_node_debug_event_main
ON rule_node_debug_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST) WITH (FILLFACTOR=95);
ON rule_node_debug_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST);
CREATE INDEX IF NOT EXISTS idx_rule_chain_debug_event_main
ON rule_chain_debug_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST) WITH (FILLFACTOR=95);
ON rule_chain_debug_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST);
CREATE INDEX IF NOT EXISTS idx_stats_event_main
ON stats_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST) WITH (FILLFACTOR=95);
ON stats_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST);
CREATE INDEX IF NOT EXISTS idx_lc_event_main
ON lc_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST) WITH (FILLFACTOR=95);
ON lc_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST);
CREATE INDEX IF NOT EXISTS idx_error_event_main
ON error_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST) WITH (FILLFACTOR=95);
ON error_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST);
CREATE INDEX IF NOT EXISTS idx_cf_debug_event_main
ON cf_debug_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST) WITH (FILLFACTOR=95);
ON cf_debug_event (tenant_id ASC, entity_id ASC, ts DESC NULLS LAST);