]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/indexer/indexer.py
indexer: ANALYSE must be run outside transactions
[nominatim.git] / 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)