-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Comments
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. |
And it stays slow even when I switched back to the View Results tab. |
@ktmud Shall we open an issue for performance improvements? |
Oh that's what that was. I hit this yesterday and wondered why everything became so sluggish all of a sudden.
Yeah, I think this is pretty important to fix, as the new layout will probably result in increased use of the Samples tab. |
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
The text was updated successfully, but these errors were encountered: