Query Metrics
42
Database Queries
8
Different statements
214.21 ms
Query time
0
Invalid entities
Grouped Statements
| Time▼ | Count | Info |
|---|---|---|
|
97.60 ms (45.56%) |
1 |
SELECT DISTINCT p0_.id AS id_0, MAX(CASE WHEN r1_.count IS NULL THEN 0 ELSE 1 END) AS sclr_1, COALESCE(v2_.priority, 99999) AS sclr_2, COALESCE(v3_.priority, 99999) AS sclr_3, p0_.vendor AS vendor_4, p0_.model AS model_5 FROM product p0_ LEFT JOIN rest r1_ ON p0_.id = r1_.product_id AND (r1_.town = ?) LEFT JOIN vendor_priority v2_ ON (LOWER(v2_.vendor) = LOWER(p0_.vendor)) LEFT JOIN vendor_priority v3_ ON (LOWER(v3_.vendor) = LOWER(p0_.vendor || ' ' || p0_.model)) WHERE ((p0_.calculated_price BETWEEN ? AND ?) AND (p0_.available=true)) AND p0_.p_type IN ('1') GROUP BY p0_.id, v2_.priority, v3_.priority ORDER BY sclr_1 DESC, sclr_2 ASC, sclr_3 ASC, p0_.vendor ASC, p0_.model ASC LIMIT 32 OFFSET 96
Parameters:
[ "samara" 1500 162270 ] |
|
76.74 ms (35.83%) |
1 |
SELECT count(DISTINCT p0_.id) AS sclr_0 FROM product p0_ LEFT JOIN rest r1_ ON p0_.id = r1_.product_id AND (r1_.town = ?) LEFT JOIN vendor_priority v2_ ON (LOWER(v2_.vendor) = LOWER(p0_.vendor)) LEFT JOIN vendor_priority v3_ ON (LOWER(v3_.vendor) = LOWER(p0_.vendor || ' ' || p0_.model)) WHERE ((p0_.calculated_price BETWEEN ? AND ?) AND (p0_.available=true)) AND p0_.p_type IN ('1') GROUP BY p0_.id, v2_.priority, v3_.priority
Parameters:
[ "samara" 1500 162270 ] |
|
24.43 ms (11.41%) |
1 |
SELECT p0_.id AS id_0, p0_.vendor AS vendor_1, p0_.model AS model_2, p0_.image AS image_3, p0_.image_name_opt AS image_name_opt_4, p0_.sale AS sale_5, p0_.hit AS hit_6, p0_.weight AS weight_7, p0_.width AS width_8, p0_.diameter AS diameter_9, p0_.int_code AS int_code_10, p0_.vendor_code AS vendor_code_11, p0_.updated_at AS updated_at_12, p0_.available AS available_13, p0_.calculated_price AS calculated_price_14, p0_.calculated_price_ext AS calculated_price_ext_15, p0_.calculated_external AS calculated_external_16, p0_.season AS season_17, p0_.studded AS studded_18, p0_.height AS height_19, p0_."load" AS load_20, p0_.speed AS speed_21, p0_.design AS design_22, p0_.runflat AS runflat_23, p0_.usa AS usa_24, p0_.screws AS screws_25, p0_.hole AS hole_26, p0_.pcd AS pcd_27, p0_.et AS et_28, p0_.color AS color_29, p0_.stamped AS stamped_30, p0_.calculated_pcd AS calculated_pcd_31, p0_.calculated_count AS calculated_count_32, p0_.slug AS slug_33, p0_.p_type AS p_type_34 FROM product p0_ WHERE ((p0_.sale = true) AND (p0_.available=true)) AND p0_.p_type IN ('1')
Parameters:
[] |
|
10.28 ms (4.80%) |
32 |
SELECT t0.id AS id_1, t0.external AS external_2, t0.price AS price_3, t0.town AS town_4, t0.count AS count_5, t0.product_id AS product_id_6, t0.store_id AS store_id_7 FROM rest t0 WHERE t0.product_id = ?
Parameters:
[
"S_[IKON TYRES (NOKIAN TYRES)]_T731608"
]
|
|
2.74 ms (1.28%) |
1 |
SELECT p0_.id AS id_0, p0_.vendor AS vendor_1, p0_.model AS model_2, p0_.image AS image_3, p0_.image_name_opt AS image_name_opt_4, p0_.sale AS sale_5, p0_.hit AS hit_6, p0_.weight AS weight_7, p0_.width AS width_8, p0_.diameter AS diameter_9, p0_.int_code AS int_code_10, p0_.vendor_code AS vendor_code_11, p0_.updated_at AS updated_at_12, p0_.available AS available_13, p0_.calculated_price AS calculated_price_14, p0_.calculated_price_ext AS calculated_price_ext_15, p0_.calculated_external AS calculated_external_16, p0_.season AS season_17, p0_.studded AS studded_18, p0_.height AS height_19, p0_."load" AS load_20, p0_.speed AS speed_21, p0_.design AS design_22, p0_.runflat AS runflat_23, p0_.usa AS usa_24, p0_.screws AS screws_25, p0_.hole AS hole_26, p0_.pcd AS pcd_27, p0_.et AS et_28, p0_.color AS color_29, p0_.stamped AS stamped_30, p0_.calculated_pcd AS calculated_pcd_31, p0_.calculated_count AS calculated_count_32, p0_.slug AS slug_33, MAX(CASE WHEN r1_.count IS NULL THEN 0 ELSE 1 END) AS sclr_34, COALESCE(v2_.priority, 99999) AS sclr_35, COALESCE(v3_.priority, 99999) AS sclr_36, p0_.p_type AS p_type_37 FROM product p0_ LEFT JOIN rest r1_ ON p0_.id = r1_.product_id AND (r1_.town = ?) LEFT JOIN vendor_priority v2_ ON (LOWER(v2_.vendor) = LOWER(p0_.vendor)) LEFT JOIN vendor_priority v3_ ON (LOWER(v3_.vendor) = LOWER(p0_.vendor || ' ' || p0_.model)) WHERE ((p0_.calculated_price BETWEEN ? AND ? AND p0_.id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) AND (p0_.available=true)) AND p0_.p_type IN ('1') GROUP BY p0_.id, v2_.priority, v3_.priority ORDER BY sclr_34 DESC, sclr_35 ASC, sclr_36 ASC, p0_.vendor ASC, p0_.model ASC
Parameters:
[ "samara" 1500 162270 "S_[IKON TYRES (NOKIAN TYRES)]_T731608" "S_[IKON TYRES (NOKIAN TYRES)]_T730628" "S_[IKON TYRES (NOKIAN TYRES)]_T730658" "S_[IKON TYRES (NOKIAN TYRES)]_T430530" "S_[IKON TYRES (NOKIAN TYRES)]_T430537" "S_[IKON TYRES (NOKIAN TYRES)]_T430549" "S_[IKON TYRES (NOKIAN TYRES)]_T430554" "S_[IKON TYRES (NOKIAN TYRES)]_T430556" "S_[IKON TYRES (NOKIAN TYRES)]_T430574" "S_[IKON TYRES (NOKIAN TYRES)]_T432277" "S_[IKON TYRES (NOKIAN TYRES)]_T432281" "S_[IKON TYRES (NOKIAN TYRES)]_T432285" "S_[IKON TYRES (NOKIAN TYRES)]_T431443" "S_[IKON TYRES (NOKIAN TYRES)]_T431445" "S_[IKON TYRES (NOKIAN TYRES)]_T431446" "S_[IKON TYRES (NOKIAN TYRES)]_T431453" "S_[IKON TYRES (NOKIAN TYRES)]_TS32684" "S_[IKON TYRES (NOKIAN TYRES)]_TS32685" "S_[IKON TYRES (NOKIAN TYRES)]_TS32637" "S_[IKON TYRES (NOKIAN TYRES)]_TS32691" "S_[IKON TYRES (NOKIAN TYRES)]_TS31826" "S_[IKON TYRES (NOKIAN TYRES)]_TS31845" "S_[IKON TYRES (NOKIAN TYRES)]_TS32100" "S_[IKON TYRES (NOKIAN TYRES)]_TS32224" "S_[IKON TYRES (NOKIAN TYRES)]_TS32276" "S_[IKON TYRES (NOKIAN TYRES)]_TS32209" "S_[IKON TYRES (NOKIAN TYRES)]_TS32210" "S_[IKON TYRES (NOKIAN TYRES)]_TS32212" "S_[IKON TYRES (NOKIAN TYRES)]_TS32228" "S_[IKON TYRES (NOKIAN TYRES)]_TS32235" "S_[IKON TYRES (NOKIAN TYRES)]_TS32245" "S_[IKON TYRES (NOKIAN TYRES)]_TS32260" ] |
|
0.86 ms (0.40%) |
3 |
SELECT t0_.id AS id_0, t0_.town AS town_1, t0_.name AS name_2, t0_.seo_name AS seo_name_3 FROM town t0_ ORDER BY t0_.id ASC
Parameters:
[] |
|
0.80 ms (0.37%) |
2 |
SELECT t0.id AS id_1, t0.town AS town_2, t0.name AS name_3, t0.seo_name AS seo_name_4 FROM town t0 WHERE t0.town = ? LIMIT 1
Parameters:
[
"samara"
]
|
|
0.77 ms (0.36%) |
1 |
SELECT i0_.id AS id_0, i0_.created_at AS created_at_1, i0_.title AS title_2, i0_.text AS text_3, i0_.image AS image_4, i0_.description_add AS description_add_5, i0_.keywords AS keywords_6, i0_.slug AS slug_7, i0_.expires_after AS expires_after_8, i0_.show_as_action AS show_as_action_9, i0_.show_as_banner AS show_as_banner_10, i0_.banner_priority AS banner_priority_11, i0_.banner_url AS banner_url_12, i0_.url AS url_13, i0_.erid AS erid_14, i0_.ib_type AS ib_type_15, i0_.group_id AS group_id_16 FROM info_block i0_ WHERE (i0_.show_as_banner = true AND i0_.created_at <= CURRENT_DATE AND i0_.expires_after >= CURRENT_DATE) AND i0_.ib_type IN ('2') ORDER BY i0_.banner_priority 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.
Entities Mapping
| Class | Mapping errors |
|---|---|
| App\Entity\Product | No errors. |
| App\Entity\Tire | No errors. |
| App\Entity\Disk | No errors. |
| App\Entity\Order | No errors. |
| App\Entity\Rest | No errors. |
| App\Entity\VendorPriority | No errors. |
| App\Entity\Town | No errors. |
| App\Entity\Store | No errors. |
| App\Entity\InfoBlock | No errors. |
| App\Entity\Action | No errors. |
| App\Entity\InfoBlockGroup | No errors. |