Query Metrics
220
Database Queries
34
Different statements
2172.64 ms
Query time
3
Invalid entities
Queries
| #▲ | Time | Info |
|---|---|---|
| 1 | 0.43 ms |
SELECT t0.id AS id_1, t0.email AS email_2, t0.nom AS nom_3, t0.prenom AS prenom_4, t0.roles AS roles_5, t0.password AS password_6, t0.internal_ref AS internal_ref_7, t0.origin_id AS origin_id_8, t0.parent_origin_id AS parent_origin_id_9, t0.picto AS picto_10, t0.parent_id AS parent_id_11, t0.point_of_sale_id AS point_of_sale_id_12, t0.role_app_id AS role_app_id_13, t0.organisation_id AS organisation_id_14 FROM user t0 WHERE t0.email = ? LIMIT 1
Parameters:
[
"liteyear@nomad.fr"
]
|
| 2 | 0.63 ms |
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.code AS code_4, t0.operator_id AS operator_id_5, t0.organisation_id AS organisation_id_6 FROM point_of_sale t0 WHERE t0.id = ? LIMIT 1
Parameters:
[
"4"
]
|
| 3 | 0.42 ms |
SELECT t0.id AS id_1, t0.code AS code_2, t0.nom AS nom_3, t0.description AS description_4, t0.operator_id AS operator_id_5 FROM etat_production t0 WHERE t0.nom = ? LIMIT 1
Parameters:
[
"Racco KO"
]
|
| 4 | 0.37 ms |
SELECT t0.id AS id_1, t0.code AS code_2, t0.nom AS nom_3, t0.description AS description_4, t0.operator_id AS operator_id_5 FROM etat_production t0 WHERE t0.nom = ? LIMIT 1
Parameters:
[
"Raccorde"
]
|
| 5 | 0.42 ms |
SELECT AVG(s0_.note_satisfaction) AS sclr_0 FROM satisfaction_client s0_ LEFT JOIN production p1_ ON s0_.production_id = p1_.id LEFT JOIN cluster c2_ ON p1_.cluster_id = c2_.id WHERE MONTH(s0_.date_contrat) = ? AND YEAR(s0_.date_contrat) = ? AND s0_.cod_poin_vent = ? AND p1_.category_id IN (?, ?, ?)
Parameters:
[ 1 2026 "1053520" 1 2 3 ] |
| 6 | 0.40 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.category_id IN (?, ?, ?) ORDER BY sclr_0 DESC
Parameters:
[ 4 1 2026 1 2 3 ] |
| 7 | 0.39 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444) ORDER BY sclr_0 DESC
Parameters:
[ 4 1 2026 ] |
| 8 | 0.42 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.date_racc IS NOT NULL AND (p0_.category_id IN (1, 3) OR (p0_.category_id IN (31) AND p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444))) ORDER BY sclr_0 DESC
Parameters:
[ 4 1 2026 ] |
| 9 | 0.41 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.date_racc IS NOT NULL AND (p0_.category_id IN (1, 2, 3) OR p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444)) ORDER BY sclr_0 DESC
Parameters:
[ 4 1 2026 ] |
| 10 | 0.48 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.category_id IN (?, ?, ?) AND p0_.category_id IN (31, 32, 33, 48) AND p0_.date_racc IS NOT NULL AND p0_.product_id NOT IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444) ORDER BY sclr_0 DESC
Parameters:
[ 4 1 2026 31 32 33 ] |
| 11 | 0.42 ms |
SELECT COUNT(DISTINCT u0_.id) AS sclr_0 FROM production p1_ LEFT JOIN cluster c2_ ON p1_.cluster_id = c2_.id LEFT JOIN point_of_sale p3_ ON p1_.point_of_sale_id = p3_.id LEFT JOIN user u0_ ON p1_.seller_id = u0_.id WHERE p1_.point_of_sale_id = ? AND MONTH(p1_.date_vente_valid_b) = ? AND YEAR(p1_.date_vente_valid_b) = ? AND p1_.category_id IN (?, ?, ?)
Parameters:
[ 4 1 2026 1 2 3 ] |
| 12 | 0.41 ms |
SELECT COUNT(p0_.id) / NULLIF(COUNT(DISTINCT u1_.id), 0) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p2_ ON p0_.point_of_sale_id = p2_.id LEFT JOIN cluster c3_ ON p0_.cluster_id = c3_.id LEFT JOIN user u1_ ON p0_.seller_id = u1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 1 2026 1 2 3 ] |
| 13 | 0.43 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.etat_id = ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 1 2026 2 1 2 3 ] |
| 14 | 0.40 ms |
SELECT SUM(n0_.vv) AS sclr_0 FROM nmd_objectif_clusters n0_ WHERE n0_.cpv = ? AND n0_.mois = ? AND n0_.year = ?
Parameters:
[ "1053520" 1 2026 ] |
| 15 | 19.33 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 1 2026 "2026-02-10 10:37:39" 1 2 3 ] |
| 16 | 18.61 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 1 "annee" => 2026 ] |
| 17 | 0.61 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 1 2026 "2026-02-10 10:37:39" 1 2 3 ] |
| 18 | 18.31 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 1 "annee" => 2026 ] |
| 19 | 0.59 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 1 2026 "2026-02-10 10:37:39" 1 2 3 ] |
| 20 | 18.32 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 1 "annee" => 2026 ] |
| 21 | 0.60 ms |
SELECT COUNT(DISTINCT result.titulaire_email) AS total_vente FROM ( SELECT p1.titulaire_email FROM production p1 LEFT JOIN cluster c1 ON c1.id=p1.cluster_id WHERE p1.category_id = :cat1 AND p1.point_of_sale_id = :pointOfSale AND MONTH(p1.date_cmd_a) = :mois AND YEAR(p1.date_cmd_a) = :annee AND p1.titulaire_email IN ( SELECT DISTINCT p_sub1.titulaire_email FROM production p_sub1 WHERE p_sub1.category_id = 1 AND p_sub1.point_of_sale_id = :pointOfSale AND MONTH(p_sub1.date_cmd_a) = :mois AND YEAR(p_sub1.date_cmd_a) = :annee ) UNION SELECT p2.titulaire_email FROM production p2 LEFT JOIN cluster c2 ON c2.id=p2.cluster_id WHERE p2.category_id = :cat2 AND p2.point_of_sale_id = :pointOfSale AND MONTH(p2.date_cmd_a) = :mois AND YEAR(p2.date_cmd_a) = :annee AND p2.titulaire_email IN ( SELECT DISTINCT p_sub2.titulaire_email FROM production p_sub2 WHERE p_sub2.category_id IN (1, 3) AND p_sub2.point_of_sale_id = :pointOfSale AND MONTH(p_sub2.date_cmd_a) = :mois AND YEAR(p_sub2.date_cmd_a) = :annee ) ) AS result
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 "cat1" => 32 "cat2" => 31 ] |
| 22 | 0.42 ms |
SELECT COUNT(DISTINCT p0_.titulaire_email) AS sclr_0 FROM production p0_ LEFT JOIN cluster c1_ ON p0_.cluster_id = c1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.fixe_chainage IS NOT NULL AND p0_.category_id IN (31, 32, 33)
Parameters:
[ 4 1 2026 ] |
| 23 | 0.41 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND (p.category_id NOT IN (2, 31, 32, 33,48) OR p.product_id IN(150,262,264,266,334,335,341,344,345,379)) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 ] |
| 24 | 0.40 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND (p.category_id NOT IN (2, 31, 32, 33,48) OR p.product_id IN(150,262,264,266,334,335,341,344,345,379)) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 ] |
| 25 | 0.37 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND ( p.category_id IN(1,3) OR ( p.category_id IN(31) AND p.product_id IN(150, 262, 264, 266, 334, 335, 341, 344, 345, 379,441,442,443,444) ) ) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 ] |
| 26 | 0.39 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc , p.date_resiliation) > -31 AND p.category_id IN(31,32,33,48) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 ] |
| 27 | 0.36 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc , p.date_resiliation) > -31 AND p.category_id IN(31,32,33,48) AND p.product_id NOT IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379,441,442,443,444) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 ] |
| 28 | 0.35 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (SELECT DISTINCT(id) FROM category_product WHERE parent_category_id =4) AND ( p.fixe_chainage IS NOT NULL OR p.fixe_autre IS NOT NULL ) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 ] |
| 29 | 0.36 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (SELECT DISTINCT(id) FROM category_product WHERE parent_category_id =4) AND ( p.fixe_chainage IS NOT NULL ) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 ] |
| 30 | 0.34 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id NOT IN (2) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 ] |
| 31 | 0.37 ms |
SELECT COUNT(p.id) AS total_vente, p.identity_ctrl FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.identity_ctrl IS NOT NULL AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee GROUP BY p.identity_ctrl
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 ] |
| 32 | 0.37 ms |
SELECT COUNT(DISTINCT p0_.titulaire_email) AS sclr_0 FROM production p0_ LEFT JOIN cluster c1_ ON p0_.cluster_id = c1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ?
Parameters:
[ 4 1 2026 ] |
| 33 | 0.39 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total, WEEK(p.date_cmd_a,3) AS semaine FROM production p LEFT JOIN cluster c ON c.id = p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.fixe_chainage IS NOT NULL AND p.category_id IN (:cat0,:cat1,:cat2) GROUP BY semaine
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 "cat0" => 31 "cat1" => 32 "cat2" => 33 ] |
| 34 | 0.41 ms |
SELECT COUNT(DISTINCT result.titulaire_email) AS total, WEEK(result.date_cmd_a, 3) AS semaine FROM ( -- Partie 1 : Catégorie 32 avec emails en catégorie 1 SELECT p1.titulaire_email, p1.date_cmd_a FROM production p1 LEFT JOIN cluster c1 ON p1.cluster_id = c1.id WHERE p1.category_id = :cat1 AND p1.point_of_sale_id = :pointOfSale AND MONTH(p1.date_cmd_a) = :mois AND YEAR(p1.date_cmd_a) = :annee AND p1.titulaire_email IN ( SELECT DISTINCT p_sub1.titulaire_email FROM production p_sub1 WHERE p_sub1.category_id = 1 AND p_sub1.point_of_sale_id = :pointOfSale AND MONTH(p_sub1.date_cmd_a) = :mois AND YEAR(p_sub1.date_cmd_a) = :annee ) UNION -- Partie 2 : Catégorie 31 avec emails en catégorie 1 ou 3 SELECT p2.titulaire_email, p2.date_cmd_a FROM production p2 LEFT JOIN cluster c2 ON p2.cluster_id = c2.id WHERE p2.category_id = :cat2 AND p2.point_of_sale_id = :pointOfSale AND MONTH(p2.date_cmd_a) = :mois AND YEAR(p2.date_cmd_a) = :annee AND p2.titulaire_email IN ( SELECT DISTINCT p_sub2.titulaire_email FROM production p_sub2 WHERE p_sub2.category_id IN (1, 3) AND p_sub2.point_of_sale_id = :pointOfSale AND MONTH(p_sub2.date_cmd_a) = :mois AND YEAR(p_sub2.date_cmd_a) = :annee ) ) AS result GROUP BY WEEK(result.date_cmd_a, 3) ORDER BY semaine
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 "cat1" => 32 "cat2" => 31 ] |
| 35 | 0.36 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.portabilite = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 "opt" => "OUI" ] |
| 36 | 0.34 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_saisie_commande = :opt AND p.prise_existante_commande = :opt2
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 "opt" => "NON" "opt2" => "OUI" ] |
| 37 | 0.33 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_saisie_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 "opt" => "OUI" ] |
| 38 | 0.33 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_existante_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 "opt" => "NON" ] |
| 39 | 0.34 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_existante_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 1 "annee" => 2026 "opt" => "OUI" ] |
| 40 | 0.35 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.category_id IN (?, ?) ORDER BY sclr_0 DESC
Parameters:
[ 4 1 2026 1 3 ] |
| 41 | 2.42 ms |
SELECT AVG(s0_.note_satisfaction) AS sclr_0 FROM satisfaction_client s0_ LEFT JOIN production p1_ ON s0_.production_id = p1_.id LEFT JOIN cluster c2_ ON p1_.cluster_id = c2_.id WHERE MONTH(s0_.date_contrat) = ? AND YEAR(s0_.date_contrat) = ? AND s0_.cod_poin_vent = ? AND p1_.category_id IN (?, ?, ?)
Parameters:
[ 12 2025 "1053520" 1 2 3 ] |
| 42 | 18.99 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.category_id IN (?, ?, ?) ORDER BY sclr_0 DESC
Parameters:
[ 4 12 2025 1 2 3 ] |
| 43 | 2.80 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444) ORDER BY sclr_0 DESC
Parameters:
[ 4 12 2025 ] |
| 44 | 17.66 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.date_racc IS NOT NULL AND (p0_.category_id IN (1, 3) OR (p0_.category_id IN (31) AND p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444))) ORDER BY sclr_0 DESC
Parameters:
[ 4 12 2025 ] |
| 45 | 17.16 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.date_racc IS NOT NULL AND (p0_.category_id IN (1, 2, 3) OR p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444)) ORDER BY sclr_0 DESC
Parameters:
[ 4 12 2025 ] |
| 46 | 16.89 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.category_id IN (?, ?, ?) AND p0_.category_id IN (31, 32, 33, 48) AND p0_.date_racc IS NOT NULL AND p0_.product_id NOT IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444) ORDER BY sclr_0 DESC
Parameters:
[ 4 12 2025 31 32 33 ] |
| 47 | 18.92 ms |
SELECT COUNT(DISTINCT u0_.id) AS sclr_0 FROM production p1_ LEFT JOIN cluster c2_ ON p1_.cluster_id = c2_.id LEFT JOIN point_of_sale p3_ ON p1_.point_of_sale_id = p3_.id LEFT JOIN user u0_ ON p1_.seller_id = u0_.id WHERE p1_.point_of_sale_id = ? AND MONTH(p1_.date_vente_valid_b) = ? AND YEAR(p1_.date_vente_valid_b) = ? AND p1_.category_id IN (?, ?, ?)
Parameters:
[ 4 12 2025 1 2 3 ] |
| 48 | 19.14 ms |
SELECT COUNT(p0_.id) / NULLIF(COUNT(DISTINCT u1_.id), 0) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p2_ ON p0_.point_of_sale_id = p2_.id LEFT JOIN cluster c3_ ON p0_.cluster_id = c3_.id LEFT JOIN user u1_ ON p0_.seller_id = u1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 12 2025 1 2 3 ] |
| 49 | 15.64 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.etat_id = ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 12 2025 2 1 2 3 ] |
| 50 | 2.50 ms |
SELECT SUM(n0_.vv) AS sclr_0 FROM nmd_objectif_clusters n0_ WHERE n0_.cpv = ? AND n0_.mois = ? AND n0_.year = ?
Parameters:
[ "1053520" 12 2025 ] |
| 51 | 18.85 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 12 2025 "2026-02-10 10:37:39" 1 2 3 ] |
| 52 | 18.07 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 12 "annee" => 2025 ] |
| 53 | 0.48 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 12 2025 "2026-02-10 10:37:39" 1 2 3 ] |
| 54 | 18.55 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 12 "annee" => 2025 ] |
| 55 | 0.52 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 12 2025 "2026-02-10 10:37:39" 1 2 3 ] |
| 56 | 18.47 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 12 "annee" => 2025 ] |
| 57 | 27.64 ms |
SELECT COUNT(DISTINCT result.titulaire_email) AS total_vente FROM ( SELECT p1.titulaire_email FROM production p1 LEFT JOIN cluster c1 ON c1.id=p1.cluster_id WHERE p1.category_id = :cat1 AND p1.point_of_sale_id = :pointOfSale AND MONTH(p1.date_cmd_a) = :mois AND YEAR(p1.date_cmd_a) = :annee AND p1.titulaire_email IN ( SELECT DISTINCT p_sub1.titulaire_email FROM production p_sub1 WHERE p_sub1.category_id = 1 AND p_sub1.point_of_sale_id = :pointOfSale AND MONTH(p_sub1.date_cmd_a) = :mois AND YEAR(p_sub1.date_cmd_a) = :annee ) UNION SELECT p2.titulaire_email FROM production p2 LEFT JOIN cluster c2 ON c2.id=p2.cluster_id WHERE p2.category_id = :cat2 AND p2.point_of_sale_id = :pointOfSale AND MONTH(p2.date_cmd_a) = :mois AND YEAR(p2.date_cmd_a) = :annee AND p2.titulaire_email IN ( SELECT DISTINCT p_sub2.titulaire_email FROM production p_sub2 WHERE p_sub2.category_id IN (1, 3) AND p_sub2.point_of_sale_id = :pointOfSale AND MONTH(p_sub2.date_cmd_a) = :mois AND YEAR(p_sub2.date_cmd_a) = :annee ) ) AS result
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 "cat1" => 32 "cat2" => 31 ] |
| 58 | 6.92 ms |
SELECT COUNT(DISTINCT p0_.titulaire_email) AS sclr_0 FROM production p0_ LEFT JOIN cluster c1_ ON p0_.cluster_id = c1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.fixe_chainage IS NOT NULL AND p0_.category_id IN (31, 32, 33)
Parameters:
[ 4 12 2025 ] |
| 59 | 7.09 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND (p.category_id NOT IN (2, 31, 32, 33,48) OR p.product_id IN(150,262,264,266,334,335,341,344,345,379)) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 ] |
| 60 | 6.68 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND (p.category_id NOT IN (2, 31, 32, 33,48) OR p.product_id IN(150,262,264,266,334,335,341,344,345,379)) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 ] |
| 61 | 6.57 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND ( p.category_id IN(1,3) OR ( p.category_id IN(31) AND p.product_id IN(150, 262, 264, 266, 334, 335, 341, 344, 345, 379,441,442,443,444) ) ) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 ] |
| 62 | 6.24 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc , p.date_resiliation) > -31 AND p.category_id IN(31,32,33,48) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 ] |
| 63 | 6.61 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc , p.date_resiliation) > -31 AND p.category_id IN(31,32,33,48) AND p.product_id NOT IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379,441,442,443,444) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 ] |
| 64 | 13.15 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (SELECT DISTINCT(id) FROM category_product WHERE parent_category_id =4) AND ( p.fixe_chainage IS NOT NULL OR p.fixe_autre IS NOT NULL ) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 ] |
| 65 | 11.73 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (SELECT DISTINCT(id) FROM category_product WHERE parent_category_id =4) AND ( p.fixe_chainage IS NOT NULL ) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 ] |
| 66 | 8.35 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id NOT IN (2) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 ] |
| 67 | 19.41 ms |
SELECT COUNT(p.id) AS total_vente, p.identity_ctrl FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.identity_ctrl IS NOT NULL AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee GROUP BY p.identity_ctrl
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 ] |
| 68 | 8.86 ms |
SELECT COUNT(DISTINCT p0_.titulaire_email) AS sclr_0 FROM production p0_ LEFT JOIN cluster c1_ ON p0_.cluster_id = c1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ?
Parameters:
[ 4 12 2025 ] |
| 69 | 8.00 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total, WEEK(p.date_cmd_a,3) AS semaine FROM production p LEFT JOIN cluster c ON c.id = p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.fixe_chainage IS NOT NULL AND p.category_id IN (:cat0,:cat1,:cat2) GROUP BY semaine
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 "cat0" => 31 "cat1" => 32 "cat2" => 33 ] |
| 70 | 27.11 ms |
SELECT COUNT(DISTINCT result.titulaire_email) AS total, WEEK(result.date_cmd_a, 3) AS semaine FROM ( -- Partie 1 : Catégorie 32 avec emails en catégorie 1 SELECT p1.titulaire_email, p1.date_cmd_a FROM production p1 LEFT JOIN cluster c1 ON p1.cluster_id = c1.id WHERE p1.category_id = :cat1 AND p1.point_of_sale_id = :pointOfSale AND MONTH(p1.date_cmd_a) = :mois AND YEAR(p1.date_cmd_a) = :annee AND p1.titulaire_email IN ( SELECT DISTINCT p_sub1.titulaire_email FROM production p_sub1 WHERE p_sub1.category_id = 1 AND p_sub1.point_of_sale_id = :pointOfSale AND MONTH(p_sub1.date_cmd_a) = :mois AND YEAR(p_sub1.date_cmd_a) = :annee ) UNION -- Partie 2 : Catégorie 31 avec emails en catégorie 1 ou 3 SELECT p2.titulaire_email, p2.date_cmd_a FROM production p2 LEFT JOIN cluster c2 ON p2.cluster_id = c2.id WHERE p2.category_id = :cat2 AND p2.point_of_sale_id = :pointOfSale AND MONTH(p2.date_cmd_a) = :mois AND YEAR(p2.date_cmd_a) = :annee AND p2.titulaire_email IN ( SELECT DISTINCT p_sub2.titulaire_email FROM production p_sub2 WHERE p_sub2.category_id IN (1, 3) AND p_sub2.point_of_sale_id = :pointOfSale AND MONTH(p_sub2.date_cmd_a) = :mois AND YEAR(p_sub2.date_cmd_a) = :annee ) ) AS result GROUP BY WEEK(result.date_cmd_a, 3) ORDER BY semaine
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 "cat1" => 32 "cat2" => 31 ] |
| 71 | 7.75 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.portabilite = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 "opt" => "OUI" ] |
| 72 | 7.99 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_saisie_commande = :opt AND p.prise_existante_commande = :opt2
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 "opt" => "NON" "opt2" => "OUI" ] |
| 73 | 7.38 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_saisie_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 "opt" => "OUI" ] |
| 74 | 7.51 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_existante_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 "opt" => "NON" ] |
| 75 | 7.64 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_existante_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 12 "annee" => 2025 "opt" => "OUI" ] |
| 76 | 6.71 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.category_id IN (?, ?) ORDER BY sclr_0 DESC
Parameters:
[ 4 12 2025 1 3 ] |
| 77 | 2.60 ms |
SELECT AVG(s0_.note_satisfaction) AS sclr_0 FROM satisfaction_client s0_ LEFT JOIN production p1_ ON s0_.production_id = p1_.id LEFT JOIN cluster c2_ ON p1_.cluster_id = c2_.id WHERE MONTH(s0_.date_contrat) = ? AND YEAR(s0_.date_contrat) = ? AND s0_.cod_poin_vent = ? AND p1_.category_id IN (?, ?, ?)
Parameters:
[ 11 2025 "1053520" 1 2 3 ] |
| 78 | 19.18 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.category_id IN (?, ?, ?) ORDER BY sclr_0 DESC
Parameters:
[ 4 11 2025 1 2 3 ] |
| 79 | 2.81 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444) ORDER BY sclr_0 DESC
Parameters:
[ 4 11 2025 ] |
| 80 | 17.43 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.date_racc IS NOT NULL AND (p0_.category_id IN (1, 3) OR (p0_.category_id IN (31) AND p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444))) ORDER BY sclr_0 DESC
Parameters:
[ 4 11 2025 ] |
| 81 | 17.13 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.date_racc IS NOT NULL AND (p0_.category_id IN (1, 2, 3) OR p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444)) ORDER BY sclr_0 DESC
Parameters:
[ 4 11 2025 ] |
| 82 | 17.43 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.category_id IN (?, ?, ?) AND p0_.category_id IN (31, 32, 33, 48) AND p0_.date_racc IS NOT NULL AND p0_.product_id NOT IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444) ORDER BY sclr_0 DESC
Parameters:
[ 4 11 2025 31 32 33 ] |
| 83 | 18.90 ms |
SELECT COUNT(DISTINCT u0_.id) AS sclr_0 FROM production p1_ LEFT JOIN cluster c2_ ON p1_.cluster_id = c2_.id LEFT JOIN point_of_sale p3_ ON p1_.point_of_sale_id = p3_.id LEFT JOIN user u0_ ON p1_.seller_id = u0_.id WHERE p1_.point_of_sale_id = ? AND MONTH(p1_.date_vente_valid_b) = ? AND YEAR(p1_.date_vente_valid_b) = ? AND p1_.category_id IN (?, ?, ?)
Parameters:
[ 4 11 2025 1 2 3 ] |
| 84 | 18.62 ms |
SELECT COUNT(p0_.id) / NULLIF(COUNT(DISTINCT u1_.id), 0) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p2_ ON p0_.point_of_sale_id = p2_.id LEFT JOIN cluster c3_ ON p0_.cluster_id = c3_.id LEFT JOIN user u1_ ON p0_.seller_id = u1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 11 2025 1 2 3 ] |
| 85 | 15.11 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.etat_id = ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 11 2025 2 1 2 3 ] |
| 86 | 2.61 ms |
SELECT SUM(n0_.vv) AS sclr_0 FROM nmd_objectif_clusters n0_ WHERE n0_.cpv = ? AND n0_.mois = ? AND n0_.year = ?
Parameters:
[ "1053520" 11 2025 ] |
| 87 | 18.73 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 11 2025 "2026-02-10 10:37:39" 1 2 3 ] |
| 88 | 18.71 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 11 "annee" => 2025 ] |
| 89 | 0.61 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 11 2025 "2026-02-10 10:37:39" 1 2 3 ] |
| 90 | 18.43 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 11 "annee" => 2025 ] |
| 91 | 0.50 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 11 2025 "2026-02-10 10:37:39" 1 2 3 ] |
| 92 | 18.41 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 11 "annee" => 2025 ] |
| 93 | 27.05 ms |
SELECT COUNT(DISTINCT result.titulaire_email) AS total_vente FROM ( SELECT p1.titulaire_email FROM production p1 LEFT JOIN cluster c1 ON c1.id=p1.cluster_id WHERE p1.category_id = :cat1 AND p1.point_of_sale_id = :pointOfSale AND MONTH(p1.date_cmd_a) = :mois AND YEAR(p1.date_cmd_a) = :annee AND p1.titulaire_email IN ( SELECT DISTINCT p_sub1.titulaire_email FROM production p_sub1 WHERE p_sub1.category_id = 1 AND p_sub1.point_of_sale_id = :pointOfSale AND MONTH(p_sub1.date_cmd_a) = :mois AND YEAR(p_sub1.date_cmd_a) = :annee ) UNION SELECT p2.titulaire_email FROM production p2 LEFT JOIN cluster c2 ON c2.id=p2.cluster_id WHERE p2.category_id = :cat2 AND p2.point_of_sale_id = :pointOfSale AND MONTH(p2.date_cmd_a) = :mois AND YEAR(p2.date_cmd_a) = :annee AND p2.titulaire_email IN ( SELECT DISTINCT p_sub2.titulaire_email FROM production p_sub2 WHERE p_sub2.category_id IN (1, 3) AND p_sub2.point_of_sale_id = :pointOfSale AND MONTH(p_sub2.date_cmd_a) = :mois AND YEAR(p_sub2.date_cmd_a) = :annee ) ) AS result
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 "cat1" => 32 "cat2" => 31 ] |
| 94 | 6.72 ms |
SELECT COUNT(DISTINCT p0_.titulaire_email) AS sclr_0 FROM production p0_ LEFT JOIN cluster c1_ ON p0_.cluster_id = c1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.fixe_chainage IS NOT NULL AND p0_.category_id IN (31, 32, 33)
Parameters:
[ 4 11 2025 ] |
| 95 | 7.18 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND (p.category_id NOT IN (2, 31, 32, 33,48) OR p.product_id IN(150,262,264,266,334,335,341,344,345,379)) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 ] |
| 96 | 9.52 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND (p.category_id NOT IN (2, 31, 32, 33,48) OR p.product_id IN(150,262,264,266,334,335,341,344,345,379)) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 ] |
| 97 | 7.63 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND ( p.category_id IN(1,3) OR ( p.category_id IN(31) AND p.product_id IN(150, 262, 264, 266, 334, 335, 341, 344, 345, 379,441,442,443,444) ) ) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 ] |
| 98 | 6.58 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc , p.date_resiliation) > -31 AND p.category_id IN(31,32,33,48) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 ] |
| 99 | 6.70 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc , p.date_resiliation) > -31 AND p.category_id IN(31,32,33,48) AND p.product_id NOT IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379,441,442,443,444) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 ] |
| 100 | 12.81 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (SELECT DISTINCT(id) FROM category_product WHERE parent_category_id =4) AND ( p.fixe_chainage IS NOT NULL OR p.fixe_autre IS NOT NULL ) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 ] |
| 101 | 12.26 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (SELECT DISTINCT(id) FROM category_product WHERE parent_category_id =4) AND ( p.fixe_chainage IS NOT NULL ) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 ] |
| 102 | 8.34 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id NOT IN (2) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 ] |
| 103 | 19.55 ms |
SELECT COUNT(p.id) AS total_vente, p.identity_ctrl FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.identity_ctrl IS NOT NULL AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee GROUP BY p.identity_ctrl
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 ] |
| 104 | 8.37 ms |
SELECT COUNT(DISTINCT p0_.titulaire_email) AS sclr_0 FROM production p0_ LEFT JOIN cluster c1_ ON p0_.cluster_id = c1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ?
Parameters:
[ 4 11 2025 ] |
| 105 | 7.73 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total, WEEK(p.date_cmd_a,3) AS semaine FROM production p LEFT JOIN cluster c ON c.id = p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.fixe_chainage IS NOT NULL AND p.category_id IN (:cat0,:cat1,:cat2) GROUP BY semaine
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 "cat0" => 31 "cat1" => 32 "cat2" => 33 ] |
| 106 | 26.73 ms |
SELECT COUNT(DISTINCT result.titulaire_email) AS total, WEEK(result.date_cmd_a, 3) AS semaine FROM ( -- Partie 1 : Catégorie 32 avec emails en catégorie 1 SELECT p1.titulaire_email, p1.date_cmd_a FROM production p1 LEFT JOIN cluster c1 ON p1.cluster_id = c1.id WHERE p1.category_id = :cat1 AND p1.point_of_sale_id = :pointOfSale AND MONTH(p1.date_cmd_a) = :mois AND YEAR(p1.date_cmd_a) = :annee AND p1.titulaire_email IN ( SELECT DISTINCT p_sub1.titulaire_email FROM production p_sub1 WHERE p_sub1.category_id = 1 AND p_sub1.point_of_sale_id = :pointOfSale AND MONTH(p_sub1.date_cmd_a) = :mois AND YEAR(p_sub1.date_cmd_a) = :annee ) UNION -- Partie 2 : Catégorie 31 avec emails en catégorie 1 ou 3 SELECT p2.titulaire_email, p2.date_cmd_a FROM production p2 LEFT JOIN cluster c2 ON p2.cluster_id = c2.id WHERE p2.category_id = :cat2 AND p2.point_of_sale_id = :pointOfSale AND MONTH(p2.date_cmd_a) = :mois AND YEAR(p2.date_cmd_a) = :annee AND p2.titulaire_email IN ( SELECT DISTINCT p_sub2.titulaire_email FROM production p_sub2 WHERE p_sub2.category_id IN (1, 3) AND p_sub2.point_of_sale_id = :pointOfSale AND MONTH(p_sub2.date_cmd_a) = :mois AND YEAR(p_sub2.date_cmd_a) = :annee ) ) AS result GROUP BY WEEK(result.date_cmd_a, 3) ORDER BY semaine
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 "cat1" => 32 "cat2" => 31 ] |
| 107 | 7.56 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.portabilite = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 "opt" => "OUI" ] |
| 108 | 7.56 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_saisie_commande = :opt AND p.prise_existante_commande = :opt2
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 "opt" => "NON" "opt2" => "OUI" ] |
| 109 | 7.25 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_saisie_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 "opt" => "OUI" ] |
| 110 | 7.21 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_existante_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 "opt" => "NON" ] |
| 111 | 7.37 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_existante_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 11 "annee" => 2025 "opt" => "OUI" ] |
| 112 | 6.84 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.category_id IN (?, ?) ORDER BY sclr_0 DESC
Parameters:
[ 4 11 2025 1 3 ] |
| 113 | 2.60 ms |
SELECT AVG(s0_.note_satisfaction) AS sclr_0 FROM satisfaction_client s0_ LEFT JOIN production p1_ ON s0_.production_id = p1_.id LEFT JOIN cluster c2_ ON p1_.cluster_id = c2_.id WHERE MONTH(s0_.date_contrat) = ? AND YEAR(s0_.date_contrat) = ? AND s0_.cod_poin_vent = ? AND p1_.category_id IN (?, ?, ?)
Parameters:
[ 10 2025 "1053520" 1 2 3 ] |
| 114 | 18.69 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.category_id IN (?, ?, ?) ORDER BY sclr_0 DESC
Parameters:
[ 4 10 2025 1 2 3 ] |
| 115 | 2.80 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444) ORDER BY sclr_0 DESC
Parameters:
[ 4 10 2025 ] |
| 116 | 17.31 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.date_racc IS NOT NULL AND (p0_.category_id IN (1, 3) OR (p0_.category_id IN (31) AND p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444))) ORDER BY sclr_0 DESC
Parameters:
[ 4 10 2025 ] |
| 117 | 18.18 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.date_racc IS NOT NULL AND (p0_.category_id IN (1, 2, 3) OR p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444)) ORDER BY sclr_0 DESC
Parameters:
[ 4 10 2025 ] |
| 118 | 17.82 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.category_id IN (?, ?, ?) AND p0_.category_id IN (31, 32, 33, 48) AND p0_.date_racc IS NOT NULL AND p0_.product_id NOT IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444) ORDER BY sclr_0 DESC
Parameters:
[ 4 10 2025 31 32 33 ] |
| 119 | 18.75 ms |
SELECT COUNT(DISTINCT u0_.id) AS sclr_0 FROM production p1_ LEFT JOIN cluster c2_ ON p1_.cluster_id = c2_.id LEFT JOIN point_of_sale p3_ ON p1_.point_of_sale_id = p3_.id LEFT JOIN user u0_ ON p1_.seller_id = u0_.id WHERE p1_.point_of_sale_id = ? AND MONTH(p1_.date_vente_valid_b) = ? AND YEAR(p1_.date_vente_valid_b) = ? AND p1_.category_id IN (?, ?, ?)
Parameters:
[ 4 10 2025 1 2 3 ] |
| 120 | 19.60 ms |
SELECT COUNT(p0_.id) / NULLIF(COUNT(DISTINCT u1_.id), 0) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p2_ ON p0_.point_of_sale_id = p2_.id LEFT JOIN cluster c3_ ON p0_.cluster_id = c3_.id LEFT JOIN user u1_ ON p0_.seller_id = u1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 10 2025 1 2 3 ] |
| 121 | 15.66 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.etat_id = ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 10 2025 2 1 2 3 ] |
| 122 | 2.53 ms |
SELECT SUM(n0_.vv) AS sclr_0 FROM nmd_objectif_clusters n0_ WHERE n0_.cpv = ? AND n0_.mois = ? AND n0_.year = ?
Parameters:
[ "1053520" 10 2025 ] |
| 123 | 18.93 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 10 2025 "2026-02-10 10:37:40" 1 2 3 ] |
| 124 | 18.50 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 10 "annee" => 2025 ] |
| 125 | 0.62 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 10 2025 "2026-02-10 10:37:40" 1 2 3 ] |
| 126 | 18.26 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 10 "annee" => 2025 ] |
| 127 | 0.43 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 10 2025 "2026-02-10 10:37:40" 1 2 3 ] |
| 128 | 18.66 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 10 "annee" => 2025 ] |
| 129 | 27.35 ms |
SELECT COUNT(DISTINCT result.titulaire_email) AS total_vente FROM ( SELECT p1.titulaire_email FROM production p1 LEFT JOIN cluster c1 ON c1.id=p1.cluster_id WHERE p1.category_id = :cat1 AND p1.point_of_sale_id = :pointOfSale AND MONTH(p1.date_cmd_a) = :mois AND YEAR(p1.date_cmd_a) = :annee AND p1.titulaire_email IN ( SELECT DISTINCT p_sub1.titulaire_email FROM production p_sub1 WHERE p_sub1.category_id = 1 AND p_sub1.point_of_sale_id = :pointOfSale AND MONTH(p_sub1.date_cmd_a) = :mois AND YEAR(p_sub1.date_cmd_a) = :annee ) UNION SELECT p2.titulaire_email FROM production p2 LEFT JOIN cluster c2 ON c2.id=p2.cluster_id WHERE p2.category_id = :cat2 AND p2.point_of_sale_id = :pointOfSale AND MONTH(p2.date_cmd_a) = :mois AND YEAR(p2.date_cmd_a) = :annee AND p2.titulaire_email IN ( SELECT DISTINCT p_sub2.titulaire_email FROM production p_sub2 WHERE p_sub2.category_id IN (1, 3) AND p_sub2.point_of_sale_id = :pointOfSale AND MONTH(p_sub2.date_cmd_a) = :mois AND YEAR(p_sub2.date_cmd_a) = :annee ) ) AS result
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 "cat1" => 32 "cat2" => 31 ] |
| 130 | 7.00 ms |
SELECT COUNT(DISTINCT p0_.titulaire_email) AS sclr_0 FROM production p0_ LEFT JOIN cluster c1_ ON p0_.cluster_id = c1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.fixe_chainage IS NOT NULL AND p0_.category_id IN (31, 32, 33)
Parameters:
[ 4 10 2025 ] |
| 131 | 7.34 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND (p.category_id NOT IN (2, 31, 32, 33,48) OR p.product_id IN(150,262,264,266,334,335,341,344,345,379)) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 ] |
| 132 | 6.76 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND (p.category_id NOT IN (2, 31, 32, 33,48) OR p.product_id IN(150,262,264,266,334,335,341,344,345,379)) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 ] |
| 133 | 6.57 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND ( p.category_id IN(1,3) OR ( p.category_id IN(31) AND p.product_id IN(150, 262, 264, 266, 334, 335, 341, 344, 345, 379,441,442,443,444) ) ) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 ] |
| 134 | 6.31 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc , p.date_resiliation) > -31 AND p.category_id IN(31,32,33,48) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 ] |
| 135 | 6.51 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc , p.date_resiliation) > -31 AND p.category_id IN(31,32,33,48) AND p.product_id NOT IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379,441,442,443,444) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 ] |
| 136 | 12.49 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (SELECT DISTINCT(id) FROM category_product WHERE parent_category_id =4) AND ( p.fixe_chainage IS NOT NULL OR p.fixe_autre IS NOT NULL ) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 ] |
| 137 | 11.73 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (SELECT DISTINCT(id) FROM category_product WHERE parent_category_id =4) AND ( p.fixe_chainage IS NOT NULL ) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 ] |
| 138 | 8.68 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id NOT IN (2) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 ] |
| 139 | 18.96 ms |
SELECT COUNT(p.id) AS total_vente, p.identity_ctrl FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.identity_ctrl IS NOT NULL AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee GROUP BY p.identity_ctrl
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 ] |
| 140 | 9.04 ms |
SELECT COUNT(DISTINCT p0_.titulaire_email) AS sclr_0 FROM production p0_ LEFT JOIN cluster c1_ ON p0_.cluster_id = c1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ?
Parameters:
[ 4 10 2025 ] |
| 141 | 8.22 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total, WEEK(p.date_cmd_a,3) AS semaine FROM production p LEFT JOIN cluster c ON c.id = p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.fixe_chainage IS NOT NULL AND p.category_id IN (:cat0,:cat1,:cat2) GROUP BY semaine
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 "cat0" => 31 "cat1" => 32 "cat2" => 33 ] |
| 142 | 27.63 ms |
SELECT COUNT(DISTINCT result.titulaire_email) AS total, WEEK(result.date_cmd_a, 3) AS semaine FROM ( -- Partie 1 : Catégorie 32 avec emails en catégorie 1 SELECT p1.titulaire_email, p1.date_cmd_a FROM production p1 LEFT JOIN cluster c1 ON p1.cluster_id = c1.id WHERE p1.category_id = :cat1 AND p1.point_of_sale_id = :pointOfSale AND MONTH(p1.date_cmd_a) = :mois AND YEAR(p1.date_cmd_a) = :annee AND p1.titulaire_email IN ( SELECT DISTINCT p_sub1.titulaire_email FROM production p_sub1 WHERE p_sub1.category_id = 1 AND p_sub1.point_of_sale_id = :pointOfSale AND MONTH(p_sub1.date_cmd_a) = :mois AND YEAR(p_sub1.date_cmd_a) = :annee ) UNION -- Partie 2 : Catégorie 31 avec emails en catégorie 1 ou 3 SELECT p2.titulaire_email, p2.date_cmd_a FROM production p2 LEFT JOIN cluster c2 ON p2.cluster_id = c2.id WHERE p2.category_id = :cat2 AND p2.point_of_sale_id = :pointOfSale AND MONTH(p2.date_cmd_a) = :mois AND YEAR(p2.date_cmd_a) = :annee AND p2.titulaire_email IN ( SELECT DISTINCT p_sub2.titulaire_email FROM production p_sub2 WHERE p_sub2.category_id IN (1, 3) AND p_sub2.point_of_sale_id = :pointOfSale AND MONTH(p_sub2.date_cmd_a) = :mois AND YEAR(p_sub2.date_cmd_a) = :annee ) ) AS result GROUP BY WEEK(result.date_cmd_a, 3) ORDER BY semaine
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 "cat1" => 32 "cat2" => 31 ] |
| 143 | 8.04 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.portabilite = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 "opt" => "OUI" ] |
| 144 | 8.03 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_saisie_commande = :opt AND p.prise_existante_commande = :opt2
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 "opt" => "NON" "opt2" => "OUI" ] |
| 145 | 7.74 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_saisie_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 "opt" => "OUI" ] |
| 146 | 7.96 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_existante_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 "opt" => "NON" ] |
| 147 | 7.73 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_existante_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 10 "annee" => 2025 "opt" => "OUI" ] |
| 148 | 6.85 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.category_id IN (?, ?) ORDER BY sclr_0 DESC
Parameters:
[ 4 10 2025 1 3 ] |
| 149 | 2.70 ms |
SELECT AVG(s0_.note_satisfaction) AS sclr_0 FROM satisfaction_client s0_ LEFT JOIN production p1_ ON s0_.production_id = p1_.id LEFT JOIN cluster c2_ ON p1_.cluster_id = c2_.id WHERE MONTH(s0_.date_contrat) = ? AND YEAR(s0_.date_contrat) = ? AND s0_.cod_poin_vent = ? AND p1_.category_id IN (?, ?, ?)
Parameters:
[ 9 2025 "1053520" 1 2 3 ] |
| 150 | 18.22 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.category_id IN (?, ?, ?) ORDER BY sclr_0 DESC
Parameters:
[ 4 9 2025 1 2 3 ] |
| 151 | 2.76 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444) ORDER BY sclr_0 DESC
Parameters:
[ 4 9 2025 ] |
| 152 | 17.49 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.date_racc IS NOT NULL AND (p0_.category_id IN (1, 3) OR (p0_.category_id IN (31) AND p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444))) ORDER BY sclr_0 DESC
Parameters:
[ 4 9 2025 ] |
| 153 | 16.97 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.date_racc IS NOT NULL AND (p0_.category_id IN (1, 2, 3) OR p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444)) ORDER BY sclr_0 DESC
Parameters:
[ 4 9 2025 ] |
| 154 | 17.27 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.category_id IN (?, ?, ?) AND p0_.category_id IN (31, 32, 33, 48) AND p0_.date_racc IS NOT NULL AND p0_.product_id NOT IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444) ORDER BY sclr_0 DESC
Parameters:
[ 4 9 2025 31 32 33 ] |
| 155 | 19.25 ms |
SELECT COUNT(DISTINCT u0_.id) AS sclr_0 FROM production p1_ LEFT JOIN cluster c2_ ON p1_.cluster_id = c2_.id LEFT JOIN point_of_sale p3_ ON p1_.point_of_sale_id = p3_.id LEFT JOIN user u0_ ON p1_.seller_id = u0_.id WHERE p1_.point_of_sale_id = ? AND MONTH(p1_.date_vente_valid_b) = ? AND YEAR(p1_.date_vente_valid_b) = ? AND p1_.category_id IN (?, ?, ?)
Parameters:
[ 4 9 2025 1 2 3 ] |
| 156 | 19.09 ms |
SELECT COUNT(p0_.id) / NULLIF(COUNT(DISTINCT u1_.id), 0) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p2_ ON p0_.point_of_sale_id = p2_.id LEFT JOIN cluster c3_ ON p0_.cluster_id = c3_.id LEFT JOIN user u1_ ON p0_.seller_id = u1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 9 2025 1 2 3 ] |
| 157 | 15.05 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.etat_id = ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 9 2025 2 1 2 3 ] |
| 158 | 2.81 ms |
SELECT SUM(n0_.vv) AS sclr_0 FROM nmd_objectif_clusters n0_ WHERE n0_.cpv = ? AND n0_.mois = ? AND n0_.year = ?
Parameters:
[ "1053520" 9 2025 ] |
| 159 | 18.45 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 9 2025 "2026-02-10 10:37:40" 1 2 3 ] |
| 160 | 18.41 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 9 "annee" => 2025 ] |
| 161 | 0.58 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 9 2025 "2026-02-10 10:37:40" 1 2 3 ] |
| 162 | 18.56 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 9 "annee" => 2025 ] |
| 163 | 0.53 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 9 2025 "2026-02-10 10:37:40" 1 2 3 ] |
| 164 | 18.47 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 9 "annee" => 2025 ] |
| 165 | 28.08 ms |
SELECT COUNT(DISTINCT result.titulaire_email) AS total_vente FROM ( SELECT p1.titulaire_email FROM production p1 LEFT JOIN cluster c1 ON c1.id=p1.cluster_id WHERE p1.category_id = :cat1 AND p1.point_of_sale_id = :pointOfSale AND MONTH(p1.date_cmd_a) = :mois AND YEAR(p1.date_cmd_a) = :annee AND p1.titulaire_email IN ( SELECT DISTINCT p_sub1.titulaire_email FROM production p_sub1 WHERE p_sub1.category_id = 1 AND p_sub1.point_of_sale_id = :pointOfSale AND MONTH(p_sub1.date_cmd_a) = :mois AND YEAR(p_sub1.date_cmd_a) = :annee ) UNION SELECT p2.titulaire_email FROM production p2 LEFT JOIN cluster c2 ON c2.id=p2.cluster_id WHERE p2.category_id = :cat2 AND p2.point_of_sale_id = :pointOfSale AND MONTH(p2.date_cmd_a) = :mois AND YEAR(p2.date_cmd_a) = :annee AND p2.titulaire_email IN ( SELECT DISTINCT p_sub2.titulaire_email FROM production p_sub2 WHERE p_sub2.category_id IN (1, 3) AND p_sub2.point_of_sale_id = :pointOfSale AND MONTH(p_sub2.date_cmd_a) = :mois AND YEAR(p_sub2.date_cmd_a) = :annee ) ) AS result
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 "cat1" => 32 "cat2" => 31 ] |
| 166 | 7.16 ms |
SELECT COUNT(DISTINCT p0_.titulaire_email) AS sclr_0 FROM production p0_ LEFT JOIN cluster c1_ ON p0_.cluster_id = c1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.fixe_chainage IS NOT NULL AND p0_.category_id IN (31, 32, 33)
Parameters:
[ 4 9 2025 ] |
| 167 | 7.00 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND (p.category_id NOT IN (2, 31, 32, 33,48) OR p.product_id IN(150,262,264,266,334,335,341,344,345,379)) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 ] |
| 168 | 6.59 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND (p.category_id NOT IN (2, 31, 32, 33,48) OR p.product_id IN(150,262,264,266,334,335,341,344,345,379)) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 ] |
| 169 | 6.66 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND ( p.category_id IN(1,3) OR ( p.category_id IN(31) AND p.product_id IN(150, 262, 264, 266, 334, 335, 341, 344, 345, 379,441,442,443,444) ) ) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 ] |
| 170 | 6.53 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc , p.date_resiliation) > -31 AND p.category_id IN(31,32,33,48) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 ] |
| 171 | 6.59 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc , p.date_resiliation) > -31 AND p.category_id IN(31,32,33,48) AND p.product_id NOT IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379,441,442,443,444) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 ] |
| 172 | 13.22 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (SELECT DISTINCT(id) FROM category_product WHERE parent_category_id =4) AND ( p.fixe_chainage IS NOT NULL OR p.fixe_autre IS NOT NULL ) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 ] |
| 173 | 11.75 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (SELECT DISTINCT(id) FROM category_product WHERE parent_category_id =4) AND ( p.fixe_chainage IS NOT NULL ) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 ] |
| 174 | 8.64 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id NOT IN (2) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 ] |
| 175 | 18.75 ms |
SELECT COUNT(p.id) AS total_vente, p.identity_ctrl FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.identity_ctrl IS NOT NULL AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee GROUP BY p.identity_ctrl
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 ] |
| 176 | 9.45 ms |
SELECT COUNT(DISTINCT p0_.titulaire_email) AS sclr_0 FROM production p0_ LEFT JOIN cluster c1_ ON p0_.cluster_id = c1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ?
Parameters:
[ 4 9 2025 ] |
| 177 | 8.26 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total, WEEK(p.date_cmd_a,3) AS semaine FROM production p LEFT JOIN cluster c ON c.id = p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.fixe_chainage IS NOT NULL AND p.category_id IN (:cat0,:cat1,:cat2) GROUP BY semaine
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 "cat0" => 31 "cat1" => 32 "cat2" => 33 ] |
| 178 | 27.24 ms |
SELECT COUNT(DISTINCT result.titulaire_email) AS total, WEEK(result.date_cmd_a, 3) AS semaine FROM ( -- Partie 1 : Catégorie 32 avec emails en catégorie 1 SELECT p1.titulaire_email, p1.date_cmd_a FROM production p1 LEFT JOIN cluster c1 ON p1.cluster_id = c1.id WHERE p1.category_id = :cat1 AND p1.point_of_sale_id = :pointOfSale AND MONTH(p1.date_cmd_a) = :mois AND YEAR(p1.date_cmd_a) = :annee AND p1.titulaire_email IN ( SELECT DISTINCT p_sub1.titulaire_email FROM production p_sub1 WHERE p_sub1.category_id = 1 AND p_sub1.point_of_sale_id = :pointOfSale AND MONTH(p_sub1.date_cmd_a) = :mois AND YEAR(p_sub1.date_cmd_a) = :annee ) UNION -- Partie 2 : Catégorie 31 avec emails en catégorie 1 ou 3 SELECT p2.titulaire_email, p2.date_cmd_a FROM production p2 LEFT JOIN cluster c2 ON p2.cluster_id = c2.id WHERE p2.category_id = :cat2 AND p2.point_of_sale_id = :pointOfSale AND MONTH(p2.date_cmd_a) = :mois AND YEAR(p2.date_cmd_a) = :annee AND p2.titulaire_email IN ( SELECT DISTINCT p_sub2.titulaire_email FROM production p_sub2 WHERE p_sub2.category_id IN (1, 3) AND p_sub2.point_of_sale_id = :pointOfSale AND MONTH(p_sub2.date_cmd_a) = :mois AND YEAR(p_sub2.date_cmd_a) = :annee ) ) AS result GROUP BY WEEK(result.date_cmd_a, 3) ORDER BY semaine
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 "cat1" => 32 "cat2" => 31 ] |
| 179 | 7.94 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.portabilite = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 "opt" => "OUI" ] |
| 180 | 8.37 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_saisie_commande = :opt AND p.prise_existante_commande = :opt2
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 "opt" => "NON" "opt2" => "OUI" ] |
| 181 | 8.68 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_saisie_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 "opt" => "OUI" ] |
| 182 | 9.93 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_existante_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 "opt" => "NON" ] |
| 183 | 8.16 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_existante_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 9 "annee" => 2025 "opt" => "OUI" ] |
| 184 | 7.05 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.category_id IN (?, ?) ORDER BY sclr_0 DESC
Parameters:
[ 4 9 2025 1 3 ] |
| 185 | 2.52 ms |
SELECT AVG(s0_.note_satisfaction) AS sclr_0 FROM satisfaction_client s0_ LEFT JOIN production p1_ ON s0_.production_id = p1_.id LEFT JOIN cluster c2_ ON p1_.cluster_id = c2_.id WHERE MONTH(s0_.date_contrat) = ? AND YEAR(s0_.date_contrat) = ? AND s0_.cod_poin_vent = ? AND p1_.category_id IN (?, ?, ?)
Parameters:
[ 8 2025 "1053520" 1 2 3 ] |
| 186 | 18.83 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.category_id IN (?, ?, ?) ORDER BY sclr_0 DESC
Parameters:
[ 4 8 2025 1 2 3 ] |
| 187 | 2.78 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444) ORDER BY sclr_0 DESC
Parameters:
[ 4 8 2025 ] |
| 188 | 17.23 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.date_racc IS NOT NULL AND (p0_.category_id IN (1, 3) OR (p0_.category_id IN (31) AND p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444))) ORDER BY sclr_0 DESC
Parameters:
[ 4 8 2025 ] |
| 189 | 16.88 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.date_racc IS NOT NULL AND (p0_.category_id IN (1, 2, 3) OR p0_.product_id IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444)) ORDER BY sclr_0 DESC
Parameters:
[ 4 8 2025 ] |
| 190 | 17.11 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.category_id IN (?, ?, ?) AND p0_.category_id IN (31, 32, 33, 48) AND p0_.date_racc IS NOT NULL AND p0_.product_id NOT IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379, 441, 442, 443, 444) ORDER BY sclr_0 DESC
Parameters:
[ 4 8 2025 31 32 33 ] |
| 191 | 18.37 ms |
SELECT COUNT(DISTINCT u0_.id) AS sclr_0 FROM production p1_ LEFT JOIN cluster c2_ ON p1_.cluster_id = c2_.id LEFT JOIN point_of_sale p3_ ON p1_.point_of_sale_id = p3_.id LEFT JOIN user u0_ ON p1_.seller_id = u0_.id WHERE p1_.point_of_sale_id = ? AND MONTH(p1_.date_vente_valid_b) = ? AND YEAR(p1_.date_vente_valid_b) = ? AND p1_.category_id IN (?, ?, ?)
Parameters:
[ 4 8 2025 1 2 3 ] |
| 192 | 19.10 ms |
SELECT COUNT(p0_.id) / NULLIF(COUNT(DISTINCT u1_.id), 0) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p2_ ON p0_.point_of_sale_id = p2_.id LEFT JOIN cluster c3_ ON p0_.cluster_id = c3_.id LEFT JOIN user u1_ ON p0_.seller_id = u1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 8 2025 1 2 3 ] |
| 193 | 15.41 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.etat_id = ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 8 2025 2 1 2 3 ] |
| 194 | 2.59 ms |
SELECT SUM(n0_.vv) AS sclr_0 FROM nmd_objectif_clusters n0_ WHERE n0_.cpv = ? AND n0_.mois = ? AND n0_.year = ?
Parameters:
[ "1053520" 8 2025 ] |
| 195 | 18.52 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 8 2025 "2026-02-10 10:37:41" 1 2 3 ] |
| 196 | 18.48 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 8 "annee" => 2025 ] |
| 197 | 0.57 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 8 2025 "2026-02-10 10:37:41" 1 2 3 ] |
| 198 | 18.13 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 8 "annee" => 2025 ] |
| 199 | 0.53 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_vente_valid_b) = ? AND YEAR(p0_.date_vente_valid_b) = ? AND p0_.date_vente_valid_b <= ? AND p0_.category_id IN (?, ?, ?)
Parameters:
[ 4 8 2025 "2026-02-10 10:37:41" 1 2 3 ] |
| 200 | 18.26 ms |
SELECT COUNT(DISTINCT DAY(p.date_vente_valid_b)) FROM production p WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee AND DAYOFWEEK(p.date_vente_valid_b) >= 2 AND DAYOFWEEK(p.date_vente_valid_b) <= 6 -- Jours de travail (lundi à vendredi) AND p.date_vente_valid_b <= CURDATE() -- Jusqu'à aujourd'hui AND p.category_id IN (:cat0,:cat1,:cat2)
Parameters:
[ ":cat0" => 1 ":cat1" => 2 ":cat2" => 3 "pointOfSale" => 4 "mois" => 8 "annee" => 2025 ] |
| 201 | 26.07 ms |
SELECT COUNT(DISTINCT result.titulaire_email) AS total_vente FROM ( SELECT p1.titulaire_email FROM production p1 LEFT JOIN cluster c1 ON c1.id=p1.cluster_id WHERE p1.category_id = :cat1 AND p1.point_of_sale_id = :pointOfSale AND MONTH(p1.date_cmd_a) = :mois AND YEAR(p1.date_cmd_a) = :annee AND p1.titulaire_email IN ( SELECT DISTINCT p_sub1.titulaire_email FROM production p_sub1 WHERE p_sub1.category_id = 1 AND p_sub1.point_of_sale_id = :pointOfSale AND MONTH(p_sub1.date_cmd_a) = :mois AND YEAR(p_sub1.date_cmd_a) = :annee ) UNION SELECT p2.titulaire_email FROM production p2 LEFT JOIN cluster c2 ON c2.id=p2.cluster_id WHERE p2.category_id = :cat2 AND p2.point_of_sale_id = :pointOfSale AND MONTH(p2.date_cmd_a) = :mois AND YEAR(p2.date_cmd_a) = :annee AND p2.titulaire_email IN ( SELECT DISTINCT p_sub2.titulaire_email FROM production p_sub2 WHERE p_sub2.category_id IN (1, 3) AND p_sub2.point_of_sale_id = :pointOfSale AND MONTH(p_sub2.date_cmd_a) = :mois AND YEAR(p_sub2.date_cmd_a) = :annee ) ) AS result
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 "cat1" => 32 "cat2" => 31 ] |
| 202 | 6.46 ms |
SELECT COUNT(DISTINCT p0_.titulaire_email) AS sclr_0 FROM production p0_ LEFT JOIN cluster c1_ ON p0_.cluster_id = c1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.fixe_chainage IS NOT NULL AND p0_.category_id IN (31, 32, 33)
Parameters:
[ 4 8 2025 ] |
| 203 | 7.03 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND (p.category_id NOT IN (2, 31, 32, 33,48) OR p.product_id IN(150,262,264,266,334,335,341,344,345,379)) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 ] |
| 204 | 6.58 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND (p.category_id NOT IN (2, 31, 32, 33,48) OR p.product_id IN(150,262,264,266,334,335,341,344,345,379)) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 ] |
| 205 | 6.50 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc, p.date_resiliation) > -31 AND ( p.category_id IN(1,3) OR ( p.category_id IN(31) AND p.product_id IN(150, 262, 264, 266, 334, 335, 341, 344, 345, 379,441,442,443,444) ) ) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 ] |
| 206 | 6.59 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc , p.date_resiliation) > -31 AND p.category_id IN(31,32,33,48) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 ] |
| 207 | 6.49 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.date_resiliation IS NOT NULL AND p.date_racc IS NOT NULL AND DATEDIFF(p.date_racc , p.date_resiliation) > -31 AND p.category_id IN(31,32,33,48) AND p.product_id NOT IN (150, 262, 264, 266, 334, 335, 341, 344, 345, 379,441,442,443,444) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 ] |
| 208 | 12.40 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (SELECT DISTINCT(id) FROM category_product WHERE parent_category_id =4) AND ( p.fixe_chainage IS NOT NULL OR p.fixe_autre IS NOT NULL ) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 ] |
| 209 | 11.52 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (SELECT DISTINCT(id) FROM category_product WHERE parent_category_id =4) AND ( p.fixe_chainage IS NOT NULL ) AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 ] |
| 210 | 7.62 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id NOT IN (2) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 ] |
| 211 | 19.26 ms |
SELECT COUNT(p.id) AS total_vente, p.identity_ctrl FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON p.cluster_id = c.id WHERE p.point_of_sale_id = :pointOfSale AND p.identity_ctrl IS NOT NULL AND MONTH(p.date_vente_valid_b) = :mois AND YEAR(p.date_vente_valid_b) = :annee GROUP BY p.identity_ctrl
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 ] |
| 212 | 8.22 ms |
SELECT COUNT(DISTINCT p0_.titulaire_email) AS sclr_0 FROM production p0_ LEFT JOIN cluster c1_ ON p0_.cluster_id = c1_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ?
Parameters:
[ 4 8 2025 ] |
| 213 | 7.56 ms |
SELECT COUNT(DISTINCT p.titulaire_email) AS total, WEEK(p.date_cmd_a,3) AS semaine FROM production p LEFT JOIN cluster c ON c.id = p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.fixe_chainage IS NOT NULL AND p.category_id IN (:cat0,:cat1,:cat2) GROUP BY semaine
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 "cat0" => 31 "cat1" => 32 "cat2" => 33 ] |
| 214 | 25.86 ms |
SELECT COUNT(DISTINCT result.titulaire_email) AS total, WEEK(result.date_cmd_a, 3) AS semaine FROM ( -- Partie 1 : Catégorie 32 avec emails en catégorie 1 SELECT p1.titulaire_email, p1.date_cmd_a FROM production p1 LEFT JOIN cluster c1 ON p1.cluster_id = c1.id WHERE p1.category_id = :cat1 AND p1.point_of_sale_id = :pointOfSale AND MONTH(p1.date_cmd_a) = :mois AND YEAR(p1.date_cmd_a) = :annee AND p1.titulaire_email IN ( SELECT DISTINCT p_sub1.titulaire_email FROM production p_sub1 WHERE p_sub1.category_id = 1 AND p_sub1.point_of_sale_id = :pointOfSale AND MONTH(p_sub1.date_cmd_a) = :mois AND YEAR(p_sub1.date_cmd_a) = :annee ) UNION -- Partie 2 : Catégorie 31 avec emails en catégorie 1 ou 3 SELECT p2.titulaire_email, p2.date_cmd_a FROM production p2 LEFT JOIN cluster c2 ON p2.cluster_id = c2.id WHERE p2.category_id = :cat2 AND p2.point_of_sale_id = :pointOfSale AND MONTH(p2.date_cmd_a) = :mois AND YEAR(p2.date_cmd_a) = :annee AND p2.titulaire_email IN ( SELECT DISTINCT p_sub2.titulaire_email FROM production p_sub2 WHERE p_sub2.category_id IN (1, 3) AND p_sub2.point_of_sale_id = :pointOfSale AND MONTH(p_sub2.date_cmd_a) = :mois AND YEAR(p_sub2.date_cmd_a) = :annee ) ) AS result GROUP BY WEEK(result.date_cmd_a, 3) ORDER BY semaine
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 "cat1" => 32 "cat2" => 31 ] |
| 215 | 7.26 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.portabilite = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 "opt" => "OUI" ] |
| 216 | 7.23 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_saisie_commande = :opt AND p.prise_existante_commande = :opt2
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 "opt" => "NON" "opt2" => "OUI" ] |
| 217 | 7.16 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_saisie_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 "opt" => "OUI" ] |
| 218 | 7.20 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_existante_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 "opt" => "NON" ] |
| 219 | 7.11 ms |
SELECT COUNT(DISTINCT p.id) AS total_vente FROM production p LEFT JOIN point_of_sale po ON p.point_of_sale_id = po.id LEFT JOIN cluster c ON c.id =p.cluster_id WHERE p.point_of_sale_id = :pointOfSale AND p.category_id IN (1,3) AND MONTH(p.date_cmd_a) = :mois AND YEAR(p.date_cmd_a) = :annee AND p.prise_existante_commande = :opt
Parameters:
[ "pointOfSale" => 4 "mois" => 8 "annee" => 2025 "opt" => "OUI" ] |
| 220 | 6.33 ms |
SELECT COUNT(p0_.id) AS sclr_0 FROM production p0_ LEFT JOIN point_of_sale p1_ ON p0_.point_of_sale_id = p1_.id LEFT JOIN cluster c2_ ON p0_.cluster_id = c2_.id WHERE p0_.point_of_sale_id = ? AND MONTH(p0_.date_cmd_a) = ? AND YEAR(p0_.date_cmd_a) = ? AND p0_.category_id IN (?, ?) ORDER BY sclr_0 DESC
Parameters:
[ 4 8 2025 1 3 ] |
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\User |
|
| App\Entity\PointOfSale | No errors. |
| App\Entity\RoleApp | No errors. |
| App\Entity\Organisation | No errors. |
| App\Entity\Operator | No errors. |
| App\Entity\Declarative | No errors. |
| App\Entity\InterventionPlace | No errors. |
| App\Entity\Production | No errors. |
| App\Entity\History | No errors. |
| App\Entity\DistributionAdresse | No errors. |
| App\Entity\ObjectivesManagement | No errors. |
| App\Entity\IncidentsTickets | No errors. |
| App\Entity\SchedulerSector | No errors. |
| App\Entity\SalesCoachProfile | No errors. |
| App\Entity\SalesCoachInteraction | No errors. |
| App\Entity\UsersRefExterne | No errors. |
| App\Entity\NmdAdressesIncomming | No errors. |
| App\Entity\NmdArretCuivre |
|
| App\Entity\NmdArretFttb |
|
| App\Entity\TourneeToken | No errors. |
| App\Entity\EtatProduction | No errors. |
| App\Entity\SatisfactionClient | No errors. |
| App\Entity\Cluster | No errors. |
| App\Entity\NmdAppPanier | No errors. |
| App\Entity\NmdModules | No errors. |
| App\Entity\ProspectionCycle | No errors. |
| App\Entity\NmdObjectifClusters | No errors. |