From 016a0caf17ede978b461ea81b7ccd18a612046bf Mon Sep 17 00:00:00 2001 From: Tim Ruffing Date: Tue, 7 Jan 2020 01:54:58 +0100 Subject: [PATCH] Improve query performance using explicit INDEXED BY (#3550) --- app/sql.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/sql.js b/app/sql.js index 87b208f74..a437e853a 100644 --- a/app/sql.js +++ b/app/sql.js @@ -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