MySQL Forums
Forum List  »  MyISAM

Re: Performance problem migrating from NDB to MyISAM
Posted by: Rick James
Date: January 27, 2015 10:59PM

Write it this way
select  u.id, u.user_login, u.user_email
    from  wp_users u
    JOIN  wp_wpsc_purchase_logs pl ON u.id = pl.user_id
    where  pl.date > '2014-11-30'
      and  pl.processed=3 ;
and have a compound index in pl:
INDEX(processed, date)

I assume u has
PRIMARY KEY(id)

Please provide SHOW CREATE TABLE whenever asking performance questions.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Performance problem migrating from NDB to MyISAM
1659
January 27, 2015 10:59PM


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.