Skip to content
Discussion options

You must be logged in to vote

I agree and I can relate, because I also spent as much time and energy (and lost some hair during debugging sessions) before discovering that MySQL only streams data when the fetch size is set to Integer.MIN_VALUE.. see "ResultSet" section here: https://dev.mysql.com/doc/connector-j/en/connector-j-reference-implementation-notes.html.

Another similar caveat with PostgreSQL as well is when the item writer get stuck when trying to update rows selected by the reader using SELECT ... FOR UPDATE SKIP LOCKED, see https://stackoverflow.com/questions/77358701/how-to-enable-itemwriter-to-write-items-to-database-when-rows-are-locked-by-item/77373190#77373190.

Even though these are DB specific issues…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Sax388
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants