Skip to content

[data.search] Stop sending entire request body in polling requests #186138

Open

Description

Summary:

Currently, when using the data.search services, we are sending the entire search request body to every polling request. This takes up a lot of data transfer and is unnecessary, since all we're using is the search request ID to poll on the ES _async_status endpoint.

We should check and make sure that other search strategies aren't negatively affected if we switch over to just sending the request ID, and we should also make sure that things like "other bucket" scenarios still work.

Consider, for example, these requests:

image

This shows three distinct async search requests. The final responses are indicated by the larger response_length. It is totally unnecessary to be sending such a large request body (indicated by request_length) in each of the polls leading up to the final response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Feature:SearchQuerying infrastructure in KibanaProject:AsyncSearchBackground search, partial results, async search services.Team:DataDiscoveryDiscover App Team (Document Explorer, Saved Search, Surrounding documents, Data, DataViews)impact:mediumAddressing this issue will have a medium level of impact on the quality/strength of our product.loe:mediumMedium Level of Effortperformance

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions