mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-27 02:10:52 +08:00
index byq queueid
This commit is contained in:
parent
abf5084573
commit
ca39ba4791
2 changed files with 8 additions and 1 deletions
2
bin/logs
2
bin/logs
|
@ -37,7 +37,7 @@ let argv = yargs
|
|||
|
||||
let rows = await db.database
|
||||
.collection('messagelog')
|
||||
.find({ id })
|
||||
.find({ $or: [{id}, {queueId: id}] })
|
||||
.toArray();
|
||||
|
||||
while (rows.length) {
|
||||
|
|
|
@ -525,6 +525,13 @@ indexes:
|
|||
parentId: 1
|
||||
sparse: true # only messages inserted by mail store have parentId set
|
||||
|
||||
- collection: messagelog
|
||||
index:
|
||||
name: messagelog_queue
|
||||
key:
|
||||
queueId: 1
|
||||
sparse: true # only messages inserted by mail store have queueId set
|
||||
|
||||
- collection: messagelog
|
||||
index:
|
||||
name: messagelog_autoexpire
|
||||
|
|
Loading…
Reference in a new issue