Query Metrics
163
Database Queries
25
Different statements
114.59 ms
Query time
0
Invalid entities
246
Managed entities
Grouped Statements
| Time▼ | Count | Info |
|---|---|---|
|
65.56 ms (57.21%) |
1 |
SELECT p0_.id AS id_0, SUM(CASE WHEN p1_.iqc_code_id IS NOT NULL AND (p1_.transfer_exit_id IS NULL OR p2_.status <> 'sended') THEN 1 ELSE 0 END) AS sclr_1, SUM(CASE WHEN p1_.iqc_code_id IS NOT NULL AND (p1_.transfer_exit_id IS NULL OR p2_.status <> 'sended') AND (p1_.box_id IS NOT NULL OR p1_.pallet_id IS NOT NULL) THEN 1 ELSE 0 END) AS sclr_2, SUM(CASE WHEN p1_.iqc_code_id IS NOT NULL AND (p1_.transfer_exit_id IS NULL OR p2_.status <> 'sended') AND p1_.box_id IS NULL AND p1_.pallet_id IS NULL THEN 1 ELSE 0 END) AS sclr_3, SUM(CASE WHEN p1_.iqc_code_id IS NOT NULL AND (p1_.transfer_exit_id IS NULL OR p2_.status <> 'sended') AND p1_.in_stock = 1 THEN 1 ELSE 0 END) AS sclr_4, SUM(CASE WHEN p1_.iqc_code_id IS NOT NULL AND (p1_.transfer_exit_id IS NULL OR p2_.status <> 'sended') AND p1_.in_stock = 0 THEN 1 ELSE 0 END) AS sclr_5 FROM prim_iqp_code p1_ INNER JOIN prim_iqb_code p3_ ON p1_.iqb_code_id = p3_.id INNER JOIN prim_catalogue_product p0_ ON p3_.id = p0_.iqb_code_id LEFT JOIN prim_warehouse_transfer p2_ ON p1_.transfer_exit_id = p2_.id GROUP BY p0_.id HAVING sclr_1 > 0
Parameters:
[] |
|
5.88 ms (5.13%) |
30 |
SELECT t0.id AS id_1, t0.receipt_path AS receipt_path_2, t0.is_closed AS is_closed_3, t0.assign_date AS assign_date_4, t0.withdraw_date AS withdraw_date_5, t0.iqp_code_id AS iqp_code_id_6, t0.prize_id AS prize_id_7, t0.campaign_id AS campaign_id_8, t0.user_id AS user_id_9, t0.point_of_sale_id AS point_of_sale_id_10 FROM prim_campaign_ticket t0 WHERE t0.iqp_code_id = ?
Parameters:
[
"255975"
]
|
|
5.19 ms (4.53%) |
30 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.company AS company_4, t0.address AS address_5, t0.lat AS lat_6, t0.lng AS lng_7, t0.image_path AS image_path_8, t0.directory_path AS directory_path_9, t0.alert_email AS alert_email_10, t0.notes AS notes_11, t0.iqp_code_id AS iqp_code_id_12, t0.maintenance_category_id AS maintenance_category_id_13, t0.point_of_sale_id AS point_of_sale_id_14 FROM prim_maintenance t0 WHERE t0.iqp_code_id = ?
Parameters:
[
"255975"
]
|
|
5.01 ms (4.38%) |
17 |
SELECT t0.id AS id_1, t0.is_active AS is_active_2, t0.value AS value_3, t0.rfid AS rfid_4, t0.json_msg AS json_msg_5, t0.creation_date AS creation_date_6, t7.id AS id_8, t7.name AS name_9, t7.client AS client_10, t7.type AS type_11, t7.start_date AS start_date_12, t7.end_date AS end_date_13, t7.details AS details_14, t7.is_single_piece_managed AS is_single_piece_managed_15, t7.is_external_code_application AS is_external_code_application_16, t7.iqp_num AS iqp_num_17, t7.pieces_for_box AS pieces_for_box_18, t7.boxes_for_pallet AS boxes_for_pallet_19, t7.pieces_for_pallet AS pieces_for_pallet_20, t7.pallet_type AS pallet_type_21, t7.pallet_weight AS pallet_weight_22, t7.pallet_width AS pallet_width_23, t7.pallet_depth AS pallet_depth_24, t7.pallet_height AS pallet_height_25, t7.box_weight AS box_weight_26, t7.box_width AS box_width_27, t7.box_depth AS box_depth_28, t7.box_height AS box_height_29, t7.status_id AS status_id_30, t7.iqc_code_id AS iqc_code_id_31, t7.product_id AS product_id_32, t0.brand_id AS brand_id_33 FROM prim_iqc_code t0 LEFT JOIN prim_warehouse_production_order t7 ON t7.iqc_code_id = t0.id WHERE t0.id = ?
Parameters:
[
"17"
]
|
|
4.45 ms (3.89%) |
10 |
SELECT t0.id AS id_1, t0.is_active AS is_active_2, t0.value AS value_3, t0.rfid AS rfid_4, t0.json_msg AS json_msg_5, t0.creation_date AS creation_date_6, t7.id AS id_8, t7.height AS height_9, t7.width AS width_10, t7.depth AS depth_11, t7.weight AS weight_12, t7.iqs_code_id AS iqs_code_id_13, t7.production_order_id AS production_order_id_14, t7.pallet_id AS pallet_id_15, t7.transfer_id AS transfer_id_16, t0.iqc_code_id AS iqc_code_id_17 FROM prim_iqs_code t0 LEFT JOIN prim_warehouse_box t7 ON t7.iqs_code_id = t0.id WHERE t0.id = ?
Parameters:
[
"82"
]
|
|
3.53 ms (3.08%) |
10 |
SELECT t0.id AS id_1, t0.height AS height_2, t0.width AS width_3, t0.depth AS depth_4, t0.weight AS weight_5, t0.iqs_code_id AS iqs_code_id_6, t0.production_order_id AS production_order_id_7, t0.pallet_id AS pallet_id_8, t0.transfer_id AS transfer_id_9 FROM prim_warehouse_box t0 WHERE t0.id = ?
Parameters:
[
"82"
]
|
|
3.01 ms (2.63%) |
13 |
SELECT t0.id AS id_1, t0.slug AS slug_2, t0.name AS name_3, t0.website AS website_4, t0.image_path AS image_path_5, t0.description AS description_6, t0.notes AS notes_7, t0.product_id AS product_id_8, t0.language_id AS language_id_9 FROM prim_catalogue_product_detail t0 WHERE t0.product_id = ?
Parameters:
[
"1116"
]
|
|
2.19 ms (1.91%) |
5 |
SELECT t0.id AS id_1, t0.date AS date_2, t0.status AS status_3, t0.type AS type_4, t0.qty AS qty_5, t0.send_type AS send_type_6, t0.number AS number_7, t0.ddt AS ddt_8, t0.iqc_code_id AS iqc_code_id_9, t0.external_source_id AS external_source_id_10 FROM prim_warehouse_transfer t0 WHERE t0.external_source_id = ?
Parameters:
[
"3"
]
|
|
2.17 ms (1.89%) |
5 |
SELECT t0.id AS id_1, t0.is_active AS is_active_2, t0.value AS value_3, t0.rfid AS rfid_4, t0.json_msg AS json_msg_5, t0.creation_date AS creation_date_6, t7.id AS id_8, t7.height AS height_9, t7.width AS width_10, t7.depth AS depth_11, t7.weight AS weight_12, t7.type AS type_13, t7.iqe_code_id AS iqe_code_id_14, t7.production_order_id AS production_order_id_15, t7.transfer_id AS transfer_id_16, t0.iqc_code_id AS iqc_code_id_17 FROM prim_iqe_code t0 LEFT JOIN prim_warehouse_pallet t7 ON t7.iqe_code_id = t0.id WHERE t0.id = ?
Parameters:
[
"44"
]
|
|
2.10 ms (1.84%) |
1 |
SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT p0_.id AS id_0, p0_.is_active AS is_active_1, p0_.value AS value_2, p0_.rfid AS rfid_3, p0_.json_msg AS json_msg_4, p0_.creation_date AS creation_date_5, p0_.gs1_value AS gs1_value_6, p0_.in_stock AS in_stock_7 FROM prim_iqp_code p0_ LEFT JOIN prim_iqc_code p1_ ON p0_.iqc_code_id = p1_.id LEFT JOIN prim_warehouse_production_order p2_ ON p1_.id = p2_.iqc_code_id LEFT JOIN prim_iqb_code p3_ ON p0_.iqb_code_id = p3_.id LEFT JOIN prim_brand p4_ ON p3_.brand_id = p4_.id LEFT JOIN prim_catalogue_product p5_ ON p3_.id = p5_.iqb_code_id LEFT JOIN prim_catalogue_product_detail p6_ ON p5_.id = p6_.product_id LEFT JOIN prim_warehouse_box p7_ ON p0_.box_id = p7_.id LEFT JOIN prim_iqs_code p8_ ON p7_.iqs_code_id = p8_.id LEFT JOIN prim_warehouse_pallet p9_ ON p0_.pallet_id = p9_.id LEFT JOIN prim_iqe_code p10_ ON p9_.iqe_code_id = p10_.id LEFT JOIN prim_warehouse_transfer p11_ ON p0_.transfer_exit_id = p11_.id WHERE p4_.id = ? AND p0_.iqc_code_id IS NOT NULL AND (p0_.transfer_exit_id IS NULL OR p11_.status <> 'sended') ORDER BY p0_.creation_date DESC, p0_.value ASC) dctrn_result) dctrn_table
Parameters:
[
"1"
]
|
|
1.87 ms (1.63%) |
5 |
SELECT t0.id AS id_1, t0.height AS height_2, t0.width AS width_3, t0.depth AS depth_4, t0.weight AS weight_5, t0.type AS type_6, t0.iqe_code_id AS iqe_code_id_7, t0.production_order_id AS production_order_id_8, t0.transfer_id AS transfer_id_9 FROM prim_warehouse_pallet t0 WHERE t0.id = ?
Parameters:
[
"44"
]
|
|
1.78 ms (1.55%) |
7 |
SELECT t0.id AS id_1, t0.is_active AS is_active_2, t0.is_expirable AS is_expirable_3, t0.directory_path AS directory_path_4, t0.warranty_path AS warranty_path_5, t0.iqb_code_id AS iqb_code_id_6, t0.ean_code_id AS ean_code_id_7, t0.watermark_id AS watermark_id_8, t0.category_id AS category_id_9, t0.producer_id AS producer_id_10, t0.trademark_id AS trademark_id_11, t0.subcategory_1_id AS subcategory_1_id_12, t0.subcategory_2_id AS subcategory_2_id_13, t0.subcategory_3_id AS subcategory_3_id_14, t0.subcategory_4_id AS subcategory_4_id_15 FROM prim_catalogue_product t0 WHERE t0.id = ?
Parameters:
[
"1116"
]
|
|
1.76 ms (1.53%) |
6 |
SELECT t0.id AS id_1, t0.is_active AS is_active_2, t0.is_expirable AS is_expirable_3, t0.directory_path AS directory_path_4, t0.warranty_path AS warranty_path_5, t0.iqb_code_id AS iqb_code_id_6, t0.ean_code_id AS ean_code_id_7, t0.watermark_id AS watermark_id_8, t0.category_id AS category_id_9, t0.producer_id AS producer_id_10, t0.trademark_id AS trademark_id_11, t0.subcategory_1_id AS subcategory_1_id_12, t0.subcategory_2_id AS subcategory_2_id_13, t0.subcategory_3_id AS subcategory_3_id_14, t0.subcategory_4_id AS subcategory_4_id_15 FROM prim_catalogue_product t0 WHERE t0.id = ? LIMIT 1
Parameters:
[
"656"
]
|
|
1.61 ms (1.40%) |
4 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.category_id AS category_id_3, t0.language_id AS language_id_4 FROM prim_catalogue_category_detail t0 WHERE t0.category_id = ?
Parameters:
[
"6"
]
|
|
1.53 ms (1.34%) |
4 |
SELECT t0.id AS id_1 FROM prim_catalogue_category t0 WHERE t0.id = ?
Parameters:
[
"6"
]
|
|
1.30 ms (1.13%) |
1 |
SELECT p0_.id AS id_0, p0_.is_active AS is_active_1, p0_.value AS value_2, p0_.rfid AS rfid_3, p0_.json_msg AS json_msg_4, p0_.creation_date AS creation_date_5, p0_.gs1_value AS gs1_value_6, p0_.in_stock AS in_stock_7, p0_.iqb_code_id AS iqb_code_id_8, p0_.iqc_code_id AS iqc_code_id_9, p0_.box_id AS box_id_10, p0_.pallet_id AS pallet_id_11, p0_.transfer_entrance_id AS transfer_entrance_id_12, p0_.transfer_exit_id AS transfer_exit_id_13 FROM prim_iqp_code p0_ LEFT JOIN prim_iqc_code p1_ ON p0_.iqc_code_id = p1_.id LEFT JOIN prim_warehouse_production_order p2_ ON p1_.id = p2_.iqc_code_id LEFT JOIN prim_iqb_code p3_ ON p0_.iqb_code_id = p3_.id LEFT JOIN prim_brand p4_ ON p3_.brand_id = p4_.id LEFT JOIN prim_catalogue_product p5_ ON p3_.id = p5_.iqb_code_id LEFT JOIN prim_catalogue_product_detail p6_ ON p5_.id = p6_.product_id LEFT JOIN prim_warehouse_box p7_ ON p0_.box_id = p7_.id LEFT JOIN prim_iqs_code p8_ ON p7_.iqs_code_id = p8_.id LEFT JOIN prim_warehouse_pallet p9_ ON p0_.pallet_id = p9_.id LEFT JOIN prim_iqe_code p10_ ON p9_.iqe_code_id = p10_.id LEFT JOIN prim_warehouse_transfer p11_ ON p0_.transfer_exit_id = p11_.id WHERE p4_.id = ? AND p0_.iqc_code_id IS NOT NULL AND (p0_.transfer_exit_id IS NULL OR p11_.status <> 'sended') ORDER BY p0_.creation_date DESC, p0_.value ASC LIMIT 30
Parameters:
[
"1"
]
|
|
1.21 ms (1.06%) |
4 |
SELECT t0.id AS id_1, t0.status AS status_2, t0.value AS value_3 FROM prim_warehouse_production_order_status t0 WHERE t0.id = ?
Parameters:
[
"4"
]
|
|
0.89 ms (0.78%) |
3 |
SELECT t0.id AS id_1, t0.value AS value_2, t0.slug AS slug_3 FROM prim_language t0 WHERE t0.id = ?
Parameters:
[
"1"
]
|
|
0.76 ms (0.66%) |
1 |
SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.client AS client_2, p0_.type AS type_3, p0_.start_date AS start_date_4, p0_.end_date AS end_date_5, p0_.details AS details_6, p0_.is_single_piece_managed AS is_single_piece_managed_7, p0_.is_external_code_application AS is_external_code_application_8, p0_.iqp_num AS iqp_num_9, p0_.pieces_for_box AS pieces_for_box_10, p0_.boxes_for_pallet AS boxes_for_pallet_11, p0_.pieces_for_pallet AS pieces_for_pallet_12, p0_.pallet_type AS pallet_type_13, p0_.pallet_weight AS pallet_weight_14, p0_.pallet_width AS pallet_width_15, p0_.pallet_depth AS pallet_depth_16, p0_.pallet_height AS pallet_height_17, p0_.box_weight AS box_weight_18, p0_.box_width AS box_width_19, p0_.box_depth AS box_depth_20, p0_.box_height AS box_height_21 FROM prim_warehouse_production_order p0_ LEFT JOIN prim_iqc_code p1_ ON p0_.iqc_code_id = p1_.id LEFT JOIN prim_catalogue_product p2_ ON p0_.product_id = p2_.id LEFT JOIN prim_catalogue_product_detail p3_ ON p2_.id = p3_.product_id WHERE p1_.brand_id = ? ORDER BY p0_.start_date ASC) dctrn_result) dctrn_table
Parameters:
[
"1"
]
|
|
0.70 ms (0.61%) |
1 |
SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT p0_.id AS id_0, p0_.date AS date_1, p0_.status AS status_2, p0_.type AS type_3, p0_.qty AS qty_4, p0_.send_type AS send_type_5, p0_.number AS number_6, p0_.ddt AS ddt_7 FROM prim_warehouse_transfer p0_ LEFT JOIN prim_iqc_code p1_ ON p0_.iqc_code_id = p1_.id LEFT JOIN prim_warehouse_production_order p2_ ON p1_.id = p2_.iqc_code_id LEFT JOIN prim_catalogue_product p3_ ON p2_.product_id = p3_.id LEFT JOIN prim_catalogue_product_detail p4_ ON p3_.id = p4_.product_id LEFT JOIN prim_warehouse_external_source p5_ ON p0_.external_source_id = p5_.id WHERE p1_.brand_id = ? ORDER BY p0_.date DESC) dctrn_result) dctrn_table
Parameters:
[
"1"
]
|
|
0.66 ms (0.58%) |
1 |
SELECT p0_.id AS id_0, p0_.date AS date_1, p0_.status AS status_2, p0_.type AS type_3, p0_.qty AS qty_4, p0_.send_type AS send_type_5, p0_.number AS number_6, p0_.ddt AS ddt_7, p0_.iqc_code_id AS iqc_code_id_8, p0_.external_source_id AS external_source_id_9 FROM prim_warehouse_transfer p0_ LEFT JOIN prim_iqc_code p1_ ON p0_.iqc_code_id = p1_.id LEFT JOIN prim_warehouse_production_order p2_ ON p1_.id = p2_.iqc_code_id LEFT JOIN prim_catalogue_product p3_ ON p2_.product_id = p3_.id LEFT JOIN prim_catalogue_product_detail p4_ ON p3_.id = p4_.product_id LEFT JOIN prim_warehouse_external_source p5_ ON p0_.external_source_id = p5_.id WHERE p1_.brand_id = ? ORDER BY p0_.date DESC LIMIT 15
Parameters:
[
"1"
]
|
|
0.51 ms (0.45%) |
1 |
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.client AS client_2, p0_.type AS type_3, p0_.start_date AS start_date_4, p0_.end_date AS end_date_5, p0_.details AS details_6, p0_.is_single_piece_managed AS is_single_piece_managed_7, p0_.is_external_code_application AS is_external_code_application_8, p0_.iqp_num AS iqp_num_9, p0_.pieces_for_box AS pieces_for_box_10, p0_.boxes_for_pallet AS boxes_for_pallet_11, p0_.pieces_for_pallet AS pieces_for_pallet_12, p0_.pallet_type AS pallet_type_13, p0_.pallet_weight AS pallet_weight_14, p0_.pallet_width AS pallet_width_15, p0_.pallet_depth AS pallet_depth_16, p0_.pallet_height AS pallet_height_17, p0_.box_weight AS box_weight_18, p0_.box_width AS box_width_19, p0_.box_depth AS box_depth_20, p0_.box_height AS box_height_21, p0_.status_id AS status_id_22, p0_.iqc_code_id AS iqc_code_id_23, p0_.product_id AS product_id_24 FROM prim_warehouse_production_order p0_ LEFT JOIN prim_iqc_code p1_ ON p0_.iqc_code_id = p1_.id LEFT JOIN prim_catalogue_product p2_ ON p0_.product_id = p2_.id LEFT JOIN prim_catalogue_product_detail p3_ ON p2_.id = p3_.product_id WHERE p1_.brand_id = ? ORDER BY p0_.start_date ASC LIMIT 15
Parameters:
[
"1"
]
|
|
0.34 ms (0.30%) |
1 |
SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT p0_.id AS id_0, p0_.type AS type_1, p0_.name AS name_2, p0_.address AS address_3, p0_.city AS city_4, p0_.zip AS zip_5, p0_.province AS province_6, p0_.country AS country_7 FROM prim_warehouse_external_source p0_ WHERE 1 = 1 ORDER BY p0_.name ASC) dctrn_result) dctrn_table
Parameters:
[] |
|
0.28 ms (0.25%) |
1 |
SELECT t0.id AS id_1, t0.is_active AS is_active_2, t0.name AS name_3, t0.vat AS vat_4, t0.fiscal_code AS fiscal_code_5, t0.address AS address_6, t0.zip AS zip_7, t0.city AS city_8, t0.country AS country_9, t0.email AS email_10, t0.phone AS phone_11, t0.website AS website_12, t0.logo_path AS logo_path_13, t0.directory_name AS directory_name_14, t0.warranty_email AS warranty_email_15, t16.id AS id_17, t16.logo_path AS logo_path_18, t16.splash_path AS splash_path_19, t16.color_splash_back AS color_splash_back_20, t16.color_back AS color_back_21, t16.brand_id AS brand_id_22 FROM prim_brand t0 LEFT JOIN prim_application t16 ON t16.brand_id = t0.id WHERE t0.id = ? LIMIT 1
Parameters:
[
"1"
]
|
|
0.28 ms (0.24%) |
1 |
SELECT p0_.id AS id_0, p0_.type AS type_1, p0_.name AS name_2, p0_.address AS address_3, p0_.city AS city_4, p0_.zip AS zip_5, p0_.province AS province_6, p0_.country AS country_7 FROM prim_warehouse_external_source p0_ WHERE 1 = 1 ORDER BY p0_.name ASC LIMIT 15
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\Warehouse\Transfer | 36 |
| App\Entity\IqpCode | 30 |
| App\Entity\Warehouse\ProductionOrder | 17 |
| App\Entity\IqcCode | 17 |
| App\Entity\Catalogue\Product | 13 |
| App\Entity\IqbCode | 13 |
| App\Entity\EanCode | 13 |
| App\Entity\Catalogue\ProductDetail | 13 |
| App\Entity\Catalogue\CategoryDetail | 12 |
| App\Entity\Catalogue\Subcategory3 | 11 |
| App\Entity\Warehouse\Box | 10 |
| App\Entity\IqsCode | 10 |
| App\Entity\Catalogue\Subcategory1 | 8 |
| App\Entity\Producer | 7 |
| App\Entity\Catalogue\Subcategory2 | 7 |
| App\Entity\Warehouse\ExternalSource | 5 |
| App\Entity\Warehouse\Pallet | 5 |
| App\Entity\Catalogue\Category | 5 |
| App\Entity\IqeCode | 5 |
| App\Entity\Warehouse\ProductionOrderStatus | 4 |
| App\Entity\Language | 3 |
| App\Entity\Brand | 1 |
| App\Entity\Application\Application | 1 |