indexer: ANALYSE must be run outside transactions

This commit is contained in:
Sarah Hoffmann 2021-03-04 11:05:56 +01:00
parent 6b306f30b6
commit dd301cf5ac

View File

@ -159,6 +159,7 @@ class Indexer:
ensure that database statistics are updated.
"""
conn = psycopg2.connect(self.dsn)
conn.autocommit = True
try:
self.index_by_rank(0, 4)