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

[Research] Query consolidation on Dashboards #175702

Open
Tracked by #166211
thomasneirynck opened this issue Jan 26, 2024 · 2 comments
Open
Tracked by #166211

[Research] Query consolidation on Dashboards #175702

thomasneirynck opened this issue Jan 26, 2024 · 2 comments
Labels
research Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@thomasneirynck
Copy link
Contributor

On Dashboards context, many widgets issue individual queries to Elasticsearch.

In the majority of real world use-cases, some of these queries will share the same root aggregations. e.g. a Date histogram over identical time-ranges. It is more efficient (less network traffic, less ES load) to issue a single query that returns the same data as issuing multiple queries.

Goal

(1) Investigate "automagic" consolidation of queries.

There is a tight overlap here with #166206, as this would rely on a client-side consolidation layer.

(2) Rather than having Kibana do this consolidation ad-hoc, consider if more explicit data modeling by the user may achieve the same effect.

e.g. multiple charts reading different data from different columns in the same ES|QL statement.

This relies on the assumption that a single ES-query with two metrics (e.g. | stats foo, bar would be more efficient than two queries with two separate (e.g. | stats foo ... and | stats bar ...).

@botelastic botelastic bot added the needs-team Issues missing a team label label Jan 26, 2024
@thomasneirynck thomasneirynck changed the title [Research] Query consolidation [Research] Query consolidation on Dashboards Jan 26, 2024
@jsanz jsanz added the Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas label Jan 30, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Jan 30, 2024
@thomasneirynck
Copy link
Contributor Author

Discussed with @teresaalvarezsoler . This is speculative, and not high priority for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
research Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

3 participants