Skip to content
Snippets Groups Projects
Commit 398397e2 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Merge branch 'bw_vacuum_analyze_after_indices' into 'develop'

VACUUM ANALYZE must be executed after index creation but before other...

See merge request !512
parents 12efa972 a9a2510f
No related branches found
No related tags found
3 merge requests!518Delivery of new features and bugfixes into master branch.,!517Delivery of new features and bugfixes into master branch.,!512VACUUM ANALYZE must be executed after index creation but before other...
......@@ -491,6 +491,10 @@ class DbState:
cls.processing_indexes( False, force_index_rebuild, True )
log.info("Creating indexes: finished")
# Update statistics and execution plans after index creation.
if massive_sync_preconditions:
cls._execute_query(cls.db(),"VACUUM (VERBOSE,ANALYZE)")
#all post-updates are executed in different threads: one thread per one table
log.info("Filling tables with final values: started")
cls._finish_all_tables(massive_sync_preconditions, last_imported_block, current_imported_block)
......
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