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

Recreate word table when refreshing counts #3328

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented Feb 5, 2024

When updating the frequency counts for words in the word table, the entries in the table have been simply updated until now. This is potentially expensive when it clashes with vacuuming (see #3315) and leaves a heavily bloated table.

Change the algorithm to create a new word table and switch out the old table.

For the planet this brings down the table size for the word table from 15GB to 8GB.

The counting touches a large part of the word table, leaving
bloated tables and indexes. Thus recreate the table instead and
swap it in.
@lonvia lonvia merged commit f523c01 into osm-search:master Feb 5, 2024
9 checks passed
@lonvia lonvia deleted the word-count-into-new-table branch February 5, 2024 10:58
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