Add key on comment_approved,comment_date to speed up last comment modified queries. fixes #5773

git-svn-id: http://svn.automattic.com/wordpress/trunk@6729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-02-05 18:04:17 +00:00
parent 95781cf290
commit b67bbb9e4e
3 changed files with 5 additions and 4 deletions

View File

@@ -52,7 +52,8 @@ CREATE TABLE $wpdb->comments (
user_id bigint(20) NOT NULL default '0',
PRIMARY KEY (comment_ID),
KEY comment_approved (comment_approved),
KEY comment_post_ID (comment_post_ID)
KEY comment_post_ID (comment_post_ID),
KEY comment_approved_date (comment_approved,comment_date)
) $charset_collate;
CREATE TABLE $wpdb->links (
link_id bigint(20) NOT NULL auto_increment,