Query Metrics
22
Database Queries
12
Different statements
22.87 ms
Query time
0
Invalid entities
32
Managed entities
Grouped Statements
| Time▼ | Count | Info | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
4.41 ms (19.27%) |
4 |
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.slug AS slug_2, p0_.description AS description_3, p0_.price_cents AS price_cents_4, p0_.discount_type AS discount_type_5, p0_.discount_value AS discount_value_6, p0_.is_published AS is_published_7, p0_.is_favorite AS is_favorite_8, p0_.favorite_at AS favorite_at_9, p0_.created_at AS created_at_10, p0_.updated_at AS updated_at_11, c1_.id AS id_12, c1_.name AS name_13, c1_.slug AS slug_14, c1_.description AS description_15, c1_.cover_image AS cover_image_16, c1_.position AS position_17, c1_.is_active AS is_active_18, c1_.created_at AS created_at_19, c1_.updated_at AS updated_at_20, c2_.id AS id_21, c2_.name AS name_22, c2_.slug AS slug_23, c2_.description AS description_24, c2_.cover_image AS cover_image_25, c2_.position AS position_26, c2_.is_active AS is_active_27, c2_.created_at AS created_at_28, c2_.updated_at AS updated_at_29, p3_.id AS id_30, p3_.filename AS filename_31, p3_.width AS width_32, p3_.height AS height_33, p3_.position AS position_34, c1_.parent_id AS parent_id_35, c2_.parent_id AS parent_id_36, p3_.product_id AS product_id_37 FROM product p0_ LEFT JOIN product_category p4_ ON p0_.id = p4_.product_id LEFT JOIN category c1_ ON c1_.id = p4_.category_id LEFT JOIN category c2_ ON c1_.parent_id = c2_.id INNER JOIN product_image p3_ ON p0_.id = p3_.product_id WHERE p0_.id IN (?) ORDER BY p3_.position ASC
Parameters:
[
35
]
|
||||||||||||||||||||||||||||||||
|
3.88 ms (16.98%) |
3 |
SELECT p0_.id AS id_0 FROM product p0_ WHERE p0_.is_published = 1 AND (EXISTS (SELECT 1 AS sclr_1 FROM product p1_ INNER JOIN product_category p3_ ON p1_.id = p3_.product_id INNER JOIN category c2_ ON c2_.id = p3_.category_id LEFT JOIN category c4_ ON c2_.parent_id = c4_.id WHERE p1_.id = p0_.id AND c2_.is_active = 1 AND (c4_.id IS NULL OR c4_.is_active = 1))) AND EXISTS (SELECT 1 AS sclr_2 FROM product_image p5_ WHERE p5_.product_id = p0_.id) AND (EXISTS (SELECT 1 AS sclr_3 FROM product p6_ INNER JOIN product_category p8_ ON p6_.id = p8_.product_id INNER JOIN category c7_ ON c7_.id = p8_.category_id WHERE p6_.id = p0_.id AND c7_.id IN (?))) ORDER BY p0_.created_at DESC LIMIT 1
Parameters:
[
10
]
|
||||||||||||||||||||||||||||||||
|
3.09 ms (13.52%) |
1 |
SELECT p0_.id AS id_0 FROM product p0_ WHERE p0_.is_published = 1 AND (EXISTS (SELECT 1 AS sclr_1 FROM product p1_ INNER JOIN product_category p3_ ON p1_.id = p3_.product_id INNER JOIN category c2_ ON c2_.id = p3_.category_id LEFT JOIN category c4_ ON c2_.parent_id = c4_.id WHERE p1_.id = p0_.id AND c2_.is_active = 1 AND (c4_.id IS NULL OR c4_.is_active = 1))) AND EXISTS (SELECT 1 AS sclr_2 FROM product_image p5_ WHERE p5_.product_id = p0_.id) AND (EXISTS (SELECT 1 AS sclr_3 FROM product p6_ INNER JOIN product_category p8_ ON p6_.id = p8_.product_id INNER JOIN category c7_ ON c7_.id = p8_.category_id WHERE p6_.id = p0_.id AND c7_.id IN (?, ?))) ORDER BY p0_.created_at DESC LIMIT 1
Parameters:
[ 9 13 ]
|
||||||||||||||||||||||||||||||||
|
1.66 ms (7.27%) |
4 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.description AS description_4, t0.cover_image AS cover_image_5, t0.position AS position_6, t0.is_active AS is_active_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.parent_id AS parent_id_10 FROM category t0 WHERE t0.parent_id = ? ORDER BY t0.position ASC, t0.name ASC
Parameters:
[
9
]
|
||||||||||||||||||||||||||||||||
|
1.61 ms (7.04%) |
1 |
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.slug AS slug_2, p0_.description AS description_3, p0_.price_cents AS price_cents_4, p0_.discount_type AS discount_type_5, p0_.discount_value AS discount_value_6, p0_.is_published AS is_published_7, p0_.is_favorite AS is_favorite_8, p0_.favorite_at AS favorite_at_9, p0_.created_at AS created_at_10, p0_.updated_at AS updated_at_11, c1_.id AS id_12, c1_.name AS name_13, c1_.slug AS slug_14, c1_.description AS description_15, c1_.cover_image AS cover_image_16, c1_.position AS position_17, c1_.is_active AS is_active_18, c1_.created_at AS created_at_19, c1_.updated_at AS updated_at_20, c2_.id AS id_21, c2_.name AS name_22, c2_.slug AS slug_23, c2_.description AS description_24, c2_.cover_image AS cover_image_25, c2_.position AS position_26, c2_.is_active AS is_active_27, c2_.created_at AS created_at_28, c2_.updated_at AS updated_at_29, p3_.id AS id_30, p3_.filename AS filename_31, p3_.width AS width_32, p3_.height AS height_33, p3_.position AS position_34, c1_.parent_id AS parent_id_35, c2_.parent_id AS parent_id_36, p3_.product_id AS product_id_37 FROM product p0_ LEFT JOIN product_category p4_ ON p0_.id = p4_.product_id LEFT JOIN category c1_ ON c1_.id = p4_.category_id LEFT JOIN category c2_ ON c1_.parent_id = c2_.id INNER JOIN product_image p3_ ON p0_.id = p3_.product_id WHERE p0_.id IN (?, ?, ?, ?) ORDER BY p3_.position ASC
Parameters:
[ 43 41 39 36 ]
|
||||||||||||||||||||||||||||||||
|
1.58 ms (6.92%) |
1 |
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.slug AS slug_2, p0_.description AS description_3, p0_.price_cents AS price_cents_4, p0_.discount_type AS discount_type_5, p0_.discount_value AS discount_value_6, p0_.is_published AS is_published_7, p0_.is_favorite AS is_favorite_8, p0_.favorite_at AS favorite_at_9, p0_.created_at AS created_at_10, p0_.updated_at AS updated_at_11, c1_.id AS id_12, c1_.name AS name_13, c1_.slug AS slug_14, c1_.description AS description_15, c1_.cover_image AS cover_image_16, c1_.position AS position_17, c1_.is_active AS is_active_18, c1_.created_at AS created_at_19, c1_.updated_at AS updated_at_20, c2_.id AS id_21, c2_.name AS name_22, c2_.slug AS slug_23, c2_.description AS description_24, c2_.cover_image AS cover_image_25, c2_.position AS position_26, c2_.is_active AS is_active_27, c2_.created_at AS created_at_28, c2_.updated_at AS updated_at_29, p3_.id AS id_30, p3_.filename AS filename_31, p3_.width AS width_32, p3_.height AS height_33, p3_.position AS position_34, c1_.parent_id AS parent_id_35, c2_.parent_id AS parent_id_36, p3_.product_id AS product_id_37 FROM product p0_ LEFT JOIN product_category p4_ ON p0_.id = p4_.product_id LEFT JOIN category c1_ ON c1_.id = p4_.category_id LEFT JOIN category c2_ ON c1_.parent_id = c2_.id INNER JOIN product_image p3_ ON p0_.id = p3_.product_id WHERE p0_.id IN (?, ?, ?) ORDER BY p3_.position ASC
Parameters:
[ 41 37 33 ]
|
||||||||||||||||||||||||||||||||
|
1.37 ms (5.98%) |
2 |
SELECT c0_.id AS id_0, p1_.id AS id_1 FROM product p1_ INNER JOIN product_category p2_ ON p1_.id = p2_.product_id INNER JOIN category c0_ ON c0_.id = p2_.category_id WHERE p1_.is_published = 1 AND EXISTS (SELECT 1 AS sclr_2 FROM product_image p3_ WHERE p3_.product_id = p1_.id)
Parameters:
[]
|
||||||||||||||||||||||||||||||||
|
1.29 ms (5.63%) |
1 |
SELECT p0_.id AS id_0 FROM product p0_ WHERE p0_.is_published = 1 AND (EXISTS (SELECT 1 AS sclr_1 FROM product p1_ INNER JOIN product_category p3_ ON p1_.id = p3_.product_id INNER JOIN category c2_ ON c2_.id = p3_.category_id LEFT JOIN category c4_ ON c2_.parent_id = c4_.id WHERE p1_.id = p0_.id AND c2_.is_active = 1 AND (c4_.id IS NULL OR c4_.is_active = 1))) AND EXISTS (SELECT 1 AS sclr_2 FROM product_image p5_ WHERE p5_.product_id = p0_.id) AND p0_.discount_type IS NOT NULL AND p0_.discount_value > 0 AND p0_.price_cents > 0 ORDER BY p0_.created_at DESC LIMIT 8
Parameters:
[]
|
||||||||||||||||||||||||||||||||
|
1.08 ms (4.70%) |
1 |
SELECT p0_.id AS id_0 FROM product p0_ WHERE p0_.is_published = 1 AND (EXISTS (SELECT 1 AS sclr_1 FROM product p1_ INNER JOIN product_category p3_ ON p1_.id = p3_.product_id INNER JOIN category c2_ ON c2_.id = p3_.category_id LEFT JOIN category c4_ ON c2_.parent_id = c4_.id WHERE p1_.id = p0_.id AND c2_.is_active = 1 AND (c4_.id IS NULL OR c4_.is_active = 1))) AND EXISTS (SELECT 1 AS sclr_2 FROM product_image p5_ WHERE p5_.product_id = p0_.id) AND p0_.is_favorite = 1 ORDER BY p0_.favorite_at DESC LIMIT 4
Parameters:
[]
|
||||||||||||||||||||||||||||||||
|
1.01 ms (4.41%) |
1 |
SELECT t0.id AS id_1, t0.business_name AS business_name_2, t0.owner_name AS owner_name_3, t0.tagline AS tagline_4, t0.about AS about_5, t0.portrait_image AS portrait_image_6, t0.phone AS phone_7, t0.public_email AS public_email_8, t0.inbox_email AS inbox_email_9, t0.city AS city_10, t0.shipping_info AS shipping_info_11, t0.footer_text AS footer_text_12, t0.legal_name AS legal_name_13, t0.legal_status AS legal_status_14, t0.siret AS siret_15, t0.legal_address AS legal_address_16, t0.host_name AS host_name_17, t0.host_address AS host_address_18 FROM site_settings t0 WHERE t0.id = ?
Parameters:
[
1
]
|
||||||||||||||||||||||||||||||||
|
0.96 ms (4.18%) |
1 |
SELECT t0.id AS id_1, t0.network AS network_2, t0.url AS url_3, t0.label AS label_4, t0.position AS position_5, t0.settings_id AS settings_id_6 FROM social_link t0 WHERE t0.settings_id = ? ORDER BY t0.position ASC
Parameters:
[
1
]
|
||||||||||||||||||||||||||||||||
|
0.94 ms (4.10%) |
2 |
SELECT c0_.id AS id_0, c0_.name AS name_1, c0_.slug AS slug_2, c0_.description AS description_3, c0_.cover_image AS cover_image_4, c0_.position AS position_5, c0_.is_active AS is_active_6, c0_.created_at AS created_at_7, c0_.updated_at AS updated_at_8, c1_.id AS id_9, c1_.name AS name_10, c1_.slug AS slug_11, c1_.description AS description_12, c1_.cover_image AS cover_image_13, c1_.position AS position_14, c1_.is_active AS is_active_15, c1_.created_at AS created_at_16, c1_.updated_at AS updated_at_17, c0_.parent_id AS parent_id_18, c1_.parent_id AS parent_id_19 FROM category c0_ LEFT JOIN category c1_ ON c0_.parent_id = c1_.id ORDER BY c0_.position ASC, c0_.name ASC
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\ProductImage | 16 |
| App\Entity\Product | 9 |
| App\Entity\Category | 5 |
| App\Entity\SiteSettings | 1 |
| App\Entity\SocialLink | 1 |
Entities Mapping
| Class | Mapping errors |
|---|---|
| App\Entity\Category | No errors. |
| App\Entity\Product | No errors. |
| App\Entity\ProductImage | No errors. |
| App\Entity\SiteSettings | No errors. |
| App\Entity\SocialLink | No errors. |