From a8c7c30f20413ee5a8637b9f52f561b12045a635 Mon Sep 17 00:00:00 2001 From: Nick Gammon Date: Wed, 15 Sep 2010 08:17:24 +1000 Subject: [PATCH] Added Write-Ahead-Logging to spellchecker.lua --- scripting/spellchecker.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripting/spellchecker.lua b/scripting/spellchecker.lua index 927dcc9f..c9f5d0e1 100644 --- a/scripting/spellchecker.lua +++ b/scripting/spellchecker.lua @@ -330,6 +330,9 @@ local function init () end -- if end + -- enable WAL (Write-Ahead Logging) + assert (db:execute "PRAGMA journal_mode=WAL;") + -- if no words table, make one if not words_table then -- create a table to hold the words