GET https://pewneopony.pl/api/eprel/tyres/508495

Query Metrics

3 Database Queries
3 Different statements
32.30 ms Query time
0 Invalid entities
0 Managed entities

Queries

Group similar statements

# Time Info
1 30.62 ms
SELECT et.*, COALESCE(ts.code, CASE
            WHEN LOWER(CONCAT_WS(' ', et.commercial_name, et.model_identifier, et.tyre_designation)) REGEXP 'all[[:space:]]*season|allseason|4[[:space:]]*season|4season|[[:<:]]as[[:>:]]|calorocz|ca[łl]orocz|wielosezon' THEN 'allseason'
            WHEN et.ice_tyre = 1 OR et.severe_snow_tyre = 1 THEN 'winter'
            ELSE 'summer'
        END) AS season_code
             FROM eprel_tyres et
             LEFT JOIN tyre_products tp ON tp.eprel_registration_number = et.eprel_registration_number
             LEFT JOIN tyre_seasons ts ON ts.id = tp.season_id
             WHERE et.eprel_registration_number = ?
             LIMIT 1
Parameters:
[
  "508495"
]
2 0.63 ms
SELECT
                lp.id AS latex_product_id,
                lp.supplier_index,
                lp.product_code,
                lp.name AS product_name,
                lp.manufacturer,
                lp.tread_name,
                lp.width,
                lp.profile,
                lp.diameter,
                lp.load_index,
                lp.speed_index,
                lp.enabled,
                lp.qty_reported,
                ph.id AS photo_id,
                ph.file_name,
                ph.remote_path,
                ph.local_path,
                ph.sort_order,
                ph.is_primary,
                ph.source
             FROM latex_products lp
             INNER JOIN latex_product_photos ph ON ph.product_id = lp.id
             WHERE lp.eprel_code = ?
               AND ph.local_path IS NOT NULL
               AND ph.local_path <> ''
             ORDER BY lp.enabled DESC, lp.qty_reported DESC, lp.id ASC, ph.is_primary DESC, ph.sort_order ASC, ph.id ASC
Parameters:
[
  "508495"
]
3 1.05 ms
SELECT
                icp.id AS inter_cars_product_id,
                icp.supplier_index,
                icp.catalog_index,
                icp.article_number,
                icp.tec_doc_number,
                icp.brand,
                icp.short_description AS product_name,
                icp.description,
                icp.enabled,
                icp.quote_status,
                ph.id AS photo_id,
                ph.file_name,
                ph.remote_path,
                ph.local_path,
                ph.sort_order,
                ph.is_primary,
                ph.source
             FROM eprel_tyres et
             INNER JOIN inter_cars_products icp ON icp.eprel_tyre_id = et.id
             INNER JOIN inter_cars_product_photos ph ON ph.product_id = icp.id
             WHERE et.eprel_registration_number = ?
               AND ph.local_path IS NOT NULL
               AND ph.local_path <> ''
             ORDER BY icp.enabled DESC, icp.id ASC, ph.is_primary DESC, ph.sort_order ASC, ph.id ASC
Parameters:
[
  "508495"
]

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

Entities Mapping

No loaded entities.