Replies: 1 comment 2 replies
-
I'm not sure why you want to wrap into a According to https://quarkus.io/guides/hibernate-reactive-panache#paging Uni<List<String>> batch = Uni.createFrom().item(List.of("a", "b", "c"));
Multi.createBy().repeating().uni(() -> batch).atMost(4) // replace the value in atMost by the number of pages
.subscribe().with(System.out::println); Hope that helps! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using generator get data from DB in chunk (quarkus-hibernate-reactive-panache)
Problems:
pagableQuery.list()
return Uni<List> instead ofList<ENTITY>
, db access up on requestpagableQuery.hasNext()
returnUni<Boolean>
instead ofBoolean
, db access up on requestWouldn't it make sense that generator is able to accept / resolve values from Uni source?
Something like
// Sorry code not in Java
Beta Was this translation helpful? Give feedback.
All reactions