Query Metrics
6
Database Queries
6
Different statements
334.08 ms
Query time
1
Invalid entities
Grouped Statements
| Time▼ | Count | Info |
|---|---|---|
|
114.59 ms (34.30%) |
1 |
select ifnull( c.label , 'Inconnue') as cat ,COALESCE(SUM(si.amount), 0) + COALESCE(SUM(sp.amount), 0) AS nb_vente from sales s left join sale_items si on s.id = si.sale_id left join sale_packs sp on s.id = sp.sale_id left join product p on p.id = si.product_id left join category c on c.id = p.category_id where s.deleted != 1 -- and si.costs is not null -- and si.count < 5000 and date_format(s.`date` , '%Y') = 2026 group by c.id
Parameters:
[] |
|
91.42 ms (27.37%) |
1 |
select date_format(s.`date` ,'%m') as mois ,COALESCE(SUM(si.amount), 0) + COALESCE(SUM(sp.amount), 0) AS ca , COALESCE(SUM(si.benef), 0) + COALESCE(SUM(sp.benef), 0) AS benef from sales s left join sale_items si on s.id = si.sale_id left join sale_packs sp on s.id = sp.sale_id where s.deleted != 1 and date_format(s.`date` , '%Y') = 2026 group by mois ORDER BY mois asc;
Parameters:
[] |
|
39.71 ms (11.89%) |
1 |
select count(distinct s.ID) from sales s where s.deleted != 1 and date_format(s.`date` , '%Y') = 2026
Parameters:
[] |
|
38.82 ms (11.62%) |
1 |
select date_format(s.`date` ,'%w') as day , COALESCE(SUM(si.amount), 0) + COALESCE(SUM(sp.amount), 0) AS ca , COALESCE(SUM(si.benef), 0) + COALESCE(SUM(sp.benef), 0) AS benef from sales s left join sale_items si on s.id = si.sale_id left join sale_packs sp on s.id = sp.sale_id where s.deleted != 1 and date_format(s.`date` , '%Y') = 2026 and date_format(s.`date` , '%U') = 15 group by day
Parameters:
[] |
|
36.47 ms (10.92%) |
1 |
select count(distinct s.ID) from sales s where date_format(s.`date` , '%Y') = 2026 and date_format(s.`date` , '%U') = 15
Parameters:
[] |
|
13.07 ms (3.91%) |
1 |
SELECT t0.id AS id_1, t0.label AS label_2, t0.code AS code_3, t0.creation_date AS creation_date_4 FROM shop t0
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\Sales | No errors. |
| App\Entity\Shop | No errors. |
| App\Entity\Stock | No errors. |
| App\Entity\Discount | No errors. |
| App\Entity\UserShop |
|