Skip to content

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
@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