GET https://sampleretailhub.com/shop/list?category=5

Query Metrics

19 Database Queries
13 Different statements
11.21 ms Query time
5 Invalid entities

Queries

Group similar statements

default connection

# Time Info
1 0.85 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.parent_id AS parent_id_3, t0.description AS description_4, t0.image AS image_5, t0.big_image AS big_image_6 FROM categories t0 WHERE t0.id = ?
Parameters:
[
  5
]
2 1.16 ms
SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT s0_.id AS id_0, s0_.title AS title_1, s0_.is_hit AS is_hit_2, s0_.is_kit AS is_kit_3, s0_.is_out_of_stock AS is_out_of_stock_4, s0_.description AS description_5, s0_.sku AS sku_6 FROM shop_items s0_ WHERE s0_.catalog_id_id IN (?)) dctrn_result) dctrn_table
Parameters:
[
  5
]
3 0.69 ms
SELECT t0.id AS id_1, t0.session_id AS session_id_2, t0.count AS count_3, t0.discount AS discount_4, t0.is_free_item AS is_free_item_5, t0.shop_item_id AS shop_item_id_6, t0.variant_id AS variant_id_7 FROM shop_cart t0 WHERE t0.session_id IS NULL
Parameters:
[]
4 0.59 ms
SELECT f0_.id AS id_0, f0_.min_order AS min_order_1, f0_.variant_id AS variant_id_2 FROM free_products f0_ ORDER BY f0_.min_order ASC
Parameters:
[]
5 0.71 ms
SELECT t0.id AS id_1, t0.dose AS dose_2, t0.packs AS packs_3, t0.price AS price_4, t0.old_price AS old_price_5, t0.shop_item_id AS shop_item_id_6 FROM variants t0 WHERE t0.id = ?
Parameters:
[
  1
]
6 0.51 ms
SELECT p0_.image AS image_0 FROM product_images p0_ WHERE p0_.shop_item_id = ? LIMIT 1
Parameters:
[
  3
]
7 0.55 ms
SELECT t0.id AS id_1, t0.title AS title_2, t0.is_hit AS is_hit_3, t0.is_kit AS is_kit_4, t0.is_out_of_stock AS is_out_of_stock_5, t0.description AS description_6, t0.sku AS sku_7, t0.catalog_id_id AS catalog_id_id_8 FROM shop_items t0 WHERE t0.id = ?
Parameters:
[
  3
]
8 1.06 ms
SELECT t0.id AS id_1, t0.dose AS dose_2, t0.packs AS packs_3, t0.price AS price_4, t0.old_price AS old_price_5, t0.shop_item_id AS shop_item_id_6 FROM variants t0 WHERE t0.id = ?
Parameters:
[
  10
]
9 0.53 ms
SELECT p0_.image AS image_0 FROM product_images p0_ WHERE p0_.shop_item_id = ? LIMIT 1
Parameters:
[
  6
]
10 0.48 ms
SELECT t0.id AS id_1, t0.title AS title_2, t0.is_hit AS is_hit_3, t0.is_kit AS is_kit_4, t0.is_out_of_stock AS is_out_of_stock_5, t0.description AS description_6, t0.sku AS sku_7, t0.catalog_id_id AS catalog_id_id_8 FROM shop_items t0 WHERE t0.id = ?
Parameters:
[
  6
]
11 0.47 ms
SELECT t0.id AS id_1, t0.dose AS dose_2, t0.packs AS packs_3, t0.price AS price_4, t0.old_price AS old_price_5, t0.shop_item_id AS shop_item_id_6 FROM variants t0 WHERE t0.id = ?
Parameters:
[
  15
]
12 0.62 ms
SELECT p0_.image AS image_0 FROM product_images p0_ WHERE p0_.shop_item_id = ? LIMIT 1
Parameters:
[
  9
]
13 0.40 ms
SELECT t0.id AS id_1, t0.title AS title_2, t0.is_hit AS is_hit_3, t0.is_kit AS is_kit_4, t0.is_out_of_stock AS is_out_of_stock_5, t0.description AS description_6, t0.sku AS sku_7, t0.catalog_id_id AS catalog_id_id_8 FROM shop_items t0 WHERE t0.id = ?
Parameters:
[
  9
]
14 0.45 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.parent_id AS parent_id_3, t0.description AS description_4, t0.image AS image_5, t0.big_image AS big_image_6 FROM categories t0
Parameters:
[]
15 0.48 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.url AS url_3, t0.is_menu_item AS is_menu_item_4, t0.html AS html_5 FROM pages t0 WHERE t0.is_menu_item = ?
Parameters:
[
  1
]
16 0.49 ms
SELECT DISTINCT id_0 FROM (SELECT s0_.id AS id_0, s0_.title AS title_1, s0_.is_hit AS is_hit_2, s0_.is_kit AS is_kit_3, s0_.is_out_of_stock AS is_out_of_stock_4, s0_.description AS description_5, s0_.sku AS sku_6 FROM shop_items s0_ WHERE s0_.catalog_id_id IN (?)) dctrn_result LIMIT 20
Parameters:
[
  5
]
17 0.44 ms
SELECT s0_.id AS id_0, s0_.title AS title_1, s0_.is_hit AS is_hit_2, s0_.is_kit AS is_kit_3, s0_.is_out_of_stock AS is_out_of_stock_4, s0_.description AS description_5, s0_.sku AS sku_6, s0_.catalog_id_id AS catalog_id_id_7 FROM shop_items s0_ WHERE s0_.catalog_id_id IN (?) AND s0_.id IN (?)
Parameters:
[
  5
  26
]
18 0.36 ms
SELECT t0.id AS id_1, t0.image AS image_2, t0.shop_item_id AS shop_item_id_3 FROM product_images t0 WHERE t0.shop_item_id = ?
Parameters:
[
  26
]
19 0.36 ms
SELECT t0.id AS id_1, t0.dose AS dose_2, t0.packs AS packs_3, t0.price AS price_4, t0.old_price AS old_price_5, t0.shop_item_id AS shop_item_id_6 FROM variants t0 WHERE t0.shop_item_id = ?
Parameters:
[
  26
]

Database Connections

Name Service
tenant doctrine.dbal.tenant_connection
default doctrine.dbal.default_connection

Entity Managers

Name Service
tenant doctrine.orm.tenant_entity_manager
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Entities Mapping

tenant entity manager

No loaded entities.

default entity manager

Class Mapping errors
App\Entity\Main\ShopItems
  • The association App\Entity\Main\ShopItems#catalogId refers to the inverse side field App\Entity\Main\Categories#id which is not defined as association.
  • The association App\Entity\Main\ShopItems#catalogId refers to the inverse side field App\Entity\Main\Categories#id which does not exist.
  • The mappings App\Entity\Main\ShopItems#images and App\Entity\Main\ProductImages#shopItem are inconsistent with each other.
  • The mappings App\Entity\Main\ShopItems#variants and App\Entity\Main\Variants#shopItem are inconsistent with each other.
  • The mappings App\Entity\Main\ShopItems#reviews and App\Entity\Main\Reviews#shopItem are inconsistent with each other.
App\Entity\Main\Categories No errors.
App\Entity\Main\ShopCart
  • The mappings App\Entity\Main\ShopCart#variant and App\Entity\Main\Variants#shopCarts are inconsistent with each other.
App\Entity\Main\Variants
  • The association App\Entity\Main\Variants#shopItem refers to the inverse side field App\Entity\Main\ShopItems#id which is not defined as association.
  • The association App\Entity\Main\Variants#shopItem refers to the inverse side field App\Entity\Main\ShopItems#id which does not exist.
  • The association App\Entity\Main\Variants#shopCarts refers to the owning side field App\Entity\Main\ShopCart#shopCarts which does not exist.
App\Entity\Main\FreeProducts No errors.
App\Entity\Main\ProductImages
  • The association App\Entity\Main\ProductImages#shopItem refers to the inverse side field App\Entity\Main\ShopItems#id which is not defined as association.
  • The association App\Entity\Main\ProductImages#shopItem refers to the inverse side field App\Entity\Main\ShopItems#id which does not exist.
App\Entity\Main\Reviews
  • The association App\Entity\Main\Reviews#shopItem refers to the inverse side field App\Entity\Main\ShopItems#id which is not defined as association.
  • The association App\Entity\Main\Reviews#shopItem refers to the inverse side field App\Entity\Main\ShopItems#id which does not exist.
App\Entity\Main\Pages No errors.