Index: openacs-4/packages/forums/forums.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/forums.info,v diff -u -N -r1.56.2.11 -r1.56.2.12 --- openacs-4/packages/forums/forums.info 26 Sep 2020 12:10:23 -0000 1.56.2.11 +++ openacs-4/packages/forums/forums.info 6 Oct 2020 08:23:19 -0000 1.56.2.12 @@ -9,7 +9,7 @@ f t - + OpenACS Online discussion forums. 2017-08-06 @@ -19,7 +19,7 @@ 2 #forums.Forums# - + Index: openacs-4/packages/forums/sql/postgresql/forums-reading-info-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/sql/postgresql/forums-reading-info-create.sql,v diff -u -N -r1.6.2.1 -r1.6.2.2 --- openacs-4/packages/forums/sql/postgresql/forums-reading-info-create.sql 6 Oct 2020 08:20:33 -0000 1.6.2.1 +++ openacs-4/packages/forums/sql/postgresql/forums-reading-info-create.sql 6 Oct 2020 08:23:19 -0000 1.6.2.2 @@ -24,6 +24,7 @@ create index forums_reading_info_user_index on forums_reading_info (user_id); create index forums_reading_info_forum_message_index on forums_reading_info (root_message_id); create index forums_reading_info_forum_forum_index on forums_reading_info (forum_id); +create index forums_reading_info_user_id_root_message_id_idx on forums_reading_info(user_id,root_message_id); create or replace view forums_reading_info_user as select forum_id, Index: openacs-4/packages/forums/sql/postgresql/upgrade/upgrade-1.4d2-1.4d3.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/sql/postgresql/upgrade/Attic/upgrade-1.4d2-1.4d3.sql,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/forums/sql/postgresql/upgrade/upgrade-1.4d2-1.4d3.sql 6 Oct 2020 08:23:19 -0000 1.1.2.1 @@ -0,0 +1,3 @@ + +-- New index on the forums_reading_info table +create index if not exists forums_reading_info_user_id_root_message_id_idx on forums_reading_info(user_id,root_message_id);