Query Metrics

661 Database Queries
15 Different statements
321.54 ms Query time
2 Invalid entities
488 Managed entities

Grouped Statements

Show all queries

Time▼ Count Info
114.44 ms
(35.59%)
214
SELECT t0.id AS id_1, t0.code AS code_2, t0.event_type AS event_type_3, t0.risque_level AS risque_level_4, t0.period_key AS period_key_5, t0.snapshot AS snapshot_6, t0.created_at AS created_at_7, t0.animatrice_id AS animatrice_id_8 FROM animatrice_risque_history t0 WHERE t0.animatrice_id = ? AND t0.event_type = ? AND t0.period_key = ? LIMIT 1
Parameters:
[
  1
  "EVALUATED"
  "2026-11-27"
]
103.53 ms
(32.20%)
214
INSERT INTO animatrice_risque_history (code, event_type, risque_level, period_key, snapshot, created_at, animatrice_id) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  "NMT6B0962DA57D5220261127110042"
  "EVALUATED"
  "ELEVE"
  "2026-11-27"
  "{"level":"ELEVE","isRisque":true,"reasons":[{"level":"ELEVE","reasonCode":"ABSENCE_PAIEMENT_JOURS_OUVRES","typology":"FINANCIER","label":"119 jours ouvr\u00e9s sans paiement","metrics":{"weekdays":119}},{"level":"MOYEN","reasonCode":"ABSENCE_VENTE_JOURS","typology":"COMMERCIAL","label":"166 jours sans vente","metrics":{"days":166}},{"level":"MOYEN","reasonCode":"ABSENCE_VISITE_JOURS","typology":"OPERATIONNEL","label":"128 jours sans visite","metrics":{"days":128}}]}"
  "2026-11-27 00:00:00"
  1
]
90.13 ms
(28.03%)
214
UPDATE animatrice SET risque_reasons = ?, risque_evaluated_at = ?, last_updated_at = ? WHERE id = ?
Parameters:
[
  "[{"level":"ELEVE","reasonCode":"ABSENCE_PAIEMENT_JOURS_OUVRES","typology":"FINANCIER","label":"119 jours ouvr\u00e9s sans paiement","metrics":{"weekdays":119}},{"level":"MOYEN","reasonCode":"ABSENCE_VENTE_JOURS","typology":"COMMERCIAL","label":"166 jours sans vente","metrics":{"days":166}},{"level":"MOYEN","reasonCode":"ABSENCE_VISITE_JOURS","typology":"OPERATIONNEL","label":"128 jours sans visite","metrics":{"days":128}}]"
  "2026-11-27 00:00:00"
  "2026-11-27 11:00:42"
  1
]
2.68 ms
(0.83%)
1
SELECT a0_.id AS id_0, a0_.code AS code_1, a0_.nom_prenom AS nom_prenom_2, a0_.created_at AS created_at_3, a0_.code_collaborateur AS code_collaborateur_4, a0_.last_updated_at AS last_updated_at_5, a0_.adresse AS adresse_6, a0_.phone_number AS phone_number_7, a0_.total_vente AS total_vente_8, a0_.valeur_stock AS valeur_stock_9, a0_.total_paiement_restant AS total_paiement_restant_10, a0_.is_soazaza AS is_soazaza_11, a0_.soazaza_started_at AS soazaza_started_at_12, a0_.soazaza_funnel_status AS soazaza_funnel_status_13, a0_.soazaza_recommended_decision AS soazaza_recommended_decision_14, a0_.soazaza_stagnation_alert AS soazaza_stagnation_alert_15, a0_.soazaza_funnel_months AS soazaza_funnel_months_16, a0_.soazaza_funnel_evaluated_at AS soazaza_funnel_evaluated_at_17, a0_.is_risque AS is_risque_18, a0_.is_eligible_relegation AS is_eligible_relegation_19, a0_.risque_level AS risque_level_20, a0_.risque_reasons AS risque_reasons_21, a0_.risque_evaluated_at AS risque_evaluated_at_22, a0_.objectif_unites_mois AS objectif_unites_mois_23, a0_.projection_unites_fin_mois AS projection_unites_fin_mois_24, a0_.trajectoire_status AS trajectoire_status_25, a0_.alerte_projection AS alerte_projection_26, a0_.objectif_evaluated_at AS objectif_evaluated_at_27, a0_.objectif_ventes_mois AS objectif_ventes_mois_28, a0_.projection_ventes_fin_mois AS projection_ventes_fin_mois_29, a0_.trajectoire_status_ventes AS trajectoire_status_ventes_30, a0_.paiements_projetes_fin_mois AS paiements_projetes_fin_mois_31, a0_.exposition_cash_projetee AS exposition_cash_projetee_32, a0_.last_visite_at AS last_visite_at_33, a0_.is_enabled AS is_enabled_34, a0_.manual_status_change AS manual_status_change_35, a0_.region_id AS region_id_36, a0_.coach_id AS coach_id_37 FROM animatrice a0_ WHERE a0_.is_enabled = ? ORDER BY a0_.id ASC
Parameters:
[
  1
]
2.22 ms
(0.69%)
4
SELECT t0.id AS id_1, t0.code AS code_2, t0.created_at AS created_at_3, t0.scope_type AS scope_type_4, t0.target_type AS target_type_5, t0.anciennete_min_mois AS anciennete_min_mois_6, t0.anciennete_max_mois AS anciennete_max_mois_7, t0.target_value AS target_value_8, t0.effective_from AS effective_from_9, t0.effective_to AS effective_to_10, t0.is_enabled AS is_enabled_11, t0.milestone_definition_id AS milestone_definition_id_12, t0.region_id AS region_id_13, t0.coach_id AS coach_id_14, t0.animatrice_id AS animatrice_id_15 FROM milestone_target_rule t0 WHERE t0.milestone_definition_id = ? AND t0.scope_type = ? AND t0.is_enabled = ? ORDER BY t0.created_at DESC LIMIT 1
Parameters:
[
  43
  "GLOBAL"
  1
]
1.84 ms
(0.57%)
4
SELECT t0.id AS id_1, t0.code AS code_2, t0.designation AS designation_3, t0.created_at AS created_at_4, t0.description AS description_5, t0.domain AS domain_6, t0.value_type AS value_type_7, t0.target_unit AS target_unit_8, t0.is_enabled AS is_enabled_9 FROM milestone_definition t0 WHERE t0.code = ? LIMIT 1
Parameters:
[
  "RISQUE_PAIEMENT_MISSED_WEEKDAYS"
]
1.52 ms
(0.47%)
1
SELECT n0_.animatrice_id AS sclr_0, MAX(v1_.vente_at) AS sclr_1 FROM vente v1_ INNER JOIN numero_client n0_ ON v1_.animatrice_numero_id = n0_.id WHERE n0_.animatrice_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) AND v1_.vente_at < ? GROUP BY n0_.animatrice_id
Parameters:
[
  1
  2
  3
  4
  6
  7
  8
  9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
  157
  158
  159
  160
  161
  162
  163
  164
  165
  166
  167
  168
  169
  170
  171
  172
  173
  174
  175
  176
  177
  178
  179
  180
  181
  182
  183
  184
  185
  186
  187
  188
  189
  190
  191
  192
  193
  194
  195
  196
  197
  198
  199
  200
  201
  202
  203
  204
  205
  206
  207
  208
  209
  210
  211
  212
  213
  214
  215
  "2026-11-27 00:00:00"
]
1.34 ms
(0.42%)
1
SELECT n0_.animatrice_id AS sclr_0, MAX(p1_.paiement_at) AS sclr_1 FROM paiement p1_ INNER JOIN numero_client n0_ ON p1_.animatrice_numero_id = n0_.id WHERE n0_.animatrice_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) AND p1_.paiement_at < ? GROUP BY n0_.animatrice_id
Parameters:
[
  1
  2
  3
  4
  6
  7
  8
  9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
  157
  158
  159
  160
  161
  162
  163
  164
  165
  166
  167
  168
  169
  170
  171
  172
  173
  174
  175
  176
  177
  178
  179
  180
  181
  182
  183
  184
  185
  186
  187
  188
  189
  190
  191
  192
  193
  194
  195
  196
  197
  198
  199
  200
  201
  202
  203
  204
  205
  206
  207
  208
  209
  210
  211
  212
  213
  214
  215
  "2026-11-27 00:00:00"
]
0.90 ms
(0.28%)
1
SELECT DISTINCT n0_.animatrice_id AS sclr_0 FROM paiement p1_ INNER JOIN numero_client n0_ ON p1_.animatrice_numero_id = n0_.id WHERE ((p1_.paiement_at >= ? AND p1_.paiement_at < ?)) OR ((p1_.paiement_at >= ? AND p1_.paiement_at < ?)) OR ((p1_.paiement_at >= ? AND p1_.paiement_at < ?))
Parameters:
[
  "2026-11-26 00:00:00"
  "2026-11-27 00:00:00"
  "2026-11-25 00:00:00"
  "2026-11-26 00:00:00"
  "2026-11-24 00:00:00"
  "2026-11-25 00:00:00"
]
0.76 ms
(0.24%)
2
SELECT n0_.animatrice_id AS sclr_0, COALESCE(SUM(v1_.quantite_estimee), 0) AS sclr_1 FROM vente v1_ INNER JOIN numero_client n0_ ON v1_.animatrice_numero_id = n0_.id WHERE v1_.vente_at >= ? AND v1_.vente_at < ? GROUP BY n0_.animatrice_id
Parameters:
[
  "2026-11-01 00:00:00"
  "2026-11-27 00:00:00"
]
0.63 ms
(0.20%)
1
SELECT m0_.id AS id_0, m0_.code AS code_1, m0_.created_at AS created_at_2, m0_.scope_type AS scope_type_3, m0_.target_type AS target_type_4, m0_.anciennete_min_mois AS anciennete_min_mois_5, m0_.anciennete_max_mois AS anciennete_max_mois_6, m0_.target_value AS target_value_7, m0_.effective_from AS effective_from_8, m0_.effective_to AS effective_to_9, m0_.is_enabled AS is_enabled_10, m1_.id AS id_11, m1_.code AS code_12, m1_.designation AS designation_13, m1_.created_at AS created_at_14, m1_.description AS description_15, m1_.domain AS domain_16, m1_.value_type AS value_type_17, m1_.target_unit AS target_unit_18, m1_.is_enabled AS is_enabled_19, m0_.milestone_definition_id AS milestone_definition_id_20, m0_.region_id AS region_id_21, m0_.coach_id AS coach_id_22, m0_.animatrice_id AS animatrice_id_23 FROM milestone_target_rule m0_ INNER JOIN milestone_definition m1_ ON m0_.milestone_definition_id = m1_.id WHERE m0_.is_enabled = ? AND m0_.target_type = ?
Parameters:
[
  1
  "ANIMATRICE"
]
0.56 ms
(0.18%)
1
SELECT DISTINCT n0_.animatrice_id AS sclr_0 FROM vente v1_ INNER JOIN numero_client n0_ ON v1_.animatrice_numero_id = n0_.id WHERE v1_.vente_at >= ? AND v1_.vente_at < ?
Parameters:
[
  "2026-11-20 00:00:00"
  "2026-11-27 00:00:00"
]
0.40 ms
(0.13%)
1
SELECT t0.id AS id_1, t0.code AS code_2, t0.designation AS designation_3, t0.created_at AS created_at_4, t0.description AS description_5, t0.domain AS domain_6, t0.value_type AS value_type_7, t0.target_unit AS target_unit_8, t0.is_enabled AS is_enabled_9 FROM milestone_definition t0
Parameters:
[]
0.32 ms
(0.10%)
1
"COMMIT"
Parameters:
[]
0.25 ms
(0.08%)
1
"START TRANSACTION"
Parameters:
[]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Managed Entities

default entity manager

Class Amount of managed objects
App\Entity\Animatrice 214
App\Entity\AnimatriceRisqueHistory 214
App\Entity\MilestoneDefinition 30
App\Entity\MilestoneTargetRule 24
App\Entity\Utilisateur 5
App\Entity\Region 1

Entities Mapping

Class Mapping errors
App\Entity\Animatrice
  • The field App\Entity\Animatrice#statusHistories is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\AnimatriceStatusHistory#animatrice does not contain the required 'inversedBy: "statusHistories"' attribute.
App\Entity\Region No errors.
App\Entity\Utilisateur No errors.
App\Entity\NumeroClient No errors.
App\Entity\MiscellaneousStock No errors.
App\Entity\Visite No errors.
App\Entity\MiscellaneousFacturation No errors.
App\Entity\AnimatriceStatusHistory No errors.
App\Entity\MilestoneDefinition
  • The field App\Entity\MilestoneDefinition#targetRules is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\MilestoneTargetRule#milestoneDefinition does not contain the required 'inversedBy: "targetRules"' attribute.
App\Entity\MilestoneTargetRule No errors.
App\Entity\Paiement No errors.
App\Entity\Vente No errors.
App\Entity\AnimatriceRisqueHistory No errors.