Skip to content

Improve Template Usage perf on the dashboard#2687

Merged
whabanks merged 3 commits intomainfrom
task/paginate-template-stats
May 6, 2026
Merged

Improve Template Usage perf on the dashboard#2687
whabanks merged 3 commits intomainfrom
task/paginate-template-stats

Conversation

@whabanks
Copy link
Copy Markdown
Contributor

@whabanks whabanks commented May 5, 2026

Summary | Résumé

This PR aims to improve service dashboard load times by optimizing how the Templates Used section is rendered

  • The Template Usage section on the dashboard is now limited to displaying the top 10 templates
  • The monthly template usage page is now paginated

Related

Test instructions | Instructions pour tester la modification

  1. Checkout the API changes
  2. Navigate to the service dashboard
  • Load times are reasonable / have not regressed
  • Only the top 10 templates are displayed in the Templates Used section
  1. Click the See all templates used link below the section
  • Note that the results are now paginated (if you have >= 50 templates)

Before merging

  1. Once the API PR has merged
  2. Run this branch locally, and hook up to staging
  3. Test the performance on the test-simulate-prod-data-service

- The Template Usage section on the dashboard is now limited to
  displaying the top 10 templates to keep dashboard render time down.
- The monthly template usage page is now paginated
@whabanks whabanks marked this pull request as ready for review May 5, 2026 20:26
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown
Member

@andrewleith andrewleith left a comment

Choose a reason for hiding this comment

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

Looks good!

The real test will be on staging, but testing locally looks good as well!

Testing this locally against main, 3 runs on each taking an average:

  • Dashboard is 1248ms faster
  • Templates page is 117ms faster
  • Folders is 320ms faster
  • Notifications page is 94ms faster

@whabanks whabanks merged commit 61f85bb into main May 6, 2026
13 checks passed
@whabanks whabanks deleted the task/paginate-template-stats branch May 6, 2026 18:57
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