From ba3beb31386a551ec9637b96013b51fb6e3ec607 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Thu, 16 Nov 2017 09:41:52 +0200 Subject: [PATCH] added index for message size --- indexes.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/indexes.yaml b/indexes.yaml index 3504fa72..00203a1b 100644 --- a/indexes.yaml +++ b/indexes.yaml @@ -297,6 +297,13 @@ indexes: exp: 1 rdate: 1 +- collection: messages + index: + # needed to calculate quotas + name: message_size + key: + size: 1 + # Indexes for the attachments collection # attachments.files collection should be sharded by _id (hash) # attachments.chunks collection should be sharded by files_id (hash)