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
This commit is contained in:
parent
65b152ff52
commit
2192b1f450
|
@ -217,7 +217,7 @@ function get_comments( $args = '' ) {
|
||||||
else
|
else
|
||||||
$post_where = '';
|
$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…
Reference in New Issue