mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
indexer: ANALYSE must be run outside transactions
This commit is contained in:
@@ -159,6 +159,7 @@ class Indexer:
|
|||||||
ensure that database statistics are updated.
|
ensure that database statistics are updated.
|
||||||
"""
|
"""
|
||||||
conn = psycopg2.connect(self.dsn)
|
conn = psycopg2.connect(self.dsn)
|
||||||
|
conn.autocommit = True
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.index_by_rank(0, 4)
|
self.index_by_rank(0, 4)
|
||||||
|
|||||||
Reference in New Issue
Block a user