Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document MySQL connector's fetchSize behaviour in ResultQuery.fetchSize() #4280

Closed
gabadi opened this issue May 8, 2015 · 3 comments
Closed

Comments

@gabadi
Copy link

gabadi commented May 8, 2015

I've a query with 3M rows, so i execute it with a cursor. But it seams like jooq it's keeping all the result in memory because i've GC limit exception during the fecth.

i've tried:
query.fetchLazy(fetchSize)
query.fetchSize(fetchSize).fetchLazy()

but without any success.

Any idea of what may be happening

@gabadi
Copy link
Author

gabadi commented May 8, 2015

I love mysql
this solves the mysql jdbc issue:
query.fetchSize(Integer.MIN_VALUE).fetchLazy()

@lukaseder
Copy link
Member

Yes, I've stumbled upon this too, in the past... Perhaps, we could add a remark to the Javadoc?

@lukaseder
Copy link
Member

Interesting caveat with setting Integer.MIN_VALUE:

@lukaseder lukaseder changed the title fetchSize + fecthLazy is working in mysql? Document MySQL connector's fetchSize behaviour in ResultQuery.fetchSize() May 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants