From 3d938e7bf8bf3a063121a0087a643b229d8741d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 3 May 2019 09:48:30 -0400 Subject: [PATCH] fix: increase batch size --- src/upgrades/1.11.1/remove_ignored_cids_per_user.js | 1 + src/upgrades/1.12.0/category_watch_state.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/upgrades/1.11.1/remove_ignored_cids_per_user.js b/src/upgrades/1.11.1/remove_ignored_cids_per_user.js index f175e4074f..1d80f0cf09 100644 --- a/src/upgrades/1.11.1/remove_ignored_cids_per_user.js +++ b/src/upgrades/1.11.1/remove_ignored_cids_per_user.js @@ -16,6 +16,7 @@ module.exports = { db.deleteAll(keys, next); }, { progress: this.progress, + batch: 500, }, callback); }, }; diff --git a/src/upgrades/1.12.0/category_watch_state.js b/src/upgrades/1.12.0/category_watch_state.js index 178b7a0354..2d9cbe0c4c 100644 --- a/src/upgrades/1.12.0/category_watch_state.js +++ b/src/upgrades/1.12.0/category_watch_state.js @@ -36,6 +36,7 @@ module.exports = { }, next); }, { progress: progress, + batch: 500, }, next); }, function (next) {