GeauxEric
GeauxEric

Reputation: 3070

how to set the fetch size when using quarkus reactive pg client

I would like to control the fetch size in querying the Postgres DB. I am able to do so with the plain jdbc, but with the quarkus reactive postgres client, I cannot find such an option. Anyone knows how to configure fetch size with this client?

Upvotes: 1

Views: 280

Answers (1)

Rasmus Faber
Rasmus Faber

Reputation: 49687

It is not currently possible. If you use the normal query methods, vertx-sql-client will always fetch everything.

You can use PreparedStatement.createStream() instead if you want to stream the partial results.

Upvotes: 1

Related Questions