Skip to content

Conversation

@somiljain2006
Copy link

Fixes #33897

Add a LazyConnectionFactory that returns proxy connections, delaying physical connection acquisition until a statement is actually executed. This implementation introduces LazyConnection, LazyStatement, and LazyBatch to buffer transaction state and SQL operations, replaying them upon initialization to prevent unnecessary network I/O during conditional logic flows.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jan 20, 2026
Signed-off-by: somiljain2006 <somil16022006@gmail.com>
Signed-off-by: somiljain2006 <somil16022006@gmail.com>
@sbrannen sbrannen added the in: data Issues in data modules (jdbc, orm, oxm, tx) label Jan 20, 2026
@somiljain2006 somiljain2006 changed the title Add lazy R2DBC ConnectionFactory support Added lazy R2DBC ConnectionFactory support Jan 20, 2026
@somiljain2006
Copy link
Author

@sbrannen @sdeleuze @rstoyanchev Can you please review this fix?

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

Labels

in: data Issues in data modules (jdbc, orm, oxm, tx) status: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for lazy connections in R2DBC in the same manner as LazyConnectionDataSourceProxy

3 participants