Skip to content

refactor: speed up finalizing proceedings - #7846

Merged
rjsparks merged 3 commits into
ietf-tools:mainfrom
jennifer-richards:finalize-faster
Aug 22, 2024
Merged

refactor: speed up finalizing proceedings#7846
rjsparks merged 3 commits into
ietf-tools:mainfrom
jennifer-richards:finalize-faster

Conversation

@jennifer-richards

Copy link
Copy Markdown
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
@codecov

codecov Bot commented Aug 22, 2024

Copy link
Copy Markdown

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
@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