ObjectDB ObjectDB

ObjectDB JPA 2.2 support ( java.util.stream.Stream<T> )

#1

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 ? 

edit
delete
#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.

 

ObjectDB Support
edit
delete
#3

What about performance for using streams for objectdb ?
Stream can run parallel.
We hope to see parallel stream support for non ordered queries.

edit
delete
#4

ObjectDB uses multithreading internally for query execution, when possible.

ObjectDB Support
edit
delete

Reply

To post on this website please sign in.