Skip to content

fix: fetch document table sessions in one query - #12107

Merged
jennifer-richards merged 1 commit into
ietf-tools:mainfrom
rjsparks:document-sessions-query-count
Dec 3, 2026
Merged

jennifer-richards merged 1 commit into
ietf-tools:mainfrom
rjsparks:document-sessions-query-count

Conversation

@rjsparks

Copy link
Copy Markdown
Member

fill_in_document_sessions() ran one query per presentation linked to any meeting from a week ago to a month ahead, whether or not its document was on the page. Search, group documents and community list pages slowed from about 0.7s to 4s while IETF 127 was in that window, and the same thing will start about a month before every meeting.

It now runs a single query, whatever the number of materials a meeting has.

🤖 Generated with Claude Code

fill_in_document_sessions() loaded every presentation of every meeting
dated from a week ago to a month ahead, then fetched each one's session
separately. Document tables slowed down as a meeting's materials piled
up. Restrict the query to the documents on the page and select the
session, meeting and group the row template renders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.30%. Comparing base (250a07d) to head (913ef2d).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12107      +/-   ##
==========================================
+ Coverage   89.27%   89.30%   +0.03%     
==========================================
  Files         343      343              
  Lines       46803    46814      +11     
==========================================
+ Hits        41783    41809      +26     
+ Misses       5020     5005      -15     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jennifer-richards
jennifer-richards merged commit 5a7268a into ietf-tools:main Dec 3, 2026
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.

2 participants