MySQL Forums
Forum List  »  Performance

Re: Help with explain query and code 1003
Posted by: Rick James
Date: May 29, 2009 10:57AM

1003 is simply the code EXPLAIN EXTENDED.

18000 rows takes time to scan through.

To assist in analyzing slow SELECTs, please provide
* SHOW CREATE TABLE tbl\G
* SHOW TABLE STATUS LIKE 'tbl'\G
* EXPLAIN SELECT ...\G
and surround them with [ code ] and [ / code ]
Maybe something can be improved.

SELECT  COUNT(*)
    FROM  wp_term_relationships, wp_posts
    WHERE  wp_posts.ID = wp_term_relationships.object_id
      AND  post_status = 'publish'
      AND  post_type = 'post'
      AND  term_taxonomy_id = 1

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Help with explain query and code 1003
21398
May 29, 2009 10:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.