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

refactor: speed up finalizing proceedings #7846

Merged
merged 3 commits into from
Aug 22, 2024

Conversation

jennifer-richards
Copy link
Member

Proceedings finalization for IETF-120 was timing out after 60s in production and taking almost 100s on my dev machine. Profiling showed almost all the time is spent generating bluesheets, heavily dominated by computing attendee affiliations. This PR rolls the annotation lookup into an annotate() call in the query, which drops the total time to about 10s on my dev machine.

For production deployments, this also increases the proxy_read_timeout - that should perhaps be pulled out into its own PR.

The affiliation helper was extremely slow. Using
queryset annotation speeds it up by almost an order
of magnitude.
rjsparks
rjsparks previously approved these changes Aug 22, 2024
Copy link

codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.78%. Comparing base (c7f6bde) to head (6eb3935).
Report is 43 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #7846    +/-   ##
========================================
  Coverage   88.78%   88.78%            
========================================
  Files         296      303     +7     
  Lines       41320    41422   +102     
========================================
+ Hits        36687    36778    +91     
- Misses       4633     4644    +11     

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

@rjsparks rjsparks merged commit 2230242 into ietf-tools:main Aug 22, 2024
9 checks passed
@jennifer-richards jennifer-richards deleted the finalize-faster branch August 22, 2024 15:37
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants