Query Metrics

9 Database Queries
9 Different statements
1642.81 ms Query time
0 Invalid entities
107 Managed entities

Grouped Statements

Show all queries

Time Count Info
1133.64 ms
(69.01%)
1
SELECT count(DISTINCT p0_.id) AS sclr_0 FROM products p0_ INNER JOIN client c1_ ON p0_.client_id = c1_.id LEFT JOIN company c2_ ON p0_.company_id = c2_.id LEFT JOIN clothes_group c3_ ON p0_.clothes_group_id = c3_.id LEFT JOIN cassation_item c4_ ON p0_.id = c4_.product_id LEFT JOIN cassation c5_ ON c4_.cassation_id = c5_.id WHERE p0_.company_id = ? AND p0_.active = ?
Parameters:
[
  2
  1
]
492.79 ms
(30.00%)
1
SELECT p0_.id AS id_0, p0_.code AS code_1, p0_.barcode AS barcode_2, p0_.active AS active_3, p0_.cassation AS cassation_4, p0_.sequence AS sequence_5, p0_.entery_at AS entery_at_6, p0_.expiration_at AS expiration_at_7, p0_.owner AS owner_8, p0_.size AS size_9, p0_.material AS material_10, p0_.color AS color_11, p0_.note AS note_12, p0_.washes AS washes_13, p0_.weight AS weight_14, p0_.issued_at AS issued_at_15, p0_.returned_at AS returned_at_16, p0_.factory_no AS factory_no_17, p0_.code_no AS code_no_18, p0_.created_at AS created_at_19, p0_.updated_at AS updated_at_20, p0_.deactivate_date AS deactivate_date_21, p0_.clothes_group_id AS clothes_group_id_22, p0_.product_batch_id AS product_batch_id_23, p0_.company_id AS company_id_24, p0_.replacement_id AS replacement_id_25, p0_.client_id AS client_id_26, p0_.created_by AS created_by_27, p0_.updated_by AS updated_by_28 FROM products p0_ INNER JOIN client c1_ ON p0_.client_id = c1_.id LEFT JOIN company c2_ ON p0_.company_id = c2_.id LEFT JOIN clothes_group c3_ ON p0_.clothes_group_id = c3_.id LEFT JOIN cassation_item c4_ ON p0_.id = c4_.product_id LEFT JOIN cassation c5_ ON c4_.cassation_id = c5_.id WHERE p0_.company_id = ? AND p0_.active = ? ORDER BY p0_.entery_at DESC LIMIT 25
Parameters:
[
  2
  1
]
3.82 ms
(0.23%)
1
SELECT u0_.id AS id_0, u0_.login AS login_1, u0_.roles AS roles_2, u0_.password AS password_3, u0_.name AS name_4, u0_.lastname AS lastname_5, u0_.email AS email_6, u0_.active AS active_7, u0_.locale AS locale_8, u0_.created_at AS created_at_9, u0_.updated_at AS updated_at_10, u0_.deactivate_date AS deactivate_date_11, u1_.id AS id_12, u1_.ip_address AS ip_address_13, u2_.id AS id_14, u2_.notifications AS notifications_15, u0_.company_id AS company_id_16, u0_.client_id AS client_id_17, u0_.created_by AS created_by_18, u0_.updated_by AS updated_by_19, u1_.user_id AS user_id_20, u2_.user_id AS user_id_21 FROM user u0_ INNER JOIN user_role_user u4_ ON u0_.id = u4_.user_id INNER JOIN user_role u3_ ON u3_.id = u4_.user_role_id LEFT JOIN user_printer u1_ ON u0_.id = u1_.user_id LEFT JOIN user_notification u2_ ON u0_.id = u2_.user_id WHERE u3_.role IN (?) AND u0_.company_id = ? AND u0_.active = ? ORDER BY u0_.lastname ASC
Parameters:
[
  "ROLE_LAUNDRY_USER"
  2
  1
]
3.18 ms
(0.19%)
1
SELECT s0_.id AS id_0, s0_.status AS status_1, s0_.color AS color_2, s0_.active AS active_3, s0_.is_first AS is_first_4, s0_.is_last AS is_last_5, s0_.role AS role_6, s0_.priority AS priority_7, s0_.created_at AS created_at_8, s0_.updated_at AS updated_at_9, s0_.deactivate_date AS deactivate_date_10, s0_.company_id AS company_id_11, s0_.client_id AS client_id_12, s0_.created_by AS created_by_13, s0_.updated_by AS updated_by_14 FROM state_statuses s0_ WHERE s0_.company_id = ? AND s0_.active = 1 AND s0_.client_id IS NULL ORDER BY s0_.priority ASC
Parameters:
[
  2
]
3.00 ms
(0.18%)
1
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.type AS type_2, p0_.size AS size_3, p0_.content AS content_4, p0_.width AS width_5, p0_.height AS height_6, p0_.dpmm AS dpmm_7, p0_.state AS state_8, p0_.kind AS kind_9, p0_.created_at AS created_at_10, p0_.updated_at AS updated_at_11, p0_.active AS active_12, p0_.deactivate_date AS deactivate_date_13, p0_.created_by AS created_by_14, p0_.updated_by AS updated_by_15 FROM print_template p0_ WHERE p0_.active = 1 ORDER BY p0_.name ASC
Parameters:
[]
2.01 ms
(0.12%)
1
SELECT t0.id AS id_1, t0.company AS company_2, t0.company_type AS company_type_3, t0.nip AS nip_4, t0.post_code AS post_code_5, t0.city AS city_6, t0.address AS address_7, t0.image_name AS image_name_8, t0.permissions AS permissions_9, t0.footer_www AS footer_www_10, t0.footer_phone AS footer_phone_11, t0.footer_email AS footer_email_12, t0.report_settings AS report_settings_13, t0.active AS active_14, t0.created_at AS created_at_15, t0.updated_at AS updated_at_16, t0.deactivate_date AS deactivate_date_17, t18.id AS id_19, t18.locker_settings AS locker_settings_20, t18.alert_settings AS alert_settings_21, t18.base_settings AS base_settings_22, t18.report_columns AS report_columns_23, t18.client_reports AS client_reports_24, t18.washing_weight_limit AS washing_weight_limit_25, t18.washing_weight AS washing_weight_26, t18.sorting_position AS sorting_position_27, t18.company_id AS company_id_28, t0.created_by AS created_by_29, t0.updated_by AS updated_by_30 FROM company t0 LEFT JOIN company_setting t18 ON t18.company_id = t0.id WHERE t0.id = ?
Parameters:
[
  2
]
1.85 ms
(0.11%)
1
SELECT t0.id AS id_1, t0.login AS login_2, t0.roles AS roles_3, t0.password AS password_4, t0.name AS name_5, t0.lastname AS lastname_6, t0.email AS email_7, t0.active AS active_8, t0.locale AS locale_9, t0.created_at AS created_at_10, t0.updated_at AS updated_at_11, t0.deactivate_date AS deactivate_date_12, t0.company_id AS company_id_13, t0.client_id AS client_id_14, t15.id AS id_16, t15.notifications AS notifications_17, t15.user_id AS user_id_18, t19.id AS id_20, t19.ip_address AS ip_address_21, t19.user_id AS user_id_22, t0.created_by AS created_by_23, t0.updated_by AS updated_by_24 FROM user t0 LEFT JOIN user_notification t15 ON t15.user_id = t0.id LEFT JOIN user_printer t19 ON t19.user_id = t0.id WHERE t0.id = ?
Parameters:
[
  11
]
1.30 ms
(0.08%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.role AS role_3, t0.created_at AS created_at_4, t0.updated_at AS updated_at_5, t6.id AS id_7, t6.permissions AS permissions_8, t6.role_id AS role_id_9, t0.created_by AS created_by_10, t0.updated_by AS updated_by_11 FROM user_role t0 LEFT JOIN role_permission t6 ON t6.role_id = t0.id INNER JOIN user_role_user ON t0.id = user_role_user.user_role_id WHERE user_role_user.user_id = ?
Parameters:
[
  11
]
1.23 ms
(0.07%)
1
SELECT count(c0_.id) AS sclr_0 FROM clothes_service c0_ WHERE c0_.company_id = ? AND c0_.status = ? AND c0_.created_at >= ? AND c0_.active = 1
Parameters:
[
  2
  "new"
  "2026-05-06 00:00:00"
]

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\User 34
App\Entity\Product 25
App\Entity\Client 16
App\Entity\ProductBatch 13
App\Entity\ClothesGroup 5
App\Entity\UserPrinter 3
App\Entity\PrintTemplate 3
App\Entity\UserRole 2
App\Entity\RolePermission 2
App\Entity\StateStatus 2
App\Entity\Company 1
App\Entity\CompanySetting 1