GET https://crm.motoer.synology.me/schedule/panel

Query Metrics

19 Database Queries
4 Different statements
7.80 ms Query time
0 Invalid entities

Queries

Group similar statements

# Time Info
1 0.42 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.department AS department_3, t0.enabled AS enabled_4, t0.schedule_panel AS schedule_panel_5, t0.color AS color_6 FROM crm_departments t0 WHERE t0.schedule_panel = ?
Parameters:
[
  "1"
]
2 0.68 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_schedule_history c0_ LEFT JOIN crm_users c1_ ON c0_.user_id = c1_.id WHERE c1_.department_id = ? AND c0_.type = 1 AND c0_.session = 1 AND c0_.status IN (?, ?) AND c0_.date > ? AND c0_.date < ? ORDER BY c0_.id DESC
Parameters:
[
  2
  1
  2
  "2025-12-14 00:00:00"
  "2025-12-14 23:59:59"
]
3 0.57 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_schedule_history c0_ LEFT JOIN crm_users c1_ ON c0_.user_id = c1_.id WHERE c1_.department_id = ? AND c0_.type = 1 AND c0_.session = 1 AND c0_.status IN (?) AND c0_.date > ? AND c0_.date < ? ORDER BY c0_.id DESC
Parameters:
[
  2
  3
  "2025-12-14 00:00:00"
  "2025-12-14 23:59:59"
]
4 0.50 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_users c0_ LEFT JOIN crm_departments c1_ ON c0_.department_id = c1_.id WHERE c1_.id = ? AND c0_.enabled = 1 AND c0_.id <> 67
Parameters:
[
  2
]
5 0.42 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_schedule_history c0_ LEFT JOIN crm_users c1_ ON c0_.user_id = c1_.id WHERE c1_.department_id = ? AND c0_.type = 1 AND c0_.session = 1 AND c0_.status IN (?, ?) AND c0_.date > ? AND c0_.date < ? ORDER BY c0_.id DESC
Parameters:
[
  3
  1
  2
  "2025-12-14 00:00:00"
  "2025-12-14 23:59:59"
]
6 0.38 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_schedule_history c0_ LEFT JOIN crm_users c1_ ON c0_.user_id = c1_.id WHERE c1_.department_id = ? AND c0_.type = 1 AND c0_.session = 1 AND c0_.status IN (?) AND c0_.date > ? AND c0_.date < ? ORDER BY c0_.id DESC
Parameters:
[
  3
  3
  "2025-12-14 00:00:00"
  "2025-12-14 23:59:59"
]
7 0.42 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_users c0_ LEFT JOIN crm_departments c1_ ON c0_.department_id = c1_.id WHERE c1_.id = ? AND c0_.enabled = 1 AND c0_.id <> 67
Parameters:
[
  3
]
8 0.38 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_schedule_history c0_ LEFT JOIN crm_users c1_ ON c0_.user_id = c1_.id WHERE c1_.department_id = ? AND c0_.type = 1 AND c0_.session = 1 AND c0_.status IN (?, ?) AND c0_.date > ? AND c0_.date < ? ORDER BY c0_.id DESC
Parameters:
[
  6
  1
  2
  "2025-12-14 00:00:00"
  "2025-12-14 23:59:59"
]
9 0.41 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_schedule_history c0_ LEFT JOIN crm_users c1_ ON c0_.user_id = c1_.id WHERE c1_.department_id = ? AND c0_.type = 1 AND c0_.session = 1 AND c0_.status IN (?) AND c0_.date > ? AND c0_.date < ? ORDER BY c0_.id DESC
Parameters:
[
  6
  3
  "2025-12-14 00:00:00"
  "2025-12-14 23:59:59"
]
10 0.32 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_users c0_ LEFT JOIN crm_departments c1_ ON c0_.department_id = c1_.id WHERE c1_.id = ? AND c0_.enabled = 1 AND c0_.id <> 67
Parameters:
[
  6
]
11 0.39 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_schedule_history c0_ LEFT JOIN crm_users c1_ ON c0_.user_id = c1_.id WHERE c1_.department_id = ? AND c0_.type = 1 AND c0_.session = 1 AND c0_.status IN (?, ?) AND c0_.date > ? AND c0_.date < ? ORDER BY c0_.id DESC
Parameters:
[
  7
  1
  2
  "2025-12-14 00:00:00"
  "2025-12-14 23:59:59"
]
12 0.39 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_schedule_history c0_ LEFT JOIN crm_users c1_ ON c0_.user_id = c1_.id WHERE c1_.department_id = ? AND c0_.type = 1 AND c0_.session = 1 AND c0_.status IN (?) AND c0_.date > ? AND c0_.date < ? ORDER BY c0_.id DESC
Parameters:
[
  7
  3
  "2025-12-14 00:00:00"
  "2025-12-14 23:59:59"
]
13 0.40 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_users c0_ LEFT JOIN crm_departments c1_ ON c0_.department_id = c1_.id WHERE c1_.id = ? AND c0_.enabled = 1 AND c0_.id <> 67
Parameters:
[
  7
]
14 0.38 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_schedule_history c0_ LEFT JOIN crm_users c1_ ON c0_.user_id = c1_.id WHERE c1_.department_id = ? AND c0_.type = 1 AND c0_.session = 1 AND c0_.status IN (?, ?) AND c0_.date > ? AND c0_.date < ? ORDER BY c0_.id DESC
Parameters:
[
  8
  1
  2
  "2025-12-14 00:00:00"
  "2025-12-14 23:59:59"
]
15 0.38 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_schedule_history c0_ LEFT JOIN crm_users c1_ ON c0_.user_id = c1_.id WHERE c1_.department_id = ? AND c0_.type = 1 AND c0_.session = 1 AND c0_.status IN (?) AND c0_.date > ? AND c0_.date < ? ORDER BY c0_.id DESC
Parameters:
[
  8
  3
  "2025-12-14 00:00:00"
  "2025-12-14 23:59:59"
]
16 0.33 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_users c0_ LEFT JOIN crm_departments c1_ ON c0_.department_id = c1_.id WHERE c1_.id = ? AND c0_.enabled = 1 AND c0_.id <> 67
Parameters:
[
  8
]
17 0.36 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_schedule_history c0_ LEFT JOIN crm_users c1_ ON c0_.user_id = c1_.id WHERE c1_.department_id = ? AND c0_.type = 1 AND c0_.session = 1 AND c0_.status IN (?, ?) AND c0_.date > ? AND c0_.date < ? ORDER BY c0_.id DESC
Parameters:
[
  9
  1
  2
  "2025-12-14 00:00:00"
  "2025-12-14 23:59:59"
]
18 0.35 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_schedule_history c0_ LEFT JOIN crm_users c1_ ON c0_.user_id = c1_.id WHERE c1_.department_id = ? AND c0_.type = 1 AND c0_.session = 1 AND c0_.status IN (?) AND c0_.date > ? AND c0_.date < ? ORDER BY c0_.id DESC
Parameters:
[
  9
  3
  "2025-12-14 00:00:00"
  "2025-12-14 23:59:59"
]
19 0.34 ms
SELECT count(c0_.id) AS sclr_0 FROM crm_users c0_ LEFT JOIN crm_departments c1_ ON c0_.department_id = c1_.id WHERE c1_.id = ? AND c0_.enabled = 1 AND c0_.id <> 67
Parameters:
[
  9
]

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.

Entities Mapping

Class Mapping errors
App\Entity\CrmDepartments No errors.
App\Entity\CrmScheduleHistory No errors.
App\Entity\CrmUsers No errors.