hasadna / hasadna/open-bus-stride-api

very slow loading time of `dashboard` requests

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8
Forks
18
PR merge metrics
No merged PRs in 30d

Description

requests for data for a charts take too much time...
![image](https://github.com/hasadna/open-bus-stride-api/assets/1336862/af81971b-419a-4872-9d70-4e0c4b2e3c04)
Repro Steps:
1. open the site (at dashboard page)
2. open chrome dev tool
3. look at at `network` panel

you will see it takes 10(!) seconds
it is lot of time!
for example - the `gtfs_agencies/list` request takes less than a second:
![image](https://github.com/hasadna/open-bus-stride-api/assets/1336862/b64b64f7-6093-46a7-a4d6-6b50f8b6fba4)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the dashboard page and use Chrome DevTools' Network panel to identify which chart-data requests take about 10 seconds. Compare them with the faster `gtfs_agencies/list` request and trace the relevant request handling in the Python project. Done means the dashboard requests load substantially faster and the improvement is verified in the Network panel.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.