Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • This is all true in general, but possibly not helpful in OP's situation. If you naively try to read all records and then try to process them, then you may indeed see an OutOfMemoryError that using a Java cursor and interleaving fetching and processing would solve (but of course, the essential change is the interleaving, not the cursor object). Commented Oct 18 at 7:35
  • @KilianFoth "OutOfMemoryError that using a Java cursor and interleaving fetching and processing" I'm not sure I follow. You can do this in Java without using an explicit cursor. You can set your fetch size to 1 if you like but I wouldn't recommend it. Actually the default of 10 per the link is probably way too low for common use cases. Commented Oct 19 at 20:43