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

admin warm --reverse-only should not run search queries #3214

Closed
wants to merge 1 commit into from

Conversation

mtmail
Copy link
Collaborator

@mtmail mtmail commented Sep 28, 2023

nominatim admin warm --reverse-only should not run (forward) search queries.

fixes #3213

for _ in range(1000):
api.reverse((random.uniform(-90, 90), random.uniform(-180, 180)),
address_details=True)

if args.target != 'search':
if args.target == 'search':
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's more complicated. If args.target is not set at all this must be run as well.

Also, I think your comment was right that we simply should skip warming search on a reverse-only DB.

@lonvia
Copy link
Member

lonvia commented Oct 4, 2023

Did a slightly different fix with f1fbcd8 which also includes handling of reverse-only.

@lonvia lonvia closed this Oct 4, 2023
@mtmail mtmail deleted the warm-switches branch April 23, 2024 14:07
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.

For a --reverse-only database pre-warming still tries to access search_name table
2 participants