GET https://istanbuldiamonds.com/en/product/113

Query Metrics

21 Database Queries
12 Different statements
8.67 ms Query time
2 Invalid entities
2 Managed entities

Grouped Statements

Show all queries

Time Count Info
4.48 ms
(51.73%)
2
SELECT c.id as catid, cl.title as title FROM category c JOIN category_lang cl on c.id = cl.category_id WHERE cl.lang = 'en' AND c.parent_id = 3  AND c.status=1 ORDER BY cl.title ASC
Parameters:
[]
0.84 ms
(9.70%)
1
SELECT p0_.id AS id_0, p0_.pcode AS pcode_1, p0_.image AS image_2, p0_.price AS price_3, p0_.quantity AS quantity_4, p0_.metal AS metal_5, p0_.weight AS weight_6, p0_.user_id AS user_id_7, p0_.status AS status_8, p0_.campaign AS campaign_9, COALESCE(p1_.title, p2_.title) AS sclr_10, COALESCE(p1_.description, p2_.description) AS sclr_11, COALESCE(p1_.keywords, p2_.keywords) AS sclr_12, COALESCE(p1_.detail, p2_.detail) AS sclr_13, p0_.pcode AS pcode_14, p0_.image AS image_15, p0_.price AS price_16, p0_.quantity AS quantity_17, p0_.metal AS metal_18, p0_.id AS id_19, p0_.status AS status_20, p0_.weight AS weight_21, p0_.category_id AS category_id_22 FROM product p0_ LEFT JOIN product_lang p1_ ON p0_.id = p1_.product_id AND (p1_.lang = ?) LEFT JOIN product_lang p2_ ON p0_.id = p2_.product_id AND (p2_.lang = ?) WHERE p0_.id = ? LIMIT 1
Parameters:
[
  "en"
  "en"
  "113"
]
0.57 ms
(6.58%)
1
SELECT t0.id AS id_1, t0.product_id AS product_id_2, t0.stone AS stone_3, t0.size AS size_4, t0.quantity AS quantity_5, t0.color AS color_6, t0.clarity AS clarity_7, t0.shape AS shape_8 FROM product_stone t0 WHERE t0.product_id = ? ORDER BY t0.stone ASC, t0.shape ASC, t0.size DESC
Parameters:
[
  "113"
]
0.56 ms
(6.40%)
1
SELECT t0.id AS id_1, t0.image AS image_2, t0.title AS title_3, t0.product_id AS product_id_4 FROM image t0 WHERE t0.product_id = ?
Parameters:
[
  "113"
]
0.39 ms
(4.48%)
2
SELECT c.id as catid, cl.title as title FROM category c JOIN category_lang cl on c.id = cl.category_id WHERE cl.lang = 'en' AND c.parent_id is NULL AND c.status=1 ORDER BY cl.title ASC
Parameters:
[]
0.38 ms
(4.40%)
2
SELECT c.id as catid, cl.title as title FROM category c JOIN category_lang cl on c.id = cl.category_id WHERE cl.lang = 'en' AND c.parent_id = 13  AND c.status=1 ORDER BY cl.title ASC
Parameters:
[]
0.29 ms
(3.32%)
2
SELECT c.id as catid, cl.title as title FROM category c JOIN category_lang cl on c.id = cl.category_id WHERE cl.lang = 'en' AND c.parent_id = 23  AND c.status=1 ORDER BY cl.title ASC
Parameters:
[]
0.28 ms
(3.24%)
2
SELECT c.id as catid, cl.title as title FROM category c JOIN category_lang cl on c.id = cl.category_id WHERE cl.lang = 'en' AND c.parent_id = 7  AND c.status=1 ORDER BY cl.title ASC
Parameters:
[]
0.24 ms
(2.79%)
2
SELECT c.id as catid, cl.title as title FROM category c JOIN category_lang cl on c.id = cl.category_id WHERE cl.lang = 'en' AND c.parent_id = 11  AND c.status=1 ORDER BY cl.title ASC
Parameters:
[]
0.23 ms
(2.64%)
2
SELECT c.id as catid, cl.title as title FROM category c JOIN category_lang cl on c.id = cl.category_id WHERE cl.lang = 'en' AND c.parent_id = 12  AND c.status=1 ORDER BY cl.title ASC
Parameters:
[]
0.21 ms
(2.37%)
2
SELECT c.id as catid, cl.title as title FROM category c JOIN category_lang cl on c.id = cl.category_id WHERE cl.lang = 'en' AND c.parent_id = 1  AND c.status=1 ORDER BY cl.title ASC
Parameters:
[]
0.20 ms
(2.34%)
2
SELECT c.id as catid, cl.title as title FROM category c JOIN category_lang cl on c.id = cl.category_id WHERE cl.lang = 'en' AND c.parent_id = 2  AND c.status=1 ORDER BY cl.title 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\Product 1
App\Entity\Category 1

Entities Mapping

Class Mapping errors
App\Entity\Product
  • The association App\Entity\Product#translations refers to the owning side field App\Entity\ProductLang#product_id which does not exist.
  • The field App\Entity\Product#productLangs is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\ProductLang#product does not contain the required 'inversedBy: "productLangs"' attribute.
App\Entity\ProductLang No errors.
App\Entity\Category
  • The mappings App\Entity\Category#categoryLangs and App\Entity\CategoryLang#category are inconsistent with each other.
App\Entity\ProductImages No errors.
App\Entity\Image No errors.
App\Entity\ProductStone No errors.