Make WordPress Core


Ignore:
Timestamp:
10/15/2007 08:14:56 PM (17 years ago)
Author:
ryan
Message:

Use inner joins instead of left joins for taxonomy. Inner is faster. fixes #5179 for 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/wp-includes/bookmark.php

    r6026 r6253  
    114114    if (!empty($category_query)) {
    115115        $category_query .= ") AND taxonomy = 'link_category'";
    116         $join = " LEFT JOIN $wpdb->term_relationships AS tr ON ($wpdb->links.link_id = tr.object_id) LEFT JOIN $wpdb->term_taxonomy as tt ON tt.term_taxonomy_id = tr.term_taxonomy_id";
     116        $join = " INNER JOIN $wpdb->term_relationships AS tr ON ($wpdb->links.link_id = tr.object_id) INNER JOIN $wpdb->term_taxonomy as tt ON tt.term_taxonomy_id = tr.term_taxonomy_id";
    117117    }
    118118
Note: See TracChangeset for help on using the changeset viewer.