Does Blaze support FetchSize when returning results as a stream? #1527
-
From my understanding, if I have this following code using Hibernate, I can stream 10 objects at a time.
I'm trying to achieve a similar result using Blaze, I have the following codeblock:
But I wasn't able to find any corresponding method to (setFetchSize), is this something that could be achieved using Blaze 1.6.6? |
Beta Was this translation helpful? Give feedback.
Answered by
jwgmeligmeyling
Aug 9, 2022
Replies: 1 comment 2 replies
-
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 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
isaac0977
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?