GET https://www.stokuznecov.ru/diski/filter?page=621

Query Metrics

5 Database Queries
4 Different statements
314.75 ms Query time
0 Invalid entities

Queries

Group similar statements

# Time Info
1 147.02 ms
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 ('2') GROUP BY p0_.id, v2_.priority, v3_.priority
Parameters:
[
  "www"
  610
  137500
]
2 166.67 ms
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 ('2') 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 19840
Parameters:
[
  "www"
  610
  137500
]
3 0.45 ms
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:
[
  "www"
]
4 0.24 ms
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:
[
  "www"
]
5 0.37 ms
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:
[]

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.