PowerSystemDataModel icon indicating copy to clipboard operation
PowerSystemDataModel copied to clipboard

Use Java streams on SQL fetches effectively

Open sebastian-peter opened this issue 1 year ago • 0 comments

Once #773 is merged:

The call to stream() here does not make much sense if one thinks of why we want to use it in the first place. We fetch all rows for a query first, then apply a stream on it to "lazily" handle the rows one by one. We definitely should not handle this in this PR though, I think. I found information on how to do it though: https://stackoverflow.com/a/64391247

Originally posted by @sebastian-peter in https://github.com/ie3-institute/PowerSystemDataModel/pull/773#discussion_r1205376824

sebastian-peter avatar Jun 06 '23 07:06 sebastian-peter