Skip to content

Commit

Permalink
Setup more aggressive autovacuum_vacuum_scale_factor setting for even…
Browse files Browse the repository at this point in the history
…ts table
  • Loading branch information
nudded committed Aug 1, 2024
1 parent 6a22eae commit 728d5d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions db/migrate/20240801142242_alter_events_vacuum_settings.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AlterEventsVacuumSettings < ActiveRecord::Migration[7.1]
def change
execute "ALTER TABLE events set (autovacuum_vacuum_scale_factor=0.005)"
end
end
2 changes: 1 addition & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 728d5d2

Please sign in to comment.