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

Improve performance #13

Open
elklaassen opened this issue Mar 3, 2025 · 1 comment
Open

Improve performance #13

elklaassen opened this issue Mar 3, 2025 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@elklaassen
Copy link
Collaborator

At the OK Lab in January, we became several suggestions:

  • Pre calculate data (implemented to some extend, further optimization possible)
  • Apply ETL (Extract, Transform, Load), add lates hour/date data to database
  • Measure performance using browser tools (F12)
  • Check server/client side load
  • Use PyCharm profile methods (checked, this is a paid service only)
  • Use Airflow
  • Use KNIME (checked, seems to be a dahsboard tool whereas we opted for python/dash/plotly)
  • Use Pandas and pre-compute (already implemented)
  • Use Timescale
  • Check @functools, "poespas", lazy loading
  • Use Tabs (this would come in V2.0 to structure functionality anyhow)

Further suggestions welcome.

@elklaassen elklaassen added the help wanted Extra attention is needed label Mar 3, 2025
@elklaassen
Copy link
Collaborator Author

I reviewed performance and made the following notes for further investigation:

  • Initial load takes ca. 4.9 sec. of which 4.6 sec. "Waiting for server response". This involves main.css, custom.css and dash extensions. I wonder why we need custom.css (greyscale)? DashExtensions_default.js appears to refer to telraam eco counter code?
  • Next: dash_layout needs ca. 4.8 sec. of which 4.5 sec. "Waiting for server response" . Same for dash_dependencies.
  • Next: ca. 4.7 sec for Plotly and components.
  • Parallel to previous: dash_update_components (2x) need 12 sec. incl. 7 sec. "stalled"
  • Update street: pie chart 6.6 sec. of which 6.2 sec. "Waiting for server response", similar for street map update.
  • Update Graph radio button, similar as above...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants