Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5530

ianhaycox on "Left join slows down mysql query"

$
0
0

Rather than the inner SELECT why not,

LEFT JOIN
    $wpdb->postmeta stock
ON
    $wpdb->posts.ID = stock.post_id AND
    stock.meta_key = 'product_stock'

Ian


Viewing all articles
Browse latest Browse all 5530

Trending Articles