You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's too easy to forget to close a ResultQuery.stream() because that's not expected, given the rest of the jOOQ API. It's already possible to get a hold of a resourceful stream through Cursor.stream(), i.e. through ResultQuery.fetchLazy().stream().
This change would add consistency to the jOOQ API:
ResultQuery.fetchLazy() and thus Cursor is always lazy and resourceful.
This is an incompatible change, which must be accompanied by a Setting. Alternatively, we can also postpone the change of the default behaviour of the Setting to 4.0...
The text was updated successfully, but these errors were encountered:
It's too easy to forget to close a
ResultQuery.stream()
because that's not expected, given the rest of the jOOQ API. It's already possible to get a hold of a resourceful stream throughCursor.stream()
, i.e. throughResultQuery.fetchLazy().stream()
.This change would add consistency to the jOOQ API:
ResultQuery.xxx()
is always eager (including the "implicit cursor" foreach loop)ResultQuery.fetchLazy()
and thusCursor
is always lazy and resourceful.This is an incompatible change, which must be accompanied by a
Setting
. Alternatively, we can also postpone the change of the default behaviour of theSetting
to 4.0...The text was updated successfully, but these errors were encountered: