Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework update mechanism to be independent from Nominatim updates #772

Merged
merged 4 commits into from
Feb 21, 2024

Conversation

lonvia
Copy link
Collaborator

@lonvia lonvia commented Feb 21, 2024

This completely changes how updates are handled with relation to Nominatim updates. Photon now installs a trigger which tracks updates by Nominatim in a private tables. When running updates, it simply collects new information for the changed items.

It wasn't possible to implement this completely without triggers (as originally discussed in #638) because there is no way to track deletions properly. I still didn't want to add the change mechanisms to Nominatim as it would require to wait for a new release of Nominatim. The proposed mechanism should work with any Nominatim version insofar as Photon is compatible with it.

Updates for interpolations and places with housenumbers are still broken. I'll address that in a separate PR.

Please note that the mechanism how to run Nominatim and Photon updates has changed completely. Refer to the README on how to set up the process now. It is in theory possible to run the Nominatim update script and Photon updater concurrently but I would advise against it. Better to run them one after the other as shown in continuously_update_from_nominatim.sh.

Fixes #638.

Photon now installs a trigger which tracks the places to be deleted
or updated. It then refreshes its own data using the tracking data.

With the new mechanism it is possible to run Nominatim and Photon
updates independently, although they still should not be run
concurrently.
@lonvia lonvia merged commit ea037b8 into komoot:master Feb 21, 2024
4 checks passed
@lonvia lonvia deleted the fix-update-mechanism branch February 21, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updates no longer work with Nominatim 4.x
1 participant