When fetching charts over years (for example data from 2022-2026), we are fetching 100% of days.
This means that we're fetching a huge amount of data, and in many cases timing out. We should improve the performance so these charts load properly.
Some ideas of how we can do that:
- Batch responses into weeklong data points instead of daily
- Chunk responses for partial loading / splitting request into multiple requests less likely to time out
- Add cache layer to improve second load attempt after timeout
When fetching charts over years (for example data from 2022-2026), we are fetching 100% of days.
This means that we're fetching a huge amount of data, and in many cases timing out. We should improve the performance so these charts load properly.
Some ideas of how we can do that: