diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-11-13 13:29:35 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-11-13 13:29:35 -0800 |
commit | a9eea9f63497f2fe829f5b8d1ecf6c58f18b2b79 (patch) | |
tree | d8b5ee5493a1cd6dd2cf8e0786c064d7e1d1099b /ext/bg/js/database.js | |
parent | 2587b9ae6bb9a9b5f4fc5dd17a7f043c17596a06 (diff) |
WIP
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r-- | ext/bg/js/database.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js index 6a171dd4..23041e40 100644 --- a/ext/bg/js/database.js +++ b/ext/bg/js/database.js @@ -159,7 +159,7 @@ class Database { let termDeleter = Promise.resolve(); if (info.hasTerms) { const termDeleterFunc = () => { - return this.db.terms.where('dictionary').equals(title).limit(1000).delete().then(count => { + return this.db.terms.where('dictionary').equals(title).limit(500).delete().then(count => { if (count === 0) { return Promise.resolve(); } @@ -179,7 +179,7 @@ class Database { let kanjiDeleter = Promise.resolve(); if (info.hasKanji) { const kanjiDeleterFunc = () => { - return this.db.kanji.where('dictionary').equals(title).limit(1000).delete().then(count => { + return this.db.kanji.where('dictionary').equals(title).limit(500).delete().then(count => { if (count === 0) { return Promise.resolve(); } |