Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard cache session info #65

Open
Casper-Guo opened this issue Jul 16, 2024 · 0 comments
Open

Dashboard cache session info #65

Casper-Guo opened this issue Jul 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Casper-Guo
Copy link
Owner

Most of the delay in the dashboard originates from the need to ping F1 and Ergast API to request session name and driver list

These requests are not evenly distributed amongst all races. More recent races will have more hits.

It makes sense to cache the result of these requests. Will need to modify get_session_info to return immutable types

Pros:

  • Reduce waiting in the dashboard
  • Future proof against fastf1 rate limit

Cons

  • Might persist incorrect results, for example when Ergast is down temporarily
@Casper-Guo Casper-Guo added the enhancement New feature or request label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant