Announcement Announcement Module
No announcement yet.
Lazy Result Set Iteration Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lazy Result Set Iteration

    Is there any plans to support some kind of lazy result set accessor with in Spring JDBC?

    The callbacks Spring provides work well if you can haddle the full transformed result set in memory or you have some kind of streaming behaviour that involves writing each row to an output source. But in some cases, for example markups, you need to pass an Iterable to the API. This can lead to large uneeded memory profiles when using the former strategy.

    Would some kind of
    Iterable<T> queryLazy(sql,rowMapper)
    option make sense?