About SECOND

forum_thread

Connection performace after upgrade to objectdb 2

Hi, I have a problem with objectdb 2 when I tried to get the PersistenceManagerFactory and PersistenceManager : In objectdb 1 : PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(getProperties(physicalPath, objectName), JDOHelper.class.getClassLoader()); takes only 3ms PersistenceManager pm = pmf.getPersistenceManager(); takes 40ms However, with objectdb 2, the same instructions take respectively : 257ms and 238ms which is very expensive. #1 2012-12-10 17:32 Hi, I have performance problems with objectdb 2 when I tried to get the PersistenceManagerFactory and Per ...

 
forum_thread

Java 9 support

Hi,  is ObjectDB supporting Java 9 already ? If not when can we expect the support for it ? ... modular JAR of ObjectDB, I no longer require a second objectdb.jar to make the call to Enhancer as described in issue ( ... round trip write operation of about 31 MB per second!  (10 MB in 320 ms.)  Reads are about 43 MB per second!  Using ObjectDB on faster servers with more resources, MoxyDox can ...

 
forum_thread

Java 6/7 Performance Comparison

Hey, I've been using ObjectDB for a small scale home project to gain some familiarity before proposing it in a commercial project at work. What I've noticed though is that when using objectdb in embedded mode based on the console tutorial, there seems to be a bit of a performance gap running the same code between Java 6 & 7 Tracing it through I can see the bottle neck seems to be at the creation of the entity manager and I was wondering if there are any additional configuration options I may have missed while running under java 7. ... when running ObjectDB Explorer as there is roughly a 30 second delay each time I open the jar/switch connections while running with ...

 
forum_thread

java.sql.Date equals comparison not working with CriteriaAPI

Hello, Using ODB 2.4.5 and the Criteria API, doing a simple equals comparison with java.sql.Date value doesn't match any results in the database. Our code looks like this: ... 0 ) ; cal. set ( Calendar. SECOND , 0 ) ; cal. set ( Calendar. ... 0 ) ; cal. set ( Calendar. SECOND , 0 ) ; cal. set ( Calendar. ...

 
manual

Locking in JPA

Explains how to use optimistic locking and pessimistic locking in JPA.... ; The first argument is an entity object. The second argument is the requested lock mode. A ... rollback. See JavaDoc Reference Page... (on the second lock request). Pessimistic Lock Timeout By default, when ...

 
forum_thread

Join performance in Objectdb

select count(e) from Meta e, ImageNet i, Page p where e.idImage=i.id and e.idPage=p.id; So simple a command cause me half an hour and is running now! Each table has about 160K records. What formula can predict the time for such counting? TIA ... a JOIN on ID fields, similarly to your original query. The second query uses JOIN on direct references. The second form is simpler, faster and more appropriate when using JPA. ...

 
forum_thread

Exception on creation when running multithreaded

Hi, I'm trying to test the creation of an object from my datamodel(Organisation) and the creation process includes the creation of an acl for the newly created organisation all in the same transaction. The process is as followed: 1. The organisation gets created 2. The acl is being searched to check if it already exists 3. if it exists it will be updated, otherwise it will be created   ... fine when running with one thread, however, when adding a second thread some the of the creations fail with the following exception: ... count before it shows there are 800 objects and then the second query for the organisations returns 800 objects as expected. ...

 
forum_thread

using DbUnit with ObjectDb

Are there any examples about how to use DbUnit with ObjectDB? DbUnit requires access to a jdbc connection .. with other providers it's possible to extract the jdbc connection from the EntityManager, e.g. for Eclipselink / Postgres combination you can use the rather long-winded: IDatabaseConnection connection = new DatabaseConnection(((EntityManagerImpl) (em2.getDelegate())).getServerSession().getAccessor().getConnection(), "PUBLIC"); but with objectDb this gives: ... image" /> .. </dataset >   second example: <?xml version = '1.0' encoding = 'UTF-8' ...

 
issue

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

objectdb-2.6.9_01 NetBeans8.1+Glassfish4.1.1 Mac OS X Possibly related: How to Use a SF with extended Persistence Context? Test mini web app at: https://www.webel.com.au/downloads/objectdb/GreensoftObjectdbTestWebMini3683.2016-09-29.tgz ... the attempt to use the buildProject(String name) method a second time in a row (in recent versions of ObjectDB only): Info: ... But then, when the commit() is executed on the second build pass, I get a new error (one that does not prevent the building of ...

 
forum_thread

Attempt to open a non existing file '/tmp/objectdb_xxxx/SortQueryItr_6.mrg'

Hi, I came across an error - but i have not been able to create a simple reproducible case - the error does not happen often and does not happen always -  Let me explain: 1/ I run 5 java applications at the same time on one machine - each application is using an ODB file (each one is using a different one). Basically each application does a sorted query ( qqq = em.createQuery("SELECT bk FROM OBN bk ORDER BY bk.time ASC", OBN); ) 2/ after a little while - some of the applications throws this error message: ... delete the lock and then the folder - what happen to the second process which was waiting for the lock? does the second process continue and try to delete the (already deleted) folder as ...