Lose USE INDEX on comment_date_gmt. It didn't help performance very much and some people are missing the comment_date_gmt index. see #7664

git-svn-id: https://develop.svn.wordpress.org/trunk@8813 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-09-05 15:43:26 +00:00
parent 7ccb9abd4b
commit 6d94c5cfcc
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ function get_comments( $args = '' ) {
else
$post_where = '';
return $wpdb->get_results( "SELECT * FROM $wpdb->comments USE INDEX (comment_date_gmt) WHERE $post_where $approved ORDER BY $orderby $order $number" );
return $wpdb->get_results( "SELECT * FROM $wpdb->comments WHERE $post_where $approved ORDER BY $orderby $order $number" );
}
/**