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;