]> git.openstreetmap.org Git - nominatim.git/commit
api: delay setup of initial database connection
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 24 Jan 2023 09:56:22 +0000 (10:56 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 24 Jan 2023 09:56:22 +0000 (10:56 +0100)
commite56957f047ffacbce41eb6af914a192274996955
treeea50d53d60259a8a862fc2163e2e58644a067b05
parent3cc357bffa4fdcdc32ed67aba35de06d1d6b419c
api: delay setup of initial database connection

Defer database setup until the first call to a function. Needs an
additional lock because the setup still needs to be done sequentially.
nominatim/api.py
nominatim/apicmd/status.py