mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-14 20:07:54 +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
|
let rows = await db.database
|
||||||
.collection('messagelog')
|
.collection('messagelog')
|
||||||
.find({ id })
|
.find({ $or: [{id}, {queueId: id}] })
|
||||||
.toArray();
|
.toArray();
|
||||||
|
|
||||||
while (rows.length) {
|
while (rows.length) {
|
||||||
|
|
|
@ -525,6 +525,13 @@ indexes:
|
||||||
parentId: 1
|
parentId: 1
|
||||||
sparse: true # only messages inserted by mail store have parentId set
|
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
|
- collection: messagelog
|
||||||
index:
|
index:
|
||||||
name: messagelog_autoexpire
|
name: messagelog_autoexpire
|
||||||
|
|
Loading…
Reference in a new issue