forked from hans/Nominatim
remove disabling of prepared statements
Fixes for query planning with prepared statements to follow in subsequent commits.
This commit is contained in:
@@ -57,8 +57,6 @@ class NominatimAPIAsync:
|
|||||||
|
|
||||||
query = {k: v for k, v in dsn.items()
|
query = {k: v for k, v in dsn.items()
|
||||||
if k not in ('user', 'password', 'dbname', 'host', 'port')}
|
if k not in ('user', 'password', 'dbname', 'host', 'port')}
|
||||||
if PGCORE_LIB == 'asyncpg':
|
|
||||||
query['prepared_statement_cache_size'] = '0'
|
|
||||||
|
|
||||||
dburl = sa.engine.URL.create(
|
dburl = sa.engine.URL.create(
|
||||||
f'postgresql+{PGCORE_LIB}',
|
f'postgresql+{PGCORE_LIB}',
|
||||||
|
|||||||
Reference in New Issue
Block a user