Async query ObjectDb

#1

1. Is it possible to run async objectDb queries for long time operations and stop them if it necessary?

2. Is it possible to stop sync ObjectDb query from another thread for long time operation for example getResultList()?

Link to Java API: https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html

#2
  1. In JPA query execution is always synchronous. However, you can execute a query asynchronously by using a separate thread for that query execution. You will also need a separate EntityManager for that thread.
  2. Stopping a running query is not supported but restricting execution time is supported.
ObjectDB Support

Reply