top | item 45725580

(no title)

rcleveng | 4 months ago

If your language supports generators, this works a lot better than making copies of the entire dataset too.

discuss

order

akshayshah|4 months ago

Sometimes, sure - but sometimes, passing around a fat wrapper around a DB cursor is worse, and the code would be better off paginating and materializing each page of data in memory. As usual, it depends.

KlayLay|4 months ago

You don't need your programming language to implement generators for you. You can implement them yourself.