Permalink
Browse files

Lose USE INDEX on comment_date_gmt. It didn't help performance very m…

…uch and some people are missing the comment_date_gmt index. see #7664 for 2.6

git-svn-id: http://svn.automattic.com/wordpress/branches/2.6@8814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent d57a1e3 commit c11dc44c1437d8d7feb13969e05d3da001a4621c ryan committed Sep 5, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-admin/includes/template.php
@@ -715,7 +715,7 @@ function _wp_get_comment_list( $status = '', $s = false, $start, $num ) {
$approved
ORDER BY comment_date_gmt DESC LIMIT $start, $num");
} else {
- $comments = $wpdb->get_results( "SELECT SQL_CALC_FOUND_ROWS * FROM $wpdb->comments USE INDEX (comment_date_gmt) WHERE $approved ORDER BY comment_date_gmt DESC LIMIT $start, $num" );
+ $comments = $wpdb->get_results( "SELECT SQL_CALC_FOUND_ROWS * FROM $wpdb->comments WHERE $approved ORDER BY comment_date_gmt DESC LIMIT $start, $num" );
}
update_comment_cache($comments);

0 comments on commit c11dc44

Please sign in to comment.