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

[Lens] Existence fetch can take a long time #92493

Closed
flash1293 opened this issue Feb 23, 2021 · 1 comment · Fixed by #97188
Closed

[Lens] Existence fetch can take a long time #92493

flash1293 opened this issue Feb 23, 2021 · 1 comment · Fixed by #97188
Assignees
Labels
enhancement New value added to drive a business result Feature:Lens performance Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@flash1293
Copy link
Contributor

In Lens, we try to determine whether fields exist in the current time range or not. To do so, 500 documents are sampled based on the current time range and filter. For each change in time range / filter, the existence data is fetched again. During the initial load of existence information, the field list is not shown:
Screenshot 2021-02-23 at 19 38 20

For slow data indices (like frozen indices or searchable snapshots), this increases the time until the user can start interacting with the UI by a lot and will cause an ongoing animated loading indicator on the data panel while interacting with the editor.

One option to improve the experience would be to add a low timeout to the existence request (like 5 seconds) and fall back to showing all fields without existence information if it takes too long to fetch (something we do already if the existence fetch is not successful for other reasons):
Screenshot 2021-02-23 at 19 42 01

This is related to #58330 , but we could implement it without much effort in the short term and improve behavior in these cases without solving the larger issue now.

@flash1293 flash1293 added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Feb 23, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens performance Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants