GET https://kopalnia.epralnia24.pl/laundry/products/?direction=DESC&page=1&sort=p.enteryAt

Query Metrics

115 Database Queries
20 Different statements
1761.40 ms Query time
0 Invalid entities
169 Managed entities

Grouped Statements

Show all queries

Time Count Info
1085.31 ms
(61.62%)
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
]
538.30 ms
(30.56%)
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
]
51.58 ms
(2.93%)
47
SELECT t0.id AS id_1, t0.date AS date_2, t0.state_status_id AS state_status_id_3, t0.product_id AS product_id_4, t0.client_id AS client_id_5, t0.product_batch_id AS product_batch_id_6, t0.owner_id AS owner_id_7, t0.statment_registration_item_id AS statment_registration_item_id_8, t0.created_by AS created_by_9, t0.updated_by AS updated_by_10 FROM state_machines_histories t0 WHERE (t0.owner_id IS NULL AND t0.product_id = ?)
Parameters:
[
  249544
]
20.32 ms
(1.15%)
16
SELECT t0.id AS id_1, t0.name AS name_2, t0.last_name AS last_name_3, t0.company_name AS company_name_4, t0.street AS street_5, t0.city AS city_6, t0.post_code AS post_code_7, t0.phone AS phone_8, t0.active AS active_9, t0.vat_number AS vat_number_10, t0.symbol AS symbol_11, t0.document_sign_name AS document_sign_name_12, t0.code AS code_13, t0.card AS card_14, t0.computer AS computer_15, t0.old_system_code AS old_system_code_16, t0.client_type AS client_type_17, t0.created_at AS created_at_18, t0.updated_at AS updated_at_19, t0.deactivate_date AS deactivate_date_20, t0.barcode_prefix AS barcode_prefix_21, t0.company_id AS company_id_22, t23.id AS id_24, t23.report_columns AS report_columns_25, t23.reports AS reports_26, t23.company_id AS company_id_27, t23.client_id AS client_id_28, t0.ward_id AS ward_id_29, t0.created_by AS created_by_30, t0.updated_by AS updated_by_31 FROM client t0 LEFT JOIN client_permission t23 ON t23.client_id = t0.id WHERE t0.id = ?
Parameters:
[
  1
]
16.34 ms
(0.93%)
25
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.cassation_id AS cassation_id_4, t0.product_id AS product_id_5, t0.created_by AS created_by_6, t0.updated_by AS updated_by_7 FROM cassation_item t0 WHERE t0.product_id = ?
Parameters:
[
  249544
]
6.76 ms
(0.38%)
1
SELECT DISTINCT            k.CONSTRAINT_NAME,
            k.COLUMN_NAME,
            k.REFERENCED_TABLE_NAME,
            k.REFERENCED_COLUMN_NAME,
            k.ORDINAL_POSITION /*!50116,
            c.UPDATE_RULE,
            c.DELETE_RULE */
FROM information_schema.key_column_usage k /*!50116
INNER JOIN information_schema.referential_constraints c
ON c.CONSTRAINT_NAME = k.CONSTRAINT_NAME
AND c.TABLE_NAME = k.TABLE_NAME */ WHERE k.TABLE_SCHEMA = ? AND k.TABLE_NAME = ? AND k.REFERENCED_COLUMN_NAME IS NOT NULL /*!50116 AND c.CONSTRAINT_SCHEMA = 'bogdankaprod' */ ORDER BY k.ORDINAL_POSITION
Parameters:
[
  "bogdankaprod"
  "doctrine_migration_versions"
]
6.46 ms
(0.37%)
2
SELECT TABLE_NAME
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = ?
  AND TABLE_TYPE = 'BASE TABLE'
ORDER BY TABLE_NAME
Parameters:
[
  "bogdankaprod"
]
5.28 ms
(0.30%)
5
SELECT t0.id AS id_1, t0.group_name AS group_name_2, t0.weight AS weight_3, t0.quantity AS quantity_4, t0.size AS size_5, t0.material AS material_6, t0.color AS color_7, t0.priority AS priority_8, t0.washing_limit AS washing_limit_9, t0.clothes_service_limit AS clothes_service_limit_10, t0.active AS active_11, t0.m2 AS m2_12, t0.created_at AS created_at_13, t0.updated_at AS updated_at_14, t0.barcode_prefix AS barcode_prefix_15, t0.deactivate_date AS deactivate_date_16, t0.client_id AS client_id_17, t0.company_id AS company_id_18, t19.id AS id_20, t19.quantity_price AS quantity_price_21, t19.weight_price AS weight_price_22, t19.m2_price AS m2_price_23, t19.created_at AS created_at_24, t19.updated_at AS updated_at_25, t19.deleted_at AS deleted_at_26, t19.company_id AS company_id_27, t19.clothes_group_id AS clothes_group_id_28, t19.created_by AS created_by_29, t19.updated_by AS updated_by_30, t0.created_by AS created_by_31, t0.updated_by AS updated_by_32 FROM clothes_group t0 LEFT JOIN price t19 ON t19.clothes_group_id = t0.id WHERE t0.id = ?
Parameters:
[
  1682
]
3.97 ms
(0.23%)
1
SELECT       c.COLUMN_NAME        AS field,
       c.COLUMN_TYPE       AS type,
       c.IS_NULLABLE        AS `null`,
       c.COLUMN_KEY         AS `key`,
       c.COLUMN_DEFAULT     AS `default`,
       c.EXTRA,
       c.COLUMN_COMMENT     AS comment,
       c.CHARACTER_SET_NAME AS characterset,
       c.COLLATION_NAME     AS collation
FROM information_schema.COLUMNS c
    INNER JOIN information_schema.TABLES t
        ON t.TABLE_NAME = c.TABLE_NAME
     WHERE c.TABLE_SCHEMA = ? AND t.TABLE_SCHEMA = ? AND t.TABLE_TYPE = 'BASE TABLE' AND t.TABLE_NAME = ? ORDER BY ORDINAL_POSITION
Parameters:
[
  "bogdankaprod"
  "bogdankaprod"
  "doctrine_migration_versions"
]
3.68 ms
(0.21%)
1
SELECT t.TABLE_NAME,
           t.ENGINE,
           t.AUTO_INCREMENT,
           t.TABLE_COMMENT,
           t.CREATE_OPTIONS,
           t.TABLE_COLLATION,
           ccsa.CHARACTER_SET_NAME
      FROM information_schema.TABLES t
        INNER JOIN information_schema.COLLATION_CHARACTER_SET_APPLICABILITY ccsa
          ON ccsa.COLLATION_NAME = t.TABLE_COLLATION WHERE t.TABLE_SCHEMA = ? AND t.TABLE_NAME = ? AND t.TABLE_TYPE = 'BASE TABLE'
Parameters:
[
  "bogdankaprod"
  "doctrine_migration_versions"
]
3.22 ms
(0.18%)
6
SELECT DATABASE()
Parameters:
[]
3.08 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:
[]
3.00 ms
(0.17%)
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
]
2.90 ms
(0.16%)
1
SELECT        NON_UNIQUE  AS Non_Unique,
        INDEX_NAME  AS Key_name,
        COLUMN_NAME AS Column_Name,
        SUB_PART    AS Sub_Part,
        INDEX_TYPE  AS Index_Type
FROM information_schema.STATISTICS WHERE TABLE_SCHEMA = ? AND TABLE_NAME = ? ORDER BY SEQ_IN_INDEX
Parameters:
[
  "bogdankaprod"
  "doctrine_migration_versions"
]
2.32 ms
(0.13%)
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
]
2.25 ms
(0.13%)
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
]
2.20 ms
(0.13%)
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"
]
1.85 ms
(0.11%)
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
]
1.74 ms
(0.10%)
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
]
0.83 ms
(0.05%)
1
SELECT * FROM doctrine_migration_versions
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\User 36
App\Entity\Product 25
App\Entity\StateHistory 25
App\Entity\StatmentRegistrationItem 22
App\Entity\Client 16
App\Entity\ProductBatch 15
App\Entity\Ward 11
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

Entities Mapping

Class Mapping errors
App\Entity\User No errors.
App\Entity\Company No errors.
App\Entity\Client No errors.
App\Entity\UserNotification No errors.
App\Entity\UserPrinter No errors.
App\Entity\StickyNote No errors.
App\Entity\UserRole No errors.
App\Entity\RolePermission No errors.
App\Entity\Product No errors.
App\Entity\ClothesGroup No errors.
App\Entity\CassationItem No errors.
App\Entity\Cassation No errors.
App\Entity\ProductBatch No errors.
App\Entity\ProductAttribute No errors.
App\Entity\StateHistory No errors.
App\Entity\ProductBatchHistory No errors.
App\Entity\Alert No errors.
App\Entity\ProductLog No errors.
App\Entity\ClothesService No errors.
App\Entity\StatmentRegistrationItem No errors.
App\Entity\CompanySetting No errors.
App\Entity\Settings No errors.
App\Entity\Attribute No errors.
App\Entity\PrintTemplate No errors.
App\Entity\Statment No errors.
App\Entity\CompanyRange No errors.
App\Entity\StateStatus No errors.
App\Entity\ProductAttributeGroupRelationClient No errors.
App\Entity\ClientPermission No errors.
App\Entity\CassationType No errors.
App\Entity\Ward No errors.
App\Entity\Price No errors.
App\Entity\StatmentItem No errors.
App\Entity\ClothesGroupQuantity No errors.
App\Entity\BatchJob No errors.
App\Entity\StatmentRegistration No errors.
App\Entity\ClothesServiceEvent No errors.
App\Entity\StatmentSortingItem No errors.
App\Entity\ProductAttributeGroup No errors.
App\Entity\Rack No errors.
App\Entity\Recipt No errors.
App\Entity\ClientCompany No errors.
App\Entity\Permission No errors.
App\Entity\StateRoadMap No errors.
App\Entity\ContributionWeight No errors.
App\Entity\ClothesServiceReason No errors.
App\Entity\ProductAttributeGroupRelationCompany No errors.
App\Entity\PhysicalInventory No errors.
App\Entity\Task No errors.
App\Entity\EquipmentType No errors.
App\Entity\ReportSettings No errors.
App\Entity\Printer No errors.
App\Entity\Equipment No errors.
App\Entity\InventoryGroup No errors.
App\Entity\Inventory No errors.
Gesdinet\JWTRefreshTokenBundle\Entity\RefreshToken No errors.
App\Entity\RefreshToken No errors.
Vich\UploaderBundle\Entity\File No errors.