Expose Elasticsearch javascript client "asStream" option in data services plugin #70675
Labels
enhancement
New value added to drive a business result
Feature:Maps
Feature:Search
Querying infrastructure in Kibana
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:large
Large Level of Effort
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
Kibana applications can often request large payloads from Elasticsearch. For example, Discover can return 500 documents with all fields. The maps application can request up to 10000 documents with geo_shape fields. These responses can be rather large when the requested features contain geo_shape fields with lots of vertices. In these cases, Kibana server memory can be a limitation.
Both Discover and Maps would benefit from having the Kibana server stream the response to the client instead of parsing and holding the entire response in memory on the server.
The elasticsearch javascript client provides an option to stream results,
asStream
. It would be greatly beneficial to allow applications to enable this option when requesting data via thedata
services API to alleviate memory pressure on the kibana server.The text was updated successfully, but these errors were encountered: