]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove disabling of prepared statements
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 8 Jul 2023 13:59:15 +0000 (15:59 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 8 Jul 2023 13:59:15 +0000 (15:59 +0200)
Fixes for query planning with prepared statements to follow in
subsequent commits.

nominatim/api/core.py

index 8d503fa5e836cbb9b82ab992530de5cead00bf4b..2a19d97442cc46cf6870b213117cecc7ff65988d 100644 (file)
@@ -57,8 +57,6 @@ class NominatimAPIAsync:
 
             query = {k: v for k, v in dsn.items()
                       if k not in ('user', 'password', 'dbname', 'host', 'port')}
-            if PGCORE_LIB == 'asyncpg':
-                query['prepared_statement_cache_size'] = '0'
 
             dburl = sa.engine.URL.create(
                        f'postgresql+{PGCORE_LIB}',