Hi , in my database i want to fetch resultlist as big chunks.JPA 2.2 has new feature named Stream.
So i can fetch all JPA queries with less memory.
is there any news for objectdb ?
Will you update objectdb for JPA 2.2 ?
Hi , in my database i want to fetch resultlist as big chunks.JPA 2.2 has new feature named Stream.
So i can fetch all JPA queries with less memory.
is there any news for objectdb ?
Will you update objectdb for JPA 2.2 ?
We hope to support this feature soon.
Meanwhile, you can run the query in LAZY mode, and then data from the database will be retrieved in batches, similarly to the way that JPA 2.2 streams work.
To free memory, however you will have to clear the persistence context periodically and/or remove result objects from the result collection after processing them.
What about performance for using streams for objectdb ?
Stream can run parallel.
We hope to see parallel stream support for non ordered queries.
ObjectDB uses multithreading internally for query execution, when possible.