About fast

forum_thread

Setting temp directory location in ObjectDB

HI, I am using ObjectDB and would to change the temp directory location wihtout using objectDB.conf file. I am using JDO and setting the persistenceManager as follow properties.setProperty("javax.jdo.PersistenceManagerFactoryClass","com.objectdb.jdo.PMF"); properties.setProperty("javax.jdo.option.ConnectionURL", fileName.odb); pmf = JDOHelper.getPersistenceManagerFactory(properties), JDOHelper.class.getClassLoader()); ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

'DROP TABLE' in ODB?

Let's say I no longer need some entity in my project and after deleting all the objects of this type in database I want to remove this type from schema. How can I do this? Is there something like SQL 'drop table' in ODB? ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal with these exceptions: [ObjectDB 2.2.5_04] javax.persistence.RollbackException Failed to commit transaction: Optimistic lock failed for object   ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

JPQL IN Operator

How can I use the standard JPQL IN operator with ObjectDB? This JPQL query works fine with EclipseLink / postgres but throws an exception in objectDB: select distinct dv.creationtime from DataValue dv where dv.capabilityId.capabilityId ==> in <== :capabilities and dv.creationtime >= :earliest and dv.creationtime <= :latest order by dv.creationtime ASC [ObjectDB 2.2.9] javax.persistence.PersistenceException Unexpected query token 'in' (error 752) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

NegativeArraySizeException on commiting a transaction

Hi, we started to get a java.lang.NegativeArraySizeException from ObjectDB upon changing an object in the DB and committing the transaction. I tried to repair the DB file with Database Doctor, but the same error is happening also on the fixed DB file. Btw. during fixing the DB file an Internal error was thrown (details here: http://www.objectdb.com/database/issue/285 ), but the fixing went on and created a new file. ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Some technical questions

Hi, ObjectDB looks interesting. Have two technical questions... (1) what locking model does ObjectDB use? I.e. 2PL or MVCC? Do writers block readers? Do readers block writers? (2) what's the recommended usage for SAAS? One ObjectDB database per customer, or one ObjectDB database for all? Thank you, Andrej ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Can't modify @EmbeddedId in ObjectDB Explorer

Hi! There is entity Journal with @EmbeddedId JournalId. Id's content can't be seen/modified from ObjectDB Explorer from its class. Ok, I get this. It's an @EmbeddedId, so it should depend only on its parent. Problem: id's content can't be modified through its parent neither. Scenario: open db in ObjectDB Explorer, open entity Journal, expand the id, try to modify date/id, save, then refresh data / reopen db, and you'll see that it wasn't modified. Any solutions? ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... Thanks for your fast answer. Is there any reason why ObjectDB/ObjectDB E shouldn't ...

 
forum_thread

Optimistic locking failure

Optimistic locking failure: I am using a Semaphore to force this execution of concurrents transactions T1 and T2 that cause parallel updates to A/B but it does not throw an OptimisticLockException and roll back. ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Deadlock in objectdb code

Running multi-threaded access to an embedded database using JDO, I'm getting a deadlock in objectdb code.  Thread dump attached. ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Merge of entity classes with "mapped by" very slow

Hi, I have found a strange behavior when merging entities with "mapped by" set on @OneToMany relation. Even if object is fetched with find on the same transaction, merge is very slow. It's because on merge every single relation marked as LAZY is fetch from database. Attached two examples - one with mapped by, second with adding entities list without "mapped by". The difference is huge event for such small objects - 2ms (without mapped by) vs ~50ms (with mapped by) ... entity objects that are already managed should be very fast. Build 2.4.2_02 fixes it. If the problem still exists, please post ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...