mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-01 13:13:53 +08:00
added index for message size
This commit is contained in:
parent
ad5a4a8316
commit
ba3beb3138
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue