Slow query in mysql 5.7.20
Hi All,
The below query take 58 second and that long time for such data. i created indexes but still no enhancement on data fetching time.
are there any suggestions?
explain SELECT count(adjustmentamount) totalRefill , DATE(airtimestamp) FROM air_drs a ,sdp_drs b
where b.ISDUPLICATED='1' and VOUCHERBASEDR='0' and REFILLPROFILEID='7'
and UPPER (a.extdata1) IN ('ADD', 'D_ADD') and upper(a.AIRRECORDTYPE)='REFILL'
and a.accounteventid = b.accounteventid group by DATE(airtimestamp)
1 SIMPLE b ref accounteventid,isduplicated isduplicated 5 const 2162416 100.00 Using where; Using temporary; Using filesort
1 SIMPLE a eq_ref PRIMARY,accounteventid_UNIQUE,accounteventid,airtimestamp,voucherbasedr PRIMARY 302 jndr_sch.b.accounteventid 1 5.00 Using where
Thanks.
Subject
Views
Written By
Posted
Slow query in mysql 5.7.20
1090
December 17, 2017 07:42AM
552
December 17, 2017 09:51AM
647
December 17, 2017 11:55AM
580
December 17, 2017 01:36PM
553
December 18, 2017 12:33AM
544
December 18, 2017 10:09AM
587
December 17, 2017 11:02AM
873
December 18, 2017 01:54AM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
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.