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

Performance tweaks for search #3257

Merged
merged 6 commits into from
Nov 23, 2023
Merged

Performance tweaks for search #3257

merged 6 commits into from
Nov 23, 2023

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented Nov 23, 2023

This adds various minor performance tweaks for search:

  • running tests against a complete set of combinations of various search parameters revealed some more queries where the Postgres query planner uses the wrong index
  • give even more preference to the index over names to the one over address parts
  • add penalties for one-letter words (which cause trouble with abbreviations like 'U.S.A')

as well as timestamping for debug output in text (helps with finding the long-running SQL).

@lonvia lonvia merged commit 2d54de0 into osm-search:master Nov 23, 2023
8 checks passed
@lonvia lonvia deleted the slow-queries branch November 23, 2023 11:08
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.

1 participant