mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-02 06:11:32 +01:00
Improve query performance using explicit INDEXED BY (#3550)
This commit is contained in:
committed by
Scott Nonnenberg
parent
de88a867a2
commit
016a0caf17
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user