mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Add key on comment_approved,comment_date to speed up last comment modified queries. fixes #5773
git-svn-id: https://develop.svn.wordpress.org/trunk@6729 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user