https://app-beta.sigmatex.ma/employee_log_hour/log

Query Metrics

395 Database Queries
8 Different statements
1769.84 ms Query time
0 Invalid entities

Grouped Statements

Show all queries

Time Count Info
1169.41 ms
(66.07%)
176
SELECT t0.id AS id_1, t0.date AS date_2, t0.comment AS comment_3, t0.in_out AS in_out_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.employee_id AS employee_id_7 FROM employee_hour_log t0 WHERE t0.employee_id = ? ORDER BY t0.date ASC
Parameters:
[
  683
]
432.05 ms
(24.41%)
1
SELECT e0_.id AS id_0, e0_.first_name AS first_name_1, e0_.last_name AS last_name_2, e0_.date_of_birth AS date_of_birth_3, e0_.city_of_birth AS city_of_birth_4, e0_.gender AS gender_5, e0_.number_of_childrens AS number_of_childrens_6, e0_.phone_number AS phone_number_7, e0_.cin AS cin_8, e0_.cnss AS cnss_9, e0_.relation_ship_status AS relation_ship_status_10, e0_.picture AS picture_11, e0_.date_old AS date_old_12, e0_.date_cnss AS date_cnss_13, e0_.registration_number AS registration_number_14, e0_.created_at AS created_at_15, e0_.updated_at AS updated_at_16, e0_.user_id AS user_id_17, e0_.last_history_id AS last_history_id_18 FROM employee e0_ INNER JOIN employee_history e1_ ON e0_.last_history_id = e1_.id INNER JOIN employee_department e2_ ON e1_.department_id = e2_.id INNER JOIN employee_position e3_ ON e1_.position_id = e3_.id LEFT JOIN employee_hour_log e4_ ON e0_.id = e4_.employee_id AND (e4_.date LIKE ?) WHERE (e1_.salary_type = 2 AND e1_.end_date IS NULL) OR e1_.end_date <= 2024 - 12 - 25 ORDER BY e1_.department_id ASC, e3_.id ASC
Parameters:
[
  "2024-12-25%"
]
142.87 ms
(8.07%)
176
SELECT t0.id AS id_1, t0.start_date AS start_date_2, t0.end_date AS end_date_3, t0.reason AS reason_4, t0.salary_type AS salary_type_5, t0.price AS price_6, t0.department_id AS department_id_7, t0.position_id AS position_id_8, t0.employee_id AS employee_id_9 FROM employee_history t0 WHERE t0.id = ?
Parameters:
[
  1385
]
14.42 ms
(0.81%)
20
SELECT t0.id AS id_1, t0.name AS name_2 FROM employee_position t0 WHERE t0.id = ?
Parameters:
[
  9
]
6.72 ms
(0.38%)
11
SELECT t0.id AS id_1, t0.name AS name_2 FROM employee_department t0 WHERE t0.id = ?
Parameters:
[
  3
]
3.65 ms
(0.21%)
9
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.active AS active_5, t0.google_id AS google_id_6, t0.avatar_name AS avatar_name_7, t0.user_role_id AS user_role_id_8, t9.id AS id_10, t9.first_name AS first_name_11, t9.last_name AS last_name_12, t9.date_of_birth AS date_of_birth_13, t9.city_of_birth AS city_of_birth_14, t9.gender AS gender_15, t9.number_of_childrens AS number_of_childrens_16, t9.phone_number AS phone_number_17, t9.cin AS cin_18, t9.cnss AS cnss_19, t9.relation_ship_status AS relation_ship_status_20, t9.picture AS picture_21, t9.date_old AS date_old_22, t9.date_cnss AS date_cnss_23, t9.registration_number AS registration_number_24, t9.created_at AS created_at_25, t9.updated_at AS updated_at_26, t9.user_id AS user_id_27, t9.last_history_id AS last_history_id_28 FROM user t0 LEFT JOIN employee t9 ON t9.user_id = t0.id WHERE t0.email = ? LIMIT 1
Parameters:
[
  "n.bouaziz@sigmatex.ma"
]
0.42 ms
(0.02%)
1
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4, t0.active AS active_5, t0.google_id AS google_id_6, t0.avatar_name AS avatar_name_7, t0.user_role_id AS user_role_id_8, t9.id AS id_10, t9.first_name AS first_name_11, t9.last_name AS last_name_12, t9.date_of_birth AS date_of_birth_13, t9.city_of_birth AS city_of_birth_14, t9.gender AS gender_15, t9.number_of_childrens AS number_of_childrens_16, t9.phone_number AS phone_number_17, t9.cin AS cin_18, t9.cnss AS cnss_19, t9.relation_ship_status AS relation_ship_status_20, t9.picture AS picture_21, t9.date_old AS date_old_22, t9.date_cnss AS date_cnss_23, t9.registration_number AS registration_number_24, t9.created_at AS created_at_25, t9.updated_at AS updated_at_26, t9.user_id AS user_id_27, t9.last_history_id AS last_history_id_28 FROM user t0 LEFT JOIN employee t9 ON t9.user_id = t0.id WHERE t0.id = ?
Parameters:
[
  3
]
0.30 ms
(0.02%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.permissions AS permissions_3 FROM user_role t0 WHERE t0.id = ?
Parameters:
[
  3
]

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.