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

Initial page load of sensor reading dashboard slows down with ~100k+ readings #5

Open
jhodapp opened this issue Feb 2, 2022 · 0 comments
Labels
backend Any change related to the Ambi backend bug Something isn't working

Comments

@jhodapp
Copy link
Member

jhodapp commented Feb 2, 2022

When there are 100k or more sensor readings in the DB, the initial page load of the dashboard noticeably slows, particularly:

  • The average temperature over the last 24 hrs chart
  • The average humidity over the last 24 hrs chart

Once getting into the multiple hundreds of thousands of sensor readings in the DB, these charts will take several seconds to load when the DB and backend are running on a Raspberry Pi 4.

Desired Functionality

This page load performance should not degrade with the number of sensor readings in the DB. It should always take the same amount of time no matter how many values are in the DB.

@jhodapp jhodapp added this to Ambi Feb 2, 2022
@jhodapp jhodapp moved this to Todo in Ambi Feb 12, 2022
@jhodapp jhodapp added the bug Something isn't working label Feb 28, 2022
@jhodapp jhodapp added the backend Any change related to the Ambi backend label Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Any change related to the Ambi backend bug Something isn't working
Projects
No open projects
Status: Todo
Development

No branches or pull requests

1 participant