try to speed up query

This commit is contained in:
polv committed 2026-03-06 22:37:15 +07:00
1 parent dd52b82cc7
commit 7df0ad6066
3 files changed
+56 -20

No files matched your search

+1
View File
@@ -155,6 +155,7 @@ impl YomitanWriter {
CREATE INDEX IF NOT EXISTS dictionaries_lang ON dictionaries (lang);
CREATE INDEX IF NOT EXISTS terms_dict_id ON terms (dict_id);
CREATE INDEX IF NOT EXISTS terms_term_norm ON terms (term_norm);
CREATE INDEX IF NOT EXISTS terms_reading ON terms (reading);
CREATE INDEX IF NOT EXISTS terms_term_reading_score ON terms(term, reading, score DESC);