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
1022
December 17, 2017 07:42AM
514
December 17, 2017 09:51AM
612
December 17, 2017 11:55AM
548
December 17, 2017 01:36PM
523
December 18, 2017 12:33AM
511
December 18, 2017 10:09AM
560
December 17, 2017 11:02AM
831
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.