? 336483-add-comment-count-index-d6.patch ? 336483-add-comment-count-index-rev2-d6.patch ? 582534-freetagging-fullwidth-comma-D6.patch ? node_load_caching_flag-D6.patch Index: modules/comment/comment.install =================================================================== RCS file: /cvs/drupal/drupal/modules/comment/comment.install,v retrieving revision 1.19.2.1 diff -u -p -r1.19.2.1 comment.install --- modules/comment/comment.install 6 Jan 2009 15:46:36 -0000 1.19.2.1 +++ modules/comment/comment.install 2 Dec 2009 15:01:10 -0000 @@ -67,6 +67,25 @@ function comment_update_6003() { return $ret; } +/** + * @defgroup updates-6.x-extra Extra system updates for 6.x + * @{ + */ + +/** + * Add index to to node_comment_statistics on comment_count + */ +function comment_update_6004() { + $ret = array(); + db_add_index($ret, 'node_comment_statistics', 'comment_count', array('comment_count')); + return $ret; +} + +/** + * @} End of "defgroup updates-6.x-extra" + * The next series of updates should start at 7000. + */ + /** * Implementation of hook_schema(). @@ -210,7 +229,8 @@ function comment_schema() { ), 'primary key' => array('nid'), 'indexes' => array( - 'node_comment_timestamp' => array('last_comment_timestamp') + 'node_comment_timestamp' => array('last_comment_timestamp'), + 'comment_count' => array('comment_count'), ), );