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

perf: fix skipping streaming data #4252

Merged

Conversation

swiffer
Copy link
Contributor

@swiffer swiffer commented Oct 9, 2024

fixes #4251 - positions table grows over time by the amount of data collected by streaming data. to exclude streaming data we are making use of the a new index (part of the upcoming release). when testing please make sure you are having latest migrations of master branch applied.

Copy link

netlify bot commented Oct 9, 2024

Deploy Preview for teslamate ready!

Name Link
🔨 Latest commit f4fd426
🔍 Latest deploy log https://app.netlify.com/sites/teslamate/deploys/670d697d59234a0008da552d
😎 Deploy Preview https://deploy-preview-4252--teslamate.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@swiffer
Copy link
Contributor Author

swiffer commented Oct 9, 2024

4x query improvement here - should be larger impact on slow hw. @JakobLichterfeld

@swiffer
Copy link
Contributor Author

swiffer commented Oct 9, 2024

@JakobLichterfeld - data required for calculation is available in drives

-> so: use drives instead of positions for another 60x runtime improvement (totalling to 240x on my instance) ;)

@JakobLichterfeld JakobLichterfeld added enhancement New feature or request area:dashboard Related to a Grafana dashboard labels Oct 10, 2024
@JakobLichterfeld JakobLichterfeld changed the title perf-fix-skipping-streaming-data perf: fix skipping streaming data Oct 10, 2024
@swiffer swiffer force-pushed the perf-fix-skipping-streaming-data branch from e78bfec to aef21ee Compare October 14, 2024 07:40
@swiffer swiffer force-pushed the perf-fix-skipping-streaming-data branch from aef21ee to f4fd426 Compare October 14, 2024 18:57
@JakobLichterfeld
Copy link
Collaborator

Successfully tested. It is now nearly instant, more than 240x on Rpi 3B+ :-)

Thanks so much!

@JakobLichterfeld JakobLichterfeld merged commit 2b36bad into teslamate-org:master Oct 19, 2024
18 of 22 checks passed
JakobLichterfeld pushed a commit that referenced this pull request Oct 19, 2024
* perf-fix-skipping-streaming-data

* use drives instead of positions for another 60x improvement
@swiffer swiffer deleted the perf-fix-skipping-streaming-data branch October 19, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dashboard Related to a Grafana dashboard enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

perf: cost per 100 km in charging stats is slow
2 participants