Skip to content

Consider pageable from repository method in stream returning implementation. #2720

Closed
@sothawo

Description

@sothawo

Brought up in https://stackoverflow.com/questions/77232800/set-query-size-when-performing-scroll-request-via-spring-data-elasticsearch-repo;

When defining a repository method that returns a Stream<Entity>, the query under the hood currently does calls to Elasticsearch in 500 size batches and delivers them in a stream. The use should be able to add a Pageable to the repository method in order to influence the size of these queries.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions