else:
LOG.info('Computing word frequencies')
cur.drop_table('word_frequencies')
+ cur.execute('ANALYSE search_name')
+ cur.execute('ANALYSE word')
cur.execute("""
CREATE TEMP TABLE word_frequencies AS
WITH word_freq AS MATERIALIZED (
END) as info
FROM word LEFT JOIN word_frequencies wf
ON word.word_id = wf.id
+ ORDER BY word_id
""")
cur.drop_table('word_frequencies')