From db3ec267e683cff02f7101e14dce938683b30c7e Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Mon, 23 Oct 2017 14:04:29 +0300 Subject: [PATCH] Updated README --- README.md | 1 + indexes.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 433c2aff..65dc2f2d 100644 --- a/README.md +++ b/README.md @@ -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' }); diff --git a/indexes.yaml b/indexes.yaml index 6b351dae..42bf70c6 100644 --- a/indexes.yaml +++ b/indexes.yaml @@ -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