Skip to content

Modify autovacuum config for devices and users tables#6047

Merged
jgrevich merged 1 commit intomainfrom
jjg/psql-autovacuum-config-migration
Mar 11, 2022
Merged

Modify autovacuum config for devices and users tables#6047
jgrevich merged 1 commit intomainfrom
jjg/psql-autovacuum-config-migration

Conversation

@jgrevich
Copy link
Contributor

DB config change needed to support https://github.com/18F/identity-devops/issues/4175

Tested in pt env

              == 20220307214616 PostgreSqlAutovacuumConfig: migrating =======================
              -- execute("        ALTER TABLE \"devices\" SET (autovacuum_vacuum_scale_factor = 0.02,\n                                        autovacuum_analyze_scale_factor = 0.01,\n                                        autovacuum_vacuum_threshold = 0);\n\n        ALTER TABLE \"users\" SET (autovacuum_vacuum_scale_factor = 0.02,\n                                        autovacuum_analyze_scale_factor = 0.01,\n                                        autovacuum_vacuum_threshold = 0);\n")
                 -> 0.0036s
              == 20220307214616 PostgreSqlAutovacuumConfig: migrated (0.0089s) ==============
              
              deploy/migrate finished

@jgrevich jgrevich force-pushed the jjg/psql-autovacuum-config-migration branch 2 times, most recently from 999cbd1 to 4d2c3e7 Compare March 10, 2022 07:37
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but before merging, I think you need to run this locally and check in the version number change to schema.rb

@jgrevich
Copy link
Contributor Author

Thanks. I wondered about that. It did execute on a migration host as shown above but making sure schema.rb is also up to date makes sense. I'll take care of that.

@jgrevich jgrevich force-pushed the jjg/psql-autovacuum-config-migration branch from 4d2c3e7 to 0821e71 Compare March 11, 2022 23:09
changelog: Internal, Database, Modify autovacuum config for devices and users
@jgrevich jgrevich force-pushed the jjg/psql-autovacuum-config-migration branch from 0821e71 to b4d4740 Compare March 11, 2022 23:09
@jgrevich jgrevich merged commit bfdac3f into main Mar 11, 2022
@jgrevich jgrevich deleted the jjg/psql-autovacuum-config-migration branch March 11, 2022 23:40
@aduth aduth mentioned this pull request Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants