-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
services/horizon: Add migration to tighten up the trade aggregation a…
…utovac settings (#4412) * Add migration to tighten up the trade aggregation autovac settings * update changelog * gogenerate.sh
- Loading branch information
Paul Bellamy
authored
May 27, 2022
1 parent
6af10a1
commit 97da5a5
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
services/horizon/internal/db2/schema/migrations/56_trade_aggregation_autovac.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- +migrate Up | ||
|
||
alter table history_trades_60000 set ( | ||
autovacuum_vacuum_scale_factor = 0.05, | ||
autovacuum_analyze_scale_factor = 0.025 | ||
); | ||
|
||
-- +migrate Down | ||
|
||
alter table history_trades_60000 set ( | ||
autovacuum_vacuum_scale_factor = 0.1, | ||
autovacuum_analyze_scale_factor = 0.5 | ||
); |