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

fix: network perfomance issue fixes #2349

Merged
merged 1 commit into from
Dec 7, 2023
Merged

fix: network perfomance issue fixes #2349

merged 1 commit into from
Dec 7, 2023

Conversation

jmbuss
Copy link
Contributor

@jmbuss jmbuss commented Dec 6, 2023

Overview

Remove CSV download feature to remove extra calls to useTimeSeriesData.
The download button makes use of useTimeSeriesData which will make calls as the viewport updates instead of only requesting when the user clicks it.

Remove fetchMostRecentBeforeStart for performance issues.
fetchMostRecentBeforeStart ensures that if there exists a point before the current viewport that the leading line is drawn. Removing this leaves an edgecase that if this point exists, that no leading line or an incorrect leading line will be drawn. Removing this halves the number of network requests made while panning, so we are choosing to do this for performance issues.

Legal

This project is available under the Apache 2.0 License.

@jmbuss jmbuss marked this pull request as ready for review December 6, 2023 23:56
@jmbuss jmbuss changed the title Fix/perf fix: perf Dec 6, 2023
@jmbuss jmbuss enabled auto-merge (rebase) December 7, 2023 00:01
@jmbuss jmbuss changed the title fix: perf fix: network perfomance issue fixes Dec 7, 2023
@jmbuss jmbuss merged this pull request into rc Dec 7, 2023
9 checks passed
@jmbuss jmbuss deleted the fix/perf branch December 7, 2023 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants