Updated README

This commit is contained in:
Andris Reinman 2017-10-23 14:04:29 +03:00
parent 572ba18650
commit db3ec267e6
2 changed files with 2 additions and 1 deletions

View file

@ -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' });

View file

@ -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