Skip to content
Discussion options

You must be logged in to vote

This is the expected behavior. The getAll call in https://github.com/jdussouillez/quarkus-db-grpc-streaming/blob/master/server/server-rpc/src/main/java/com/github/jdussouillez/server/rpc/service/ProductApiService.java#L27 does not stream, because the database protocol does NOT stream (see https://foojay.io/today/optimizing-relational-database-access/).

If you need streaming, you need to use a cursor and understand the consequences (keeping a connection open for the lifetime of the cursor, sometimes even a transaction (it depends on the database))

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@jdussouillez
Comment options

Answer selected by jdussouillez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment