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

⚡ - perf: attempt to increase performance of DestructionList rela… #545

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

svenvandescheur
Copy link
Contributor

@svenvandescheur svenvandescheur commented Dec 12, 2024

…ted API endpoints

  • Added a lot of prefetching
  • Avoided iterative queries in nested (User)Serializer where possible (annotated QuerySet)

On my machine™: from 114 queries to 18 on http://localhost:8000/api/v1/destruction-lists/
Not sure if/how this intervenes with the performance tests though...

@codecov-commenter
Copy link

codecov-commenter commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.79%. Comparing base (d5df99f) to head (155ea28).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #545      +/-   ##
==========================================
+ Coverage   80.34%   80.79%   +0.44%     
==========================================
  Files         204      206       +2     
  Lines        5596     5628      +32     
  Branches      560      567       +7     
==========================================
+ Hits         4496     4547      +51     
+ Misses       1100     1081      -19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@svenvandescheur svenvandescheur force-pushed the feature/performance branch 2 times, most recently from e57b627 to 1e92c7e Compare December 12, 2024 13:12
@svenvandescheur svenvandescheur marked this pull request as ready for review December 12, 2024 13:12
@svenvandescheur svenvandescheur force-pushed the feature/performance branch 2 times, most recently from 01753ef to 58247f9 Compare December 13, 2024 11:38
@svenvandescheur svenvandescheur merged commit 86c88ce into main Dec 16, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants