Query Metrics
1
Database Queries
1
Different statements
8615.40 ms
Query time
0
Invalid entities
Queries
| #▲ | Time | Info |
|---|---|---|
| 1 | 8615.40 ms |
SELECT * FROM ((SELECT `O`.`Order`, "Corrispettivo" as "Tipo", `O`.`Corrispettivo` as "Numero", SUM(IF(I.`Type` = "charge",1, 0)) as "Incassi", SUM(IF(I.`Type` = "refund",1, 0)) as "Rimborsi", `O`.`Payment Reference`, `O`.`Total`, `O`.`Payment Method`, `O`.`Created at` FROM `ordini` `O` LEFT JOIN `incassi` I ON (`O`.Order = I.`Order`) where (`O`.`Total` > 0.00) AND `O`.`Corrispettivo` <> "" GROUP BY `O`.`Order`) UNION (SELECT `O`.`Order`, "Fattura" as "Tipo", `O`.`Numero Fattura`, SUM(IF(I.`Type` = "charge",1, 0)) as "Incassi", SUM(IF(I.`Type` = "refund",1, 0)) as "Rimborsi", `O`.`Payment Reference`, `O`.`Total`, `O`.`Payment Method`, `O`.`Created at` FROM `ordini` `O` LEFT JOIN `incassi` I ON (`O`.Order = I.`Order`) where (`O`.`Total` > 0.00) AND `O`.`Numero Fattura` <> "" GROUP BY `O`.`Order` ) UNION (SELECT `O`.`Order`, "--" as "Tipo", `O`.`Numero Fattura`, SUM(IF(I.`Type` = "charge",1, 0)) as "Incassi", SUM(IF(I.`Type` = "refund",1, 0)) as "Rimborsi", `O`.`Payment Reference`, `O`.`Total`, `O`.`Payment Method`, `O`.`Created at` FROM `ordini` `O` LEFT JOIN `incassi` I ON (`O`.Order = I.`Order`) where (`O`.`Total` > 0.00) AND (`O`.`Numero Fattura` = "" AND `O`.`Corrispettivo` = "") GROUP BY `O`.`Order` ) ) X WHERE X.`Incassi` = 0 AND X.`Rimborsi` = 0 ORDER BY X.`Created at` DESC
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
No loaded entities.