From: Michael Tremer Date: Mon, 18 Mar 2024 16:52:26 +0000 (+0000) Subject: importer: ANALYZE all tables before we are running the export X-Git-Tag: 0.9.18~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d75593af09f5783d03bd04a26ebf55fba29628ec;p=people%2Fms%2Flibloc.git importer: ANALYZE all tables before we are running the export This should help the query planner to make better decisions when planning the large queries. Signed-off-by: Michael Tremer --- diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index cc66414..766d883 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -336,6 +336,9 @@ class CLI(object): if ns.license: writer.license = ns.license + # Analyze everything for the query planner hopefully making better decisions + self.db.execute("ANALYZE") + # Add all Autonomous Systems log.info("Writing Autonomous Systems...")