MySQL Forums
Forum List  »  Performance

Re: Slow query in mysql 5.7.20
Posted by: Benoit St-Jean
Date: December 17, 2017 11:02AM

Beides providing the SHOW CREATE TABLE for both tables, what is the selectivity of ISDUPLICATED, VOUCHERBASEDR and REFILLPROFILEID?

Assuming REFILLPROFILEID is selective enough, my guess is that an index on (accounteventid, REFILLPROFILEID) would probably help.

Options: ReplyQuote


Subject
Views
Written By
Posted
1016
December 17, 2017 07:42AM
511
December 17, 2017 09:51AM
610
December 17, 2017 11:55AM
546
December 17, 2017 01:36PM
520
December 18, 2017 12:33AM
510
December 18, 2017 10:09AM
Re: Slow query in mysql 5.7.20
558
December 17, 2017 11:02AM
828
December 18, 2017 01:54AM


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.