From a43fdc90093b6fd92356c59e240dae686178e1eb Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 25 Nov 2024 15:52:36 -0500 Subject: [PATCH] Add index for message IDs by newsgroup --- db/newsgroup.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/newsgroup.sql b/db/newsgroup.sql index fc86142..09f64c1 100644 --- a/db/newsgroup.sql +++ b/db/newsgroup.sql @@ -20,4 +20,8 @@ create table newsgroup_message ( FOREIGN KEY(newsgroup_id) REFERENCES newsgroup(id) ); +create index newsgroup_message_newsgroup_id_idx on newsgroup_message ( + newsgroup_id, id +); + commit;