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

[explore]only fetch View Samples data when needed #11968

Closed
junlincc opened this issue Dec 9, 2020 · 4 comments · Fixed by #12257
Closed

[explore]only fetch View Samples data when needed #11968

junlincc opened this issue Dec 9, 2020 · 4 comments · Fixed by #12257
Labels
#bug:performance Performance bugs

Comments

@junlincc
Copy link
Member

junlincc commented Dec 9, 2020

Context -

Currently both results and samples are fetched when user expands Data panel. They are refetched when query params change. I'll try to optimize that so that Samples are fetched only when needed

I noticed that on current master, we send a request for samples not only when chart data changes, but every time we open a modal.

I think that the "View Samples" use case is fairly uncommon. Also note that it only needs to be reprocess when the filters are altered, changing metrics and other query parameters don't require re-fetching/re-rendering.

Originally posted by @mistercrunch in #11854 (comment)

cc: @kgabryje @mistercrunch

@junlincc junlincc changed the title [explore]not required to fetch samples data when... [explore]not required to fetch View Samples data when... Dec 9, 2020
@junlincc junlincc changed the title [explore]not required to fetch View Samples data when... [explore]not required to fetch View Samples data when needed Dec 9, 2020
@junlincc junlincc changed the title [explore]not required to fetch View Samples data when needed [explore]only fetch View Samples data when needed Dec 9, 2020
@ktmud
Copy link
Member

ktmud commented Dec 18, 2020

The rendering performance is also not very great while the "View Samples" tab is open. Sorting that table and resizing the panes are almost unbearably slow. Even adding/removing a metric also becomes slow.

@ktmud
Copy link
Member

ktmud commented Dec 18, 2020

And it stays slow even when I switched back to the View Results tab.

@kgabryje
Copy link
Member

@ktmud Shall we open an issue for performance improvements?

@villebro
Copy link
Member

The rendering performance is also not very great while the "View Samples" tab is open. Sorting that table and resizing the panes are almost unbearably slow. Even adding/removing a metric also becomes slow.

Oh that's what that was. I hit this yesterday and wondered why everything became so sluggish all of a sudden.

@ktmud Shall we open an issue for performance improvements?

Yeah, I think this is pretty important to fix, as the new layout will probably result in increased use of the Samples tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug:performance Performance bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants