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

full vacuum hive.posts after massive sync

parent 5135d970
No related branches found
No related tags found
2 merge requests!827Merge develop changes to master,!817full vacuum hive.posts after massive sync
......@@ -537,6 +537,10 @@ class DbState:
def vacuum_table(table, db):
with AutoDbDisposer(db, "vacuum") as db_mgr:
log.info(f"Vacuuming table {table}")
if (table == f"{SCHEMA_NAME}.hive_posts"):
db_mgr.db.get_connection(0).execute("VACUUM (FULL, VERBOSE,ANALYZE) " + table)
else:
db_mgr.db.get_connection(0).execute("VACUUM (VERBOSE,ANALYZE) " + table)
db_mgr.db.get_connection(0).execute("VACUUM (VERBOSE,ANALYZE) " + table)
methods = []
......
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