Skip to content

[Documentation Request] Document how to stream results of large search queries #191

@cyrille-leclerc

Description

@cyrille-leclerc

Description

Search queries can return a large volume of data and c.e.c.e.core.search.HitsMetadata#hits() is a List rather than an a kind of Iterator suggesting that the results are all loaded in memory rather than being streamed similarly to the java.sql.ResultSet API.

Could we have documentation on best practices to stream large search responses?

The Jenkins OpenTelemetry Plugin has implemented an abstraction of Iterator that progressively retrieves small chunks of and Elasticsearch query using the Point in Time API (code here) but it may not be the most efficient solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions