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:
parent
7ccb9abd4b
commit
6d94c5cfcc
@ -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" );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user