Query Metrics
6
Database Queries
6
Different statements
334.08 ms
Query time
1
Invalid entities
Queries
| #▲ | Time | Info |
|---|---|---|
| 1 | 13.07 ms |
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:
[] |
| 2 | 39.71 ms |
select count(distinct s.ID) from sales s where s.deleted != 1 and date_format(s.`date` , '%Y') = 2026
Parameters:
[] |
| 3 | 36.47 ms |
select count(distinct s.ID) from sales s where date_format(s.`date` , '%Y') = 2026 and date_format(s.`date` , '%U') = 15
Parameters:
[] |
| 4 | 91.42 ms |
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:
[] |
| 5 | 38.82 ms |
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:
[] |
| 6 | 114.59 ms |
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:
[] |
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 |
|