MySQL Forums
Forum List  »  Performance

Re: query hangs after migration from mysql 5.5 to mysql 5.6
Posted by: walter verdelocco
Date: December 22, 2015 01:57AM

I'm sorry you're right,
the explain with the origina query i have the same explain
(that i had on mysql 5.5 ) anf the execution time i 58 milli secs

select
`LTV_AGGREGATE`.`provider` as `LTV_AGGREGATE_provider`,
`LTV_AGGREGATE`.`DATA_INIZIO` as `LTV_AGGREGATE_DATA_INIZIO`,
`GES_L_PRODOTTO`.`prodotto_liv_2` as `GES_L_PRODOTTO_prodotto_liv_2`,
`GES_L_PRODOTTO`.`prodotto_liv_1` as `GES_L_PRODOTTO_prodotto_liv_1`
from `LTV_AGGREGATE` STRAIGHT_JOIN `GES_L_PRODOTTO`
ON `LTV_AGGREGATE`.`product_id` = `GES_L_PRODOTTO`.`id_prodotto`
where
(`LTV_AGGREGATE`.`DATA_INIZIO` >= '2015-12-09' and
`LTV_AGGREGATE`.`DATA_INIZIO` <= '2015-12-16')
and (((`LTV_AGGREGATE`.`product_id`
not in ('EI_ADIG_ENI1W', 'EI_CALP_ENI1W', 'EI_CENT_ENI1W', 'EI_CSAL_ENI1W', 'EI_ESP_ENI1W', 'EI_GMAN_ENI1W', 'EI_GMON_ENI1W',
'EI_GREG_ENI1W', 'EI_MPAD_ENI1W', 'EI_NFER_ENI1W', 'EI_NSAR_ENI1W', 'EI_NVEN_ENI1W', 'EI_PIC_ENI1W', 'EI_PPAV_ENI1W',
'EI_REP_ENI1W', 'EI_SCAN_ENI1W', 'EI_TIRR_ENI1W', 'EI_TREN_ENI1W', 'EI_TTRE_ENI1W'))
))
and `GES_L_PRODOTTO`.`prodotto_liv_2` in ('BUNDLE', 'ESPRESSO', 'LIMES WEB', 'MANCANTE', 'REPUBBLICA+', 'REPUBBLICAMOBILE')
order by `LTV_AGGREGATE_DATA_INIZIO`
limit 200;

1 SIMPLE LTV_AGGREGATE range product_id,DATA_INIZIO DATA_INIZIO 4 NULL 6290132 Using index condition; Using where
1 SIMPLE GES_L_PRODOTTO ref id_prodotto id_prodotto 53 db_jdatamart.LTV_AGGREGATE.product_id 1 Using where


regards
walter

Options: ReplyQuote




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.