Skip to content

Does Blaze support FetchSize when returning results as a stream? #1527

Answered by jwgmeligmeyling
isaac0977 asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think we have an ability to set the fetch size, we just rely on the configured defeault for Hibernate.

Perhaps something like criteriaBuilder.getQuery().unwrap(Query.class).setFetchSize(10).stream() does the job for you?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@beikov
Comment options

@isaac0977
Comment options

Answer selected by isaac0977
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants