diff --git a/dictionary/sqlite/create_english_db_with_translation_and_ipa.py b/dictionary/sqlite/create_english_db_with_translation_and_ipa.py index 8792bb1..8ec5f70 100644 --- a/dictionary/sqlite/create_english_db_with_translation_and_ipa.py +++ b/dictionary/sqlite/create_english_db_with_translation_and_ipa.py @@ -17,6 +17,9 @@ ) ''') +c.execute('CREATE INDEX IF NOT EXISTS idx_word ON words(word);') +c.execute("PRAGMA journal_mode=WAL") + # Insert data for word, details in data.items(): c.execute(''' diff --git a/dictionary/sqlite/words_with_frequency_and_translation_and_ipa.sqlite3 b/dictionary/sqlite/words_with_frequency_and_translation_and_ipa.sqlite3 index 567ca95..e32e442 100644 Binary files a/dictionary/sqlite/words_with_frequency_and_translation_and_ipa.sqlite3 and b/dictionary/sqlite/words_with_frequency_and_translation_and_ipa.sqlite3 differ