Change the autovacuum config for some tables

Looking at data for the the patches deployment of the Guix Data Service, these
tables look like they might benefit from vacuuming/analyzing more often, so
adjust the configuration so this will hopefully happen.
This commit is contained in:
Christopher Baines 2020-10-01 22:30:39 +01:00
parent c05a8e4e9f
commit 6e0e33addf
4 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,20 @@
-- Deploy guix-data-service:change_autovacuum_config to pg
BEGIN;
ALTER TABLE derivations SET (autovacuum_vacuum_scale_factor = 0.01);
ALTER TABLE derivations SET (autovacuum_analyze_scale_factor = 0.01);
ALTER TABLE derivation_inputs SET (autovacuum_vacuum_scale_factor = 0.01);
ALTER TABLE derivation_inputs SET (autovacuum_analyze_scale_factor = 0.01);
ALTER TABLE guix_revision_package_derivations SET (autovacuum_vacuum_scale_factor = 0.01);
ALTER TABLE guix_revision_package_derivations SET (autovacuum_analyze_scale_factor = 0.01);
ALTER TABLE derivation_sources SET (autovacuum_vacuum_scale_factor = 0.01);
ALTER TABLE derivation_sources SET (autovacuum_analyze_scale_factor = 0.01);
ALTER TABLE derivation_outputs SET (autovacuum_vacuum_scale_factor = 0.01);
ALTER TABLE derivation_outputs SET (autovacuum_analyze_scale_factor = 0.01);
COMMIT;