MySQL Forums
Forum List  »  Performance

Re: Slow query in mysql 5.7.20
Posted by: Peter Brawley
Date: December 17, 2017 01:36PM

sdp_drs looks like the bottleneck: 2 million rows to read; counting an unindexed, nullable column; rows indexed and filtered on a column with a likely cardinality of 2. Is performance a lot better without the isduplicated=1 condition?

Despite the cardinality problem you might tempt the engine to use one of these these sdp_drp indexes ...

(accounteventid,isduplicated,adjustmentamount)

(isduplicated,adjustmentamount)

Options: ReplyQuote


Subject
Views
Written By
Posted
966
December 17, 2017 07:42AM
477
December 17, 2017 09:51AM
584
December 17, 2017 11:55AM
Re: Slow query in mysql 5.7.20
504
December 17, 2017 01:36PM
488
December 18, 2017 12:33AM
480
December 18, 2017 10:09AM
531
December 17, 2017 11:02AM
779
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.