spring-projects / spring-projects/spring-integration

JdbcPollingChannelAdapter Streaming support

Open
#3,963 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: jdbc type: enhancement
Dominant language
Java
Stars
1.6k
Forks
1.2k
Avg merge
17h 48m
Merged PRs (30d)
62

Description

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

Reference from SO:
https://stackoverflow.com/questions/74729365/spring-integration-jdbc-outboundgateway-returning-1-record-only-even-with-maxrow

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading JdbcPollingChannelAdapter and tracing how JdbcOutboundGateway consumes its results, then review the linked Stack Overflow reference for the reported behavior. Determine how result-set streaming should work without accumulating all records in a list; done means large result sets can be handled without the reported out-of-memory risk.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.