Ghadi Shayban
added a comment - 08/Sep/14 1:15 PM Something like this would be amenable to reduce/transduce. Used in conjunction with db-query-with-resultset
https://gist.github.com/ghadishayban/d2f31961deba98ee4595
Half of the knobs on jdbc/query are to control seq realization, but instead should defer to reduce/reduced
i.e.
(into [] (take 5000) (queryr "select * from foo"))
The reducible collection returned should be one-shot, cleaning up resources, and it would be an error to run more than once