]> git.openstreetmap.org Git - nominatim.git/commitdiff
indexer: ANALYSE must be run outside transactions
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 4 Mar 2021 10:05:56 +0000 (11:05 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 4 Mar 2021 10:06:33 +0000 (11:06 +0100)
nominatim/indexer/indexer.py

index 93723844d8d63582c982a4f9846058af7b512b8e..06c05e1d5a49e32a7e2c44290339d19c1344b548 100644 (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)