About transaction

61-70 of 200Refresh
Forum
20

Performance in large transactions

Hello, we have a performance problem when we use a large transaction. Let's do exactly the same in several transactions the ObjectDB works much faster. In our use case, we create many new entities ... (FlushModeType.AUTO); EntityTransaction transaction = entityManager.getTransaction
Forum
19

javax.transaction.Synchronization with Java SE 10.0.1

/transaction/Synchronization     at java.base/java.lang.ClassLoader.defineClass1(Native Method ... ) Caused by: java.lang.ClassNotFoundException: javax.transaction.Synchronization     at java.base ... with this footprint [module java.transaction, location=jrt:/java.transaction] and within this module
JPA Doc
19

javax.persistence.EntityManager

). If this method is called when the entity manager is associated with an active transaction, the persistence context remains managed until the transaction completes. Throws: IllegalStateException - if the entity ... : the PessimisticLockException will be thrown if the database locking failure causes transaction-level rollback
Issue
19

Query in nested transaction returns detached entity if lazy-loaded

new objects that have been persisted by other transactions from within a transaction ... manages flushed transactions as a snapshot of the database when flush occurs. Build 2.7.4_04 includes ... in our tool. Caused by: com.objectdb.o._RollbackException: Failed to commit transaction: Optimistic
Forum
19

Cannot catch a PersistenceException and continue the transaction

the transaction as one that need to be rolled back. I understood that I can overcome it in several ways but those don't work for me. Begin a new (nested) transaction in another method that will be rolled back instead of the first one- doesn't work. I got a message that it couldn't begin a new transaction
Forum
19

Bug with unique constraint exception not resulting in transaction roll back

ObjectDB to roll back the transaction and not persist anything.  However, it is persisting both entities. This could happen if the operation is spread over more than one transaction. In a managed environment, in which transactions are started and committed by the application server and not
Forum
19

Custom Transaction Manager

Hi, I am trying integrate ObjectDB and Quarkus Framework. Quarkus use Narayana/Arjuna transaction manager. ObjectDB doesn't allow me to configure custom JNDI name or Transaction Manager class ... :/TransactionManager javax.transaction.TransactionManager java:comp/TransactionManager
Issue
19

ODB-FileWriter holds unecessary entity reference after transaction and entity manager are closed

a transaction (including the entity manager) the ODB file writer still holds a reference to entities ... are enhanced. The entity DBVectorStepBlockCollectionImpl was modified and then the transaction ... , if we execute several transactions on the identical entity manager. Also triggering the Garbage
Forum
19

One transaction or two?

is it more efficient to do everything in one transaction or two? Currently my code looks like ... and adds into separate transactions? I think I remember reading in another forum post that you recommended this, I just wanted to clarify. Actually one transaction eliminates some overhead
Forum
19

Transaction isolation support?

have been unable to find any documentation about how transaction isolation is handled. For example: What happens If I am reading data in transaction A, and then transaction B commits while A is reading ... their own transaction, and the answer would thus depend on the the selected isolation level for the transaction in