Open
Description
Philippe opened BATCH-2681 and commented
Today there is no reader component to be configured to read data from a Stream object.
It would be especially usefull that RepositoryItemReader could be configured to read data from a method whose return type is Stream<T> (today we get an exception if you try to do it, it seems to support only Page<T> types).
The reason is that with JPA those method use cursor, if the database support it, and so we can consequently get good performance results when batching treatment.
In the other case, we have to use the HibernateCursorItemReader, which is Hibernate specific because it require a SessionFactory, to read data with cursor.
No further details from BATCH-2681