MySQL Forums
Forum List  »  PHP

Re: Time-out problem
Posted by: Lucas Sartori
Date: April 30, 2014 11:47AM

If I try to execute this query:
select fk_id_ad_format from spd_unit join spd_ad on fk_id_ad = id_ad where fk_id_campaign in (1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1146, 1147, 1148, 1149, 1150, 1151, 1152, 1153, 1154, 1155, 1156, 1157, 1158, 1159, 1160, 1161, 1162, 1163, 1164, 1165, 1166, 1167) and spd_unit.duration_time > 0 group by fk_id_ad_format

This take more than 1,3 minutes to execute

+----+-------------+----------+-------+---------------------------------------+-------------------------------+---------+-----------------------------------------+-------+-----------------------------------------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+----------+-------+---------------------------------------+-------------------------------+---------+-----------------------------------------+-------+-----------------------------------------------------------+
| 1 | SIMPLE | spd_ad | range | PRIMARY,t_campanha_t_grupo_anuncio_fk | t_campanha_t_grupo_anuncio_fk | 4 | NULL | 30 | Using where; Using index; Using temporary; Using filesort |
| 1 | SIMPLE | spd_unit | ref | t_anuncio_t_pecas_fk,fk_id_ad_format | t_anuncio_t_pecas_fk | 4 | prod_liquidashop_front_end.spd_ad.id_ad | 88934 | Using where |
+----+-------------+----------+-------+---------------------------------------+-------------------------------+---------+-----------------------------------------+-------+-----------------------------------------------------------+

Options: ReplyQuote


Subject
Written By
Posted
April 23, 2014 08:04AM
April 23, 2014 09:57AM
April 23, 2014 10:27AM
April 25, 2014 02:26PM
April 28, 2014 11:49AM
April 30, 2014 11:15AM
April 30, 2014 11:32AM
Re: Time-out problem
April 30, 2014 11:47AM
May 01, 2014 08:00AM
April 30, 2014 01:12PM
May 02, 2014 10:40AM
June 06, 2014 05:13AM
June 06, 2014 09:15AM


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.