]> git.openstreetmap.org Git - nominatim.git/commit
use constant expressions to select partial indexes in reverse
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 8 Jul 2023 14:28:51 +0000 (16:28 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 8 Jul 2023 22:31:53 +0000 (00:31 +0200)
commit75139961a3bdcb3b70381ffd10f58fd316fd9f26
treec2296aea4310b6a575137f7761e4a035dcdb4145
parent3e2dd59a944656d21779ebe28d1f8cafc719bda9
use constant expressions to select partial indexes in reverse

When expressions are generated with SQLAlchemy, any constants are
replaced with bind parameters. The bind parameters become parameters of
prepared statements. The result is that the query planner tends to
oversee that the partial indexes can be used.
nominatim/api/reverse.py
nominatim/db/sqlalchemy_functions.py [new file with mode: 0644]