Total Queries: 13
Total Time: 0.13391351699829
Array
(
[0] => Array
(
[query] => select * from setting where property = 'datetime_timezone'
[start] => 1770985122.8569
[end] => 1770985122.8588
[time] => 0.0019559860229492
)
[1] => Array
(
[query] => select player.*,player_to_team.team_id,player_to_team.number,player_to_team.start,player_to_team.end from player
left join player_to_team on (player.player_id = player_to_team.player_id) where deleted = '0' AND player.player_id = '417' ORDER BY lastname,firstname ASC
[start] => 1770985122.8606
[end] => 1770985122.8627
[time] => 0.0021359920501709
)
[2] => Array
(
[query] => select team.*,team_to_club.club_id,team_to_club.start,team_to_club.end from team
left join team_to_club on (team.team_id = team_to_club.team_id) where deleted = '0' AND (start = 0 OR start <= 1770985122 OR start >= 1770985122) AND (end >= 1770985122 OR end = 0) AND (start < 1770985122) ORDER BY name ASC
[start] => 1770985122.8631
[end] => 1770985122.8649
[time] => 0.00187087059021
)
[3] => Array
(
[query] => select * from player_to_team WHERE player_id = '417'
[start] => 1770985122.8651
[end] => 1770985122.8662
[time] => 0.0010790824890137
)
[4] => Array
(
[query] => select * from matches where (home_team_id = '42' OR visitor_team_id = '42') AND date >= '1677324548' AND date <= '1736935586' ORDER BY
case when description in('', '') then 'ZZZZZZZZZZZZZZZZZZZZZZZZZZZ' else description end,
round_id+0,
date+0,
match_id
ASC LIMIT 0,1
[start] => 1770985122.8664
[end] => 1770985122.8721
[time] => 0.0057439804077148
)
[5] => Array
(
[query] => select * from match_time where match_id in (3357) order by id ASC
[start] => 1770985122.8722
[end] => 1770985122.8761
[time] => 0.0039689540863037
)
[6] => Array
(
[query] => SELECT * FROM match_data where match_id IN (3357)
[start] => 1770985122.8762
[end] => 1770985122.8885
[time] => 0.012303829193115
)
[7] => Array
(
[query] => SELECT player_id, COUNT(player_id) as attendance FROM match_roster LEFT JOIN matches ON (match_roster.match_id = matches.match_id) where player_id = '417' AND match_roster.match_id NOT IN (select match_id from matches where championship_id IN (select championship_id from championship where show_player_ranking = '0')) GROUP BY player_id
[start] => 1770985122.8891
[end] => 1770985122.895
[time] => 0.0058858394622803
)
[8] => Array
(
[query] => SELECT player_id,
SUM(
CASE
WHEN point != 'A' THEN point
END
) as total,
SUM(
CASE
WHEN point = 'A' THEN 1
WHEN point != 'A' THEN 0
END
) as autohit,
SUM(
CASE
WHEN point = '3' THEN 1
WHEN point != '3' THEN 0
END
) as defense,
SUM(
CASE
WHEN point = '2' THEN 1
WHEN point != '2' THEN 0
END
) as attack,
SUM(
CASE
WHEN point = 'P' THEN 1
WHEN point != 'P' THEN 0
END
) as admonitions,
SUM(
CASE
WHEN point = 'E' THEN 1
WHEN point != 'E' THEN 0
END
) as expulsions
FROM point
LEFT JOIN matches ON (point.match_id = matches.match_id) where player_id = '417' AND point.match_id NOT IN (select match_id from matches where championship_id IN (select championship_id from championship where show_player_ranking = '0')) GROUP BY point.player_id
[start] => 1770985122.895
[end] => 1770985122.9346
[time] => 0.039604902267456
)
[9] => Array
(
[query] => SELECT player_id, COUNT(player_id) as attendance, CASE
WHEN from_unixtime(matches.date, "%Y-%m-%d %H:%i") <= CONCAT(from_unixtime(matches.date, "%Y"), "-08-31" , '23:59:59') THEN CONCAT(from_unixtime(matches.date, "%Y")-1, '-', from_unixtime(matches.date, "%Y"))
ELSE CONCAT(from_unixtime(matches.date, "%Y"), '-', from_unixtime(matches.date, "%Y")+1)
END as period FROM match_roster LEFT JOIN matches ON (match_roster.match_id = matches.match_id) where player_id = '417' AND team_id = '42' AND match_roster.match_id NOT IN (select match_id from matches where championship_id IN (select championship_id from championship where show_player_ranking = '0')) GROUP BY player_id, period
[start] => 1770985122.9348
[end] => 1770985122.9417
[time] => 0.0069570541381836
)
[10] => Array
(
[query] => SELECT player_id, CASE
WHEN from_unixtime(matches.date, "%Y-%m-%d %H:%i") <= CONCAT(from_unixtime(matches.date, "%Y"), "-08-31" , '23:59:59') THEN CONCAT(from_unixtime(matches.date, "%Y")-1, '-', from_unixtime(matches.date, "%Y"))
ELSE CONCAT(from_unixtime(matches.date, "%Y"), '-', from_unixtime(matches.date, "%Y")+1)
END as period,
SUM(
CASE
WHEN point != 'A' THEN point
END
) as total,
SUM(
CASE
WHEN point = 'A' THEN 1
WHEN point != 'A' THEN 0
END
) as autohit,
SUM(
CASE
WHEN point = '3' THEN 1
WHEN point != '3' THEN 0
END
) as defense,
SUM(
CASE
WHEN point = '2' THEN 1
WHEN point != '2' THEN 0
END
) as attack,
SUM(
CASE
WHEN point = 'P' THEN 1
WHEN point != 'P' THEN 0
END
) as admonitions,
SUM(
CASE
WHEN point = 'E' THEN 1
WHEN point != 'E' THEN 0
END
) as expulsions
FROM point
LEFT JOIN matches ON (point.match_id = matches.match_id) where player_id = '417' AND point.match_id NOT IN (select match_id from matches where championship_id IN (select championship_id from championship where show_player_ranking = '0')) AND team_id = '42' GROUP BY point.player_id, period ORDER BY period ASC;
[start] => 1770985122.9418
[end] => 1770985122.9933
[time] => 0.05157208442688
)
[11] => Array
(
[query] => select * from championship ORDER BY YEAR(FROM_UNIXTIME(date)) DESC, name ASC
[start] => 1770985122.9952
[end] => 1770985122.9957
[time] => 0.0004730224609375
)
[12] => Array
(
[query] => select * from match_group where deleted = '0' ORDER BY from_unixtime(date, '%Y') DESC,name,match_group_id ASC
[start] => 1770985122.9966
[end] => 1770985122.997
[time] => 0.00036191940307617
)
)