Metro-Records / la-metro-councilmatic

:metro: An instance of councilmatic for LA Metro
MIT License
6 stars 2 forks source link

Reduce page load times on meeting days #1138

Open antidipyramid opened 3 months ago

antidipyramid commented 3 months ago

Overview

Many site pages slow down considerably on meeting days. There are various code blocks (many duplicated) sprinkled throughout views and templates that trigger requests to Granicus.

Current Benchmarks

Performance on 7/18/24:

Page P95
/ 983.79ms
/events/ 826.56ms
/event/{slug} 759.09ms

Goal Benchmarks

We should shoot to resolve 95% of requests in under 500ms.

antidipyramid commented 2 months ago

@camachoo recommended: for the events page, we can try a "Show more" button that loads the next x number of days every time it's pressed rather than traditional pagination.