Optimize async_search polling with dynamic wait_for_completion
#143277
Labels
enhancement
New value added to drive a business result
Feature:Search Sessions
Feature:Search
Querying infrastructure in Kibana
Icebox
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
performance
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Describe the feature:
Initially, when using a search strategy with the async search there was a search polling mechanism, where the client polls a search with a fixed 1s interval until the search completes.
We optimized it a bit to avoid excessive polling (every second) by doing the increase the polling interval as searches take longer to finish. The longer the search takes, the less noticeable the delay due to polling intervals.
We can improve it further by optimizing
wait_for_completion
param.This needs testing and investigation
The text was updated successfully, but these errors were encountered: