Skip to content

Commit

Permalink
Modification models.py (Amélioration performances)
Browse files Browse the repository at this point in the history
En lien avec le ticket PnX-SI#142

Ce paramètre proposé par @joelclems améliore grandement les performances (chargement des occurrences quasi instantané versus 7 à 20 secondes sans). 
Après je ne sais pas s'il y a une grande répercution si on fixe ce bout de code dans la branche master... ? Mais j'ai remarqué lors de la dernière MAJ effectué qu'il n'y était pas :)
  • Loading branch information
maximetoma authored Dec 20, 2022
1 parent 3883b82 commit fbfe7ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/monitoring/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ class TMonitoringObservations(TObservations):
nullable=False,
)


TBaseVisits.dataset = DB.relationship(TDatasets)

@serializable
class TMonitoringVisits(TBaseVisits):
__tablename__ = "t_visit_complements"
Expand Down

0 comments on commit fbfe7ca

Please sign in to comment.