wildduck/indexes.js

81 lines
1 KiB
JavaScript
Raw Normal View History

2017-03-06 05:45:50 +08:00
/* global db */
'use strict';
db.users.createIndex({
username: 1
});
db.mailboxes.createIndex({
username: 1
});
db.mailboxes.createIndex({
username: 1,
path: 1
});
db.mailboxes.createIndex({
username: 1,
subscribed: 1
});
db.messages.createIndex({
mailbox: 1
});
db.messages.createIndex({
mailbox: 1,
unseen: 1
});
db.messages.createIndex({
mailbox: 1,
uid: 1
});
db.messages.createIndex({
mailbox: 1,
uid: 1,
modseq: 1
});
db.messages.createIndex({
mailbox: 1,
flags: 1
});
db.messages.createIndex({
modseq: 1
});
db.messages.createIndex({
modseq: -1
});
db.messages.createIndex({
flags: 1
});
db.messages.createIndex({
2017-03-10 21:20:13 +08:00
internaldate: 1
2017-03-06 05:45:50 +08:00
});
db.messages.createIndex({
2017-03-10 21:20:13 +08:00
internaldate: -1
});
db.messages.createIndex({
headerdate: 1
});
db.messages.createIndex({
headerdate: -1
});
db.messages.createIndex({
size: 1
});
db.messages.createIndex({
size: -1
2017-03-06 05:45:50 +08:00
});
db.messages.createIndex({
uid: 1
});
db.messages.createIndex({
uid: -1
});