About Enhancer

forum_thread

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 and between the creations we call a select query. The execution of the query becomes slower at each iteration. (In the query, we search for an item of type Entity2. However, there is only one entity.)   Pseudocode for the fast and the slow solution FAST: #1 2015-03-03 15:07 Hello, we have a performance problem when we use a large transaction. Let's do exactly the same i ...

 
forum_thread

Replication issue, Replayer failing due to NullPointerException.

I'm getting replication errors and upon trying to play the replayer I get a NullPointerException which i'm also seeing in the slave logs when it's trying to replicate... #1 2012-07-23 07:17 I'm getting replication errors and upon trying to play the replayer I get a NullPointerException which i' ...

 
api-jdo

jdoPostLoad()

Called after the values are loaded from the data store into this instance.(Method of javax.jdo.listener.LoadCallback)

 
forum_thread

@Entity saved in Tomcat session - problem

Hi, I have found a problem, when storing @Entity object in Tomcat session. When starting or stopping Tomcat, I get nasty exception - please check attached log. Strange thing is, that after this exception everything works perfectly fine. The problem appears after using Enhancer. The nasty solution is to create copy of @Entity class as normal POJO and use it to store in session. The problem is, that we need the same logic for temporary users (without storing in DB) and permanent users (stored in database). A separate POJO makes the whole logic quite complicated.... works perfectly fine. The problem appears after using Enhancer. The nasty solution is to create copy of @Entity class as ...

 
api-jdo

newObjectIdInstance(pcClass)

Create a new instance of the ObjectId class of this PersistenceCapable class.(Method of javax.jdo.spi.JDOImplHelper)

 
issue

Threaded Test - Failed to commit transaction: Unexpected internal exception

Hi I'm trying to create a simple producer-consumer queue scenario but am getting the followin exception: Bug Version: 2.2.7 Priority: Normal Status: Fixed Replies: 16 Type:  Bug ...

 
forum_thread

Soft Reference Object Cache Recommendation

(Trying again.  Last post, ~50 minutes to compose, failed, possibly due to an attachment upload size limit being exceeded before the post attempt.  =(  ) #1 2016-10-24 15:15 (Trying again.  Last post, ~50 minutes to compose, failed, possibly due to an attachment upload size limit b ...

 
forum_thread

Queries are slow on a large database

Hi, I have a 12GB database with 787603 entries. It is much larger than usual and there are performances issues. I am doing small queries and they take much longer than I expect, i.e.: Get the total number of entries Get 25 consecutive entries (i.e. 0-25) Get one specific entry On average each query needs 4 to 5 minutes to return a result. I have been adviced to use indexes but they are already used through the JDO Metadata file. For instance I use this class: #1 2014-05-28 13:05 Hi, I have a 12GB database with 787603 entries. It is much larger than usual and there are performanc ...

 
issue

Unexpected Exception during commit

I'm testing code that otherwise has been working with a clean database. I have seen several examples of the following exception. It never seems to happen in the same place twice, though. If you can give me a hint as to what would internally cause this, I'll try to reproduce it. Carl   ... at com.objectdb.Enhancer.enhance(Enhancer.java:66) at com.objectdb.Enhancer.enhance(Enhancer.java:87) at ...

 
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   #1 2011-05-28 22:27 Have read read the documentation on optimistic locks, still not sure how to deal with these exceptions: [ ...