From 2192b1f450e6002894a23b4ff94eadb6060b022b Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 5 Sep 2008 15:43:26 +0000 Subject: [PATCH] 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: http://svn.automattic.com/wordpress/trunk@8813 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index b9ad8bc68..46c31c84b 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -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" ); } /**