updated index definitions

This commit is contained in:
Andris Reinman 2017-06-13 13:24:55 +03:00
parent a8eb98a870
commit fea92ea175

View file

@ -5,12 +5,14 @@
"key": { "key": {
"username": 1 "username": 1
}, },
"unique": true "unique": true,
"background": true
}, { }, {
"name": "show_new", "name": "show_new",
"key": { "key": {
"created": -1 "created": -1
} },
"background": true
}] }]
}, { }, {
"collection": "addresses", "collection": "addresses",
@ -19,12 +21,14 @@
"key": { "key": {
"address": 1 "address": 1
}, },
"unique": true "unique": true,
"background": true
}, { }, {
"name": "user", "name": "user",
"key": { "key": {
"user": 1 "user": 1
} },
"background": true
}] }]
}, { }, {
"collection": "mailboxes", "collection": "mailboxes",
@ -33,19 +37,22 @@
"key": { "key": {
"user": 1, "user": 1,
"path": 1 "path": 1
} },
"background": true
}, { }, {
"name": "user_subscribed", "name": "user_subscribed",
"key": { "key": {
"user": 1, "user": 1,
"subscribed": 1 "subscribed": 1
} },
"background": true
}, { }, {
"name": "find_by_type", "name": "find_by_type",
"key": { "key": {
"user": 1, "user": 1,
"specialUse": 1 "specialUse": 1
} },
"background": true
}] }]
}, { }, {
"collection": "messages", "collection": "messages",
@ -53,126 +60,146 @@
"name": "mailbox_messages", "name": "mailbox_messages",
"key": { "key": {
"mailbox": 1 "mailbox": 1
} },
"background": true
}, { }, {
"name": "user_messages", "name": "user_messages",
"key": { "key": {
"user": 1 "user": 1
} },
"background": true
}, { }, {
"name": "mailbox_uid", "name": "mailbox_uid",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"uid": 1 "uid": 1
} },
"background": true
}, { }, {
"name": "mailbox_modseq_uid", "name": "mailbox_modseq_uid",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"modseq": 1, "modseq": 1,
"uid": 1 "uid": 1
} },
"background": true
}, { }, {
"name": "newer_first", "name": "newer_first",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"uid": -1 "uid": -1
} },
"background": true
}, { }, {
"name": "mailbox_flags", "name": "mailbox_flags",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"flags": 1 "flags": 1
} },
"background": true
}, { }, {
"name": "by_modseq", "name": "by_modseq",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"modseq": 1 "modseq": 1
} },
"background": true
}, { }, {
"name": "by_idate", "name": "by_idate",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"idate": 1, "idate": 1,
"_id": 1 "_id": 1
} },
"background": true
}, { }, {
"name": "by_idate_newer", "name": "by_idate_newer",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"idate": -1, "idate": -1,
"_id": -1 "_id": -1
} },
"background": true
}, { }, {
"name": "by_idate_newer", "name": "by_idate_newer",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"idate": -1, "idate": -1,
"_id": -1 "_id": -1
} },
"background": true
}, { }, {
"name": "by_hdate", "name": "by_hdate",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"hdate": 1, "hdate": 1,
"msgid": 1 "msgid": 1
} },
"background": true
}, { }, {
"name": "by_size", "name": "by_size",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"size": 1 "size": 1
} },
"background": true
}, { }, {
"name": "by_headers", "name": "by_headers",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"headers.key": 1, "headers.key": 1,
"headers.value": 1 "headers.value": 1
} },
"background": true
}, { }, {
"name": "fulltext", "name": "fulltext",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"text": "text" "text": "text"
} },
"background": true
}, { }, {
"name": "mailbox_seen_flag", "name": "mailbox_seen_flag",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"seen": 1 "seen": 1
} },
"background": true
}, { }, {
"name": "mailbox_deleted_flag", "name": "mailbox_deleted_flag",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"deleted": 1 "deleted": 1
} },
"background": true
}, { }, {
"name": "mailbox_flagged_flag", "name": "mailbox_flagged_flag",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"flagged": 1 "flagged": 1
} },
"background": true
}, { }, {
"name": "mailbox_draft_flag", "name": "mailbox_draft_flag",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"draft": 1 "draft": 1
} },
"background": true
}, { }, {
"name": "has_attachment", "name": "has_attachment",
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"ha": 1 "ha": 1
} },
"background": true
}, { }, {
"name": "retention_time", "name": "retention_time",
"key": { "key": {
"exp": 1, "exp": 1,
"rdate": 1 "rdate": 1
} },
"background": true
}] }]
}, { }, {
"collection": "attachments.files", "collection": "attachments.files",
@ -180,13 +207,15 @@
"name": "attachment_hash", "name": "attachment_hash",
"key": { "key": {
"metadata.h": 1 "metadata.h": 1
} },
"background": true
}, { }, {
"name": "related_attachments", "name": "related_attachments",
"key": { "key": {
"metadata.c": 1, "metadata.c": 1,
"metadata.m": 1 "metadata.m": 1
} },
"background": true
}] }]
}, { }, {
"collection": "journal", "collection": "journal",
@ -195,12 +224,14 @@
"key": { "key": {
"mailbox": 1, "mailbox": 1,
"modseq": 1 "modseq": 1
} },
"background": true
}, { }, {
"name": "autoexpire", "name": "autoexpire",
"expireAfterSeconds": 21600, "expireAfterSeconds": 21600,
"key": { "key": {
"created": 1 "created": 1
} },
"background": true
}] }]
}] }]