? 199774-19.automatic_update_emails.patch ? 199774-automatic_update_emails-rev5.patch ? 312393-node-update-index-slow.patch ? 336483-add-index-for-comment-count-rev2.patch ? 336483-add-index-for-comment-count.patch ? 534092-cache-returns-expired-objects-rev2.patch ? modules/search/search.module-test Index: modules/comment/comment.install =================================================================== RCS file: /cvs/drupal/drupal/modules/comment/comment.install,v retrieving revision 1.41 diff -u -p -r1.41 comment.install --- modules/comment/comment.install 28 Jul 2009 19:18:05 -0000 1.41 +++ modules/comment/comment.install 30 Jul 2009 13:42:06 -0000 @@ -287,6 +287,7 @@ function comment_schema() { 'primary key' => array('nid'), 'indexes' => array( 'node_comment_timestamp' => array('last_comment_timestamp'), + 'comment_count' => array('comment_count'), ), 'foreign keys' => array( 'nid' => array('node' => 'nid'), Index: modules/system/system.install =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.install,v retrieving revision 1.359 diff -u -p -r1.359 system.install --- modules/system/system.install 28 Jul 2009 19:18:08 -0000 1.359 +++ modules/system/system.install 30 Jul 2009 13:42:16 -0000 @@ -2257,6 +2257,15 @@ function system_update_7029() { } /** + * Add an index to node_comment_statistics on comment_count. + */ +function system_update_7030() { + $ret = array(); + db_add_index(&$ret, 'node_comment_statistics', 'comment_count', array('comment_count')); + return $ret; +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */