Closed manuelserradev closed 1 year ago
Thank you for the suggestion! I will take a closer look.
I think I can try drafting a PR if you find it valuable. I was thinking of expanding StreamConfiguration
capabilities...
Yes, that would definitely be valuable. Expanding the StreamConfiguration
sounds like a good way to go!
@minborg could you also share your view on this?
Sorry for not paying attention to your draft sooner! Completely missed it. I've left a comment regarding missing JavaDocs, other than that it looks great. Thank you for helping out!
Before I can merge your changes I need you to sign a Contributor Licence Agreement. We have described why and how that is done here: https://github.com/speedment/jpa-streamer/blob/master/CONTRIBUTING.md.
I just merged your changes into the development branch. I cannot say for sure when we will make the next official release but most likely within the next month. Your name is now also on the list of contributors.
Thanks again for your valuable input and contribution!
LGTM!
To process large amount of data is sometime needed to provide additional configuration for the underlying JDBC driver, eg. to disable full resultsets cache in ram.
This is particularly useful to enable cursor "streaming" on the dbms side: eg. getting-results-based-on-a-cursor.
Usually this is implemented with
@QueryHints
annotations in spring or.withHint
methods on Panache repositories.I strongly think that this feature greatly fits JPAStreamer as it permits streaming at all layers involved.