You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JdbcPollingChannelAdapter used by JdbcOutboundGateway does NOT stream the resultset, whereas returns all the results as a list. This could result in OOM if there are large number of records returned.
Would be better if streaming support is added to JdbcPollingChannelAdapter used by JdbcOutboundGateway
You may @mjd507 .
I have not done anything here yet because I have doubts how streaming is going to work with transactions and update functionality we have in this adapater.
mjd507
added a commit
to mjd507/spring-integration
that referenced
this issue
May 31, 2025
Fixes: spring-projects#3963
Introduce a `queryForStream` variable and a `streamConsumer` function in `JdbcOutboundGateway`. along with the underlying method `JdbcPollingChannelAdapter.doPollForStream`.
when produce reply messages, if in stream mode, gateways always receives a empty list, process logic are moved to `streamConsumer`.
Signed-off-by: Jiandong Ma <[email protected]>
JdbcPollingChannelAdapter
used byJdbcOutboundGateway
does NOT stream the resultset, whereas returns all the results as a list. This could result in OOM if there are large number of records returned.Would be better if streaming support is added to
JdbcPollingChannelAdapter
used byJdbcOutboundGateway
Reference from SO:
https://stackoverflow.com/questions/74729365/spring-integration-jdbc-outboundgateway-returning-1-record-only-even-with-maxrow
The text was updated successfully, but these errors were encountered: