Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sothawo opened this issue Oct 6, 2023 · 0 comments · Fixed by #2721
Closed

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

sothawo opened this issue Oct 6, 2023 · 0 comments · Fixed by #2721
Assignees
Labels
type: enhancement A general enhancement

Comments

@sothawo
Copy link
Collaborator

sothawo commented Oct 6, 2023

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.

@sothawo sothawo added the type: enhancement A general enhancement label Oct 6, 2023
@sothawo sothawo added this to the 5.2 RC1 (2023.1.0) milestone Oct 6, 2023
@sothawo sothawo self-assigned this Oct 6, 2023
sothawo added a commit to sothawo/spring-data-elasticsearch that referenced this issue Oct 6, 2023
sothawo added a commit that referenced this issue Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant