Skip to content
Snippets Groups Projects
Commit 86a1962b authored by Dan Notestein's avatar Dan Notestein
Browse files

re-instate overrides on two tables where it seems to make a difference, analyze more after

parent a76f4e8d
No related branches found
No related tags found
1 merge request!842Remove hive_post_data img_url, instead extracting it from json field
......@@ -462,7 +462,7 @@ def setup(db, admin_db):
build_metadata().create_all(db.engine())
# tune auto vacuum/analyze
# Disable special autovacuum at least for massive sync reset_autovac(db)
reset_autovac(db)
# sets FILLFACTOR:
set_fillfactor(db)
......@@ -773,12 +773,12 @@ def reset_autovac(db):
per-table, in the format (autovacuum_threshold, autoanalyze_threshold)."""
autovac_config = { # vacuum analyze
'hive_accounts': (50000, 100000),
# 'hive_accounts': (50000, 100000),
'hive_posts': (2500, 10000),
'hive_post_tags': (5000, 10000),
'hive_follows': (5000, 5000),
'hive_feed_cache': (5000, 5000),
'hive_reblogs': (5000, 5000),
# 'hive_follows': (5000, 5000),
# 'hive_feed_cache': (5000, 5000),
# 'hive_reblogs': (5000, 5000),
}
for table, (n_vacuum, n_analyze) in autovac_config.items():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment