Make WordPress Core


Ignore:
Timestamp:
02/05/2008 06:04:17 PM (17 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/schema.php

    r6705 r6729  
    5353  PRIMARY KEY  (comment_ID),
    5454  KEY comment_approved (comment_approved),
    55   KEY comment_post_ID (comment_post_ID)
     55  KEY comment_post_ID (comment_post_ID),
     56  KEY comment_approved_date (comment_approved,comment_date)
    5657) $charset_collate;
    5758CREATE TABLE $wpdb->links (
Note: See TracChangeset for help on using the changeset viewer.