Improve query performance using explicit INDEXED BY (#3550)
This commit is contained in:
parent
de88a867a2
commit
016a0caf17
1 changed files with 1 additions and 0 deletions
|
@ -2233,6 +2233,7 @@ async function getExpiredMessages() {
|
|||
async function getOutgoingWithoutExpiresAt() {
|
||||
const rows = await db.all(`
|
||||
SELECT json FROM messages
|
||||
INDEXED BY messages_without_timer
|
||||
WHERE
|
||||
expireTimer > 0 AND
|
||||
expires_at IS NULL AND
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue