Further reduced number of db requests

This commit is contained in:
Kevin Jahns
2016-01-26 15:30:19 +01:00
parent 6b1cf18822
commit 31d2a231e3
4 changed files with 151 additions and 106 deletions

View File

@@ -75,7 +75,7 @@ module.exports = function (Y /* :any */) {
}
this.gc1 = [] // first stage
this.gc2 = [] // second stage -> after that, remove the op
this.gcTimeout = opts.gcTimeout || 5000
this.gcTimeout = opts.gcTimeout || 50000
function garbageCollect () {
return os.whenTransactionsFinished().then(function () {
if (os.gc1.length > 0 || os.gc2.length > 0) {