GET https://kaisr-interface.dss-solutions.fr/products?ean=8808563545035

Query Metrics

2 Database Queries
2 Different statements
5237.21 ms Query time
0 Invalid entities
1 Managed entities

Queries

Group similar statements

# Time Info
1 0.95 ms
SELECT t0.id AS id_1, t0.email AS email_2, t0.roles AS roles_3, t0.password AS password_4 FROM "user" t0 WHERE t0.id = ?
Parameters:
[
  1
]
2 5236.26 ms
SELECT p.id, p.ean13 AS ean, p.name AS product_name, s.company_name as supplier, 
                            (select supplier_stock from supplier_product_stock_timeline where product_id = p.id and supplier_id = s.id order by id desc limit 1) as qty,
                            (select supplier_price from supplier_product_price_timeline where product_id = p.id and supplier_id = s.id order by id desc limit 1) as price 
                        FROM 
                            product p
                        JOIN 
                            supplier_product sp ON sp.product_id = p.id
                        JOIN 
                            supplier s ON sp.supplier_id = s.id
                        JOIN (
                            SELECT DISTINCT ON (product_id)
                                product_id, supplier_price
                            FROM 
                                supplier_product_price_timeline
                            ORDER BY 
                                product_id, id DESC
                        ) AS spp ON spp.product_id = p.id
                        join (
                            select distinct on (product_id)
                                product_id, supplier_stock
                            from 
                                supplier_product_stock_timeline
                            order by product_id, id desc
                        ) as sps on sps.product_id = p.id
                        WHERE p.ean13= ?
Parameters:
[
  "8808563545035"
]

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\User 1

Entities Mapping

Class Mapping errors
App\Entity\User No errors.