elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.81k stars 8.2k forks source link

[R&D]Evaluate query performance improvements by adding constant_score in ES queries in Logs UI #69119

Open mukeshelastic opened 4 years ago

mukeshelastic commented 4 years ago

Describe the feature: As part of Loki competitive benchmark, ES performance team provided a recommendation that may improve ES query performance significantly. Let's evaluate the recommendation of adding constant_score parameter in ES queries to check for performance gains w/o any functional regressions. https://github.com/elastic/elasticsearch-benchmarks/issues/17#issuecomment-515022108 Describe a specific use case for the feature: Query performance improvement in Logs UI

weltenwort commented 4 years ago

The clauses of the log entries query are contained in a top-level bool filter clause, which has the same effect as using constant_score: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html#score-bool-filter

elasticmachine commented 4 years ago

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

elasticmachine commented 11 months ago

Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs)