From b47dfaeb95c7af5e325d9b9dca99258c8b0494ce Mon Sep 17 00:00:00 2001 From: magmahindenburg Date: Wed, 16 Aug 2017 14:51:25 +0900 Subject: [PATCH] Added an index for copayerId in sessions --- lib/storage.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/storage.js b/lib/storage.js index 36dc224..59f0117 100644 --- a/lib/storage.js +++ b/lib/storage.js @@ -83,6 +83,9 @@ Storage.prototype._createIndexes = function() { copayerId: 1, txid: 1, }); + this.db.collection(collections.SESSIONS).createIndex({ + copayerId: 1 + }); }; Storage.prototype.connect = function(opts, cb) {