mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-09-08 14:15:40 +08:00
Updated README
This commit is contained in:
parent
572ba18650
commit
db3ec267e6
2 changed files with 2 additions and 1 deletions
|
@ -262,6 +262,7 @@ sh.enableSharding('wildduck');
|
|||
// consider using mailbox:hashed for messages only with large shard chunk size
|
||||
sh.shardCollection('wildduck.messages', { mailbox: 1, uid: 1 });
|
||||
sh.shardCollection('wildduck.threads', { user: 'hashed' });
|
||||
sh.shardCollection('wildduck.messagelog', { id: 'hashed' });
|
||||
// attachment _id is a sha256 hash of attachment contents
|
||||
sh.shardCollection('wildduck.attachments.files', { _id: 'hashed' });
|
||||
sh.shardCollection('wildduck.attachments.chunks', { files_id: 'hashed' });
|
||||
|
|
|
@ -364,7 +364,7 @@ indexes:
|
|||
name: messagelog_id_hashed
|
||||
key:
|
||||
id: hashed
|
||||
- collection: threads
|
||||
- collection: messagelog
|
||||
index:
|
||||
name: messagelog_autoexpire
|
||||
# autoremove messagelog entries after 180 days
|
||||
|
|
Loading…
Add table
Reference in a new issue