Query Metrics
17
Database Queries
11
Different statements
16.30 ms
Query time
0
Invalid entities
73
Managed entities
Grouped Statements
| Time▼ | Count | Info |
|---|---|---|
|
4.01 ms (24.59%) |
1 |
SELECT t.id AS team_id, l.slug_ligue AS ligue_slug, c.id AS club_id, c.name AS club_name, c.nick_name AS club_nickName, c.logo AS clubLogo, SUM(CASE WHEN gd.team_home_id = t.id THEN IFNULL(gd.pts_home, 0) ELSE 0 END) + SUM(CASE WHEN gd.team_out_id = t.id THEN IFNULL(gd.pts_out, 0) ELSE 0 END) AS total, COUNT(CASE WHEN (gd.team_home_id = t.id AND gd.pts_home = 2) OR (gd.team_out_id = t.id AND gd.pts_out = 2) THEN 1 ELSE NULL END) AS matchgagner, COUNT(CASE WHEN (gd.team_home_id = t.id AND gd.pts_home = 1) OR (gd.team_out_id = t.id AND gd.pts_out = 1) THEN 1 ELSE NULL END) AS matchperdu, COUNT(CASE WHEN (gd.team_home_id = t.id AND gd.pts_home IS NOT NULL) OR (gd.team_out_id = t.id AND gd.pts_out IS NOT NULL) THEN 1 ELSE NULL END) AS matchjouer, SUM(CASE WHEN gd.team_home_id = t.id THEN IFNULL(gd.result_home, 0) ELSE 0 END) + SUM(CASE WHEN gd.team_out_id = t.id THEN IFNULL(gd.result_out, 0) ELSE 0 END) AS ptsmarquer, SUM(CASE WHEN gd.team_home_id = t.id THEN IFNULL(gd.result_out, 0) ELSE 0 END) + SUM(CASE WHEN gd.team_out_id = t.id THEN IFNULL(gd.result_home, 0) ELSE 0 END) AS ptsencaisser, SUM(CASE WHEN gd.team_home_id = t.id THEN IFNULL(gd.result_home, 0) - IFNULL(gd.result_out, 0) ELSE IFNULL(gd.result_out, 0) - IFNULL(gd.result_home, 0) END) AS goalAverage FROM game gd LEFT JOIN team t ON t.id = gd.team_home_id OR t.id = gd.team_out_id LEFT JOIN club c ON c.id = t.club_id LEFT JOIN ligue l ON l.id = c.ligue_id LEFT JOIN day d ON d.id = gd.day_id WHERE d.championnat_id = :championnatId GROUP BY t.id ORDER BY total DESC, goalAverage DESC;
Parameters:
[ ":championnatId" => 73 ] |
|
3.14 ms (19.25%) |
1 |
SELECT t0.id AS id_1, t0.date AS date_2, t0.hours AS hours_3, t0.num_game AS num_game_4, t0.result_home AS result_home_5, t0.result_out AS result_out_6, t0.pts_home AS pts_home_7, t0.pts_out AS pts_out_8, t0.name_game AS name_game_9, t0.slug_game AS slug_game_10, t0.convocation AS convocation_11, t0.ticket AS ticket_12, t0.img AS img_13, t0.featured AS featured_14, t0.score_updated_at AS score_updated_at_15, t0.day_id AS day_id_16, t0.team_home_id AS team_home_id_17, t0.team_out_id AS team_out_id_18, t0.locate_id AS locate_id_19, t0.otm_chrono_id AS otm_chrono_id_20, t0.otm_marque_id AS otm_marque_id_21, t0.otm24s_id AS otm24s_id_22, t0.arbitre_id AS arbitre_id_23, t0.arbitre2_id AS arbitre2_id_24, t0.score_updated_by_id AS score_updated_by_id_25, t0.quarter_id AS quarter_id_26 FROM game t0 WHERE t0.slug_game = ? LIMIT 1
Parameters:
[
"usl-montjoly-vs-asc-tours-973-j18-87"
]
|
|
1.42 ms (8.73%) |
3 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.nick_name AS nick_name_3, t0.logo AS logo_4, t0.banner AS banner_5, t0.website AS website_6, t0.link_facebook AS link_facebook_7, t0.link_instagram AS link_instagram_8, t0.link_twitter AS link_twitter_9, t0.link_tiktok AS link_tiktok_10, t0.address AS address_11, t0.zip AS zip_12, t0.departement AS departement_13, t0.city AS city_14, t0.opt_partenaire AS opt_partenaire_15, t0.name_president AS name_president_16, t0.nick_name_president AS nick_name_president_17, t0.phone_president AS phone_president_18, t0.mail_president AS mail_president_19, t0.name_referent AS name_referent_20, t0.nick_name_referent AS nick_name_referent_21, t0.phone_referent AS phone_referent_22, t0.mail_referent AS mail_referent_23, t0.visibility AS visibility_24, t0.color_home AS color_home_25, t0.color_out AS color_out_26, t0.slug_club AS slug_club_27, t0.ligue_id AS ligue_id_28 FROM club t0 WHERE t0.ligue_id = ? AND t0.visibility = ? ORDER BY t0.nick_name ASC
Parameters:
[ 1 "1" ] |
|
1.29 ms (7.93%) |
1 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.archived AS archived_3 FROM saison t0 WHERE t0.archived = ? LIMIT 1
Parameters:
[
"0"
]
|
|
1.22 ms (7.47%) |
3 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.nick_name AS nick_name_3, t0.logo AS logo_4, t0.banner AS banner_5, t0.website AS website_6, t0.link_facebook AS link_facebook_7, t0.link_instagram AS link_instagram_8, t0.link_twitter AS link_twitter_9, t0.link_tiktok AS link_tiktok_10, t0.address AS address_11, t0.zip AS zip_12, t0.departement AS departement_13, t0.city AS city_14, t0.opt_partenaire AS opt_partenaire_15, t0.name_president AS name_president_16, t0.nick_name_president AS nick_name_president_17, t0.phone_president AS phone_president_18, t0.mail_president AS mail_president_19, t0.name_referent AS name_referent_20, t0.nick_name_referent AS nick_name_referent_21, t0.phone_referent AS phone_referent_22, t0.mail_referent AS mail_referent_23, t0.visibility AS visibility_24, t0.color_home AS color_home_25, t0.color_out AS color_out_26, t0.slug_club AS slug_club_27, t0.ligue_id AS ligue_id_28 FROM club t0 WHERE t0.ligue_id = ?
Parameters:
[
1
]
|
|
1.14 ms (6.98%) |
1 |
SELECT t0.id AS id_1, t0.phase AS phase_2, t0.number_day AS number_day_3, t0.statuts AS statuts_4, t0.name AS name_5, t0.slug_day AS slug_day_6, t0.championnat_id AS championnat_id_7 FROM day t0 WHERE t0.id = ?
Parameters:
[
837
]
|
|
1.08 ms (6.63%) |
2 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.nick_name AS nick_name_3, t0.logo AS logo_4, t0.banner AS banner_5, t0.website AS website_6, t0.link_facebook AS link_facebook_7, t0.link_instagram AS link_instagram_8, t0.link_twitter AS link_twitter_9, t0.link_tiktok AS link_tiktok_10, t0.address AS address_11, t0.zip AS zip_12, t0.departement AS departement_13, t0.city AS city_14, t0.opt_partenaire AS opt_partenaire_15, t0.name_president AS name_president_16, t0.nick_name_president AS nick_name_president_17, t0.phone_president AS phone_president_18, t0.mail_president AS mail_president_19, t0.name_referent AS name_referent_20, t0.nick_name_referent AS nick_name_referent_21, t0.phone_referent AS phone_referent_22, t0.mail_referent AS mail_referent_23, t0.visibility AS visibility_24, t0.color_home AS color_home_25, t0.color_out AS color_out_26, t0.slug_club AS slug_club_27, t0.ligue_id AS ligue_id_28 FROM club t0 WHERE t0.id = ?
Parameters:
[
25
]
|
|
1.00 ms (6.14%) |
1 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.types AS types_3, t0.format AS format_4, t0.wins_to_qualify AS wins_to_qualify_5, t0.wins_to_win AS wins_to_win_6, t0.prono_enabled AS prono_enabled_7, t0.img AS img_8, t0.ligue_id AS ligue_id_9, t0.saison_id AS saison_id_10, t0.category_id AS category_id_11, t0.championnat_source_id AS championnat_source_id_12, t0.champs_master_id AS champs_master_id_13 FROM championnat t0 WHERE t0.id = ?
Parameters:
[
73
]
|
|
0.92 ms (5.67%) |
2 |
SELECT t0.id AS id_1, t0.engaged AS engaged_2, t0.created_at AS created_at_3, t0.name AS name_4, t0.category_id AS category_id_5, t0.club_id AS club_id_6 FROM team t0 WHERE t0.id = ?
Parameters:
[
170
]
|
|
0.58 ms (3.53%) |
1 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug_cat AS slug_cat_3, t0.groupe_category AS groupe_category_4, t0.sex AS sex_5 FROM category t0 WHERE t0.id = ?
Parameters:
[
1
]
|
|
0.50 ms (3.07%) |
1 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.nick_name AS nick_name_3, t0.address AS address_4, t0.website AS website_5, t0.phone AS phone_6, t0.link_facebook AS link_facebook_7, t0.link_instagram AS link_instagram_8, t0.link_twitter AS link_twitter_9, t0.link_tiktok AS link_tiktok_10, t0.departement AS departement_11, t0.logo AS logo_12, t0.banner AS banner_13, t0.city AS city_14, t0.zip AS zip_15, t0.mail AS mail_16, t0.opt_partenaire AS opt_partenaire_17, t0.opt_otm AS opt_otm_18, t0.opt_slid AS opt_slid_19, t0.distributor AS distributor_20, t0.distributor_2 AS distributor_2_21, t0.slug_ligue AS slug_ligue_22, t0.slug_dept AS slug_dept_23, t0.opt_document AS opt_document_24 FROM ligue t0
Parameters:
[] |
Database Connections
| Name | Service |
|---|---|
| default | doctrine.dbal.default_connection |
Entity Managers
| Name | Service |
|---|---|
| default | doctrine.orm.default_entity_manager |
Second Level Cache
Second Level Cache is not enabled.
Managed Entities
default entity manager
| Class | Amount of managed objects |
|---|---|
| App\Entity\Club | 63 |
| App\Entity\Ligue | 3 |
| App\Entity\Team | 2 |
| App\Entity\Saison | 1 |
| App\Entity\Game | 1 |
| App\Entity\Day | 1 |
| App\Entity\Championnat | 1 |
| App\Entity\Category | 1 |
Entities Mapping
| Class | Mapping errors |
|---|---|
| App\Entity\Saison | No errors. |
| App\Entity\Championnat | No errors. |
| App\Entity\Stat | No errors. |
| App\Entity\PlayerTeam | No errors. |
| App\Entity\Game | No errors. |
| App\Entity\Day | No errors. |
| App\Entity\Team | No errors. |
| App\Entity\Terrain | No errors. |
| App\Entity\Officiel | No errors. |
| App\Entity\User | No errors. |
| App\Entity\Quarter | No errors. |
| App\Entity\Ligue | No errors. |
| App\Entity\Category | No errors. |
| App\Entity\Club | No errors. |
| App\Entity\Player | No errors. |
| App\Entity\Coach | No errors. |