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] Omit "over time" suggestion for expensive configurations #112229

Closed
Tracked by #57711
flash1293 opened this issue Sep 15, 2021 · 1 comment · Fixed by #115932
Closed
Tracked by #57711

[Lens] Omit "over time" suggestion for expensive configurations #112229

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

Comments

@flash1293
Copy link
Contributor

Right now, if there isn't a date histogram in the current datasource configuration, an "over time" suggestion will be made, adding a date histogram aggregation using the default time field.

In some configurations the resulting table is pretty large and rendering the suggestion is freezing the browser for a noticeable amount of time. The suggestion is also not super helpful because the large number of series.

To improve the perceived performance, the "over time" suggestion shouldn't be made if one of the following conditions is true:

  • More than one existing bucket dimension
  • An existing terms bucket dimension with a size higher than 5

This is not catching all possible cases but should noticeably improve the performance for common configurations.

@flash1293 flash1293 added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Sep 15, 2021
@flash1293 flash1293 added this to Long-term goals in Lens via automation Sep 15, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors (Team:VisEditors)

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 Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
No open projects
Lens
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants