Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimise certaines requêtes SQL #6490

Merged
merged 10 commits into from
Aug 27, 2023

Conversation

philippemilink
Copy link
Member

Cette série de commits optimise certaines requêtes SQL sur quelques pages, notamment à partir de ce qui a été relevé par Sentry.

Fix #6412, même si de nombreuses N+1 requêtes persistent, notamment à cause de la façon dont notre code est conçu (faire des requêtes SQL dans certains attributs d'objets).

Contrôle qualité

Vérifier que la CI passe, que les pages impactées (elles sont indiquées dans les messages de commits) fonctionnent toujours. Si vous avez le courage de s'assurer que le nombre de requêtes SQL baisse, il faut regarder la debug toolbar et actualiser une fois la page (le menu est mis en cache, ce qui économise beaucoup de requêtes).

@philippemilink philippemilink force-pushed the n+1-sql-queries branch 2 times, most recently from c586ece to 4ff49bb Compare April 15, 2023 15:43
@coveralls
Copy link

coveralls commented Apr 15, 2023

Coverage Status

coverage: 88.413% (+0.02%) from 88.398% when pulling d17fe42 on philippemilink:n+1-sql-queries into b5c6af7 on zestedesavoir:dev.

@philippemilink philippemilink marked this pull request as ready for review April 15, 2023 15:53
@philippemilink philippemilink force-pushed the n+1-sql-queries branch 2 times, most recently from fbb77dc to b8b0e5e Compare July 1, 2023 16:31
Copy link
Contributor

@Arnaud-D Arnaud-D left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA OK ✔️

@Arnaud-D Arnaud-D enabled auto-merge (rebase) August 27, 2023 09:19
@Arnaud-D Arnaud-D merged commit e75838f into zestedesavoir:dev Aug 27, 2023
8 checks passed
@philippemilink philippemilink deleted the n+1-sql-queries branch August 27, 2023 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

N+1 requêtes SQL
3 participants