MySQL Forums
Forum List  »  Performance

Re: query hangs after migration from mysql 5.5 to mysql 5.6
Posted by: walter verdelocco
Date: December 21, 2015 06:40AM

Hi

thanks for workaround
changing query on my test environment::

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`, `GES_L_PRODOTTO_prodotto_liv_2`, `GES_L_PRODOTTO_prodotto_liv_1`, `LTV_AGGREGATE_provider`
limit 200;

i have this explain ,
and running the query i see results after 67.3 secs


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


In my production environment , i have done rollback
(so now i'm newly on mysql 5.5)
because it's impossible for my changing all queries
on my application ...



regards
W

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.