About embedded

forum_thread

Performance question

Hello, suppose you have an entity that holds a reference to another entity which in turn contains e.g. a date field you want to query for. Is there an improvement in performance if I create a "mirror" date field in the original entity, removing the need to traverse through the referenced other entity? So, querying for "all objects with object.otherobject.date > 1.1.1980" is slower than "all objects with object.date > 1.1.1980"? Or doesn't this matter, using proper indexing? Thanks, Benjamin ... the date will improve performance (unless otherobject is embedded object rather than an entity), because the query will have to handle ...

 
manual

Entity Management Settings

Explains settings and performance tuning of JPA entities in ObjectDB, the fast Java object database for JPA/JDO.... end settings that are relevant on the client side and in embedded mode. The default configuration file contains the following ...

 
forum_thread

Degrading performance overtime

hi, We have an application that uses embedded odb database. We have configured odb to start at 50meg chunks and grow at 50 megs a time. as the files become larger between 1 and 2 gigs we start to see considerable degrade in performance caused internal objectdb locking: ... hi, We have an application that uses embedded odb database. We have configured odb to start at 50meg chunks and grow ...

 
forum_thread

Multithreading Test and Deadlock

I move on to testing the multi threaded part of ObjectDB. From the same code (MyMain.java), I set the thread count from 1 to 4 and not only do I found it's slower overall (each thread only needs to insert 250K entities) but the threads are stuck with a deadlock. All threads share the same EntityManagerFactory but they have their own EntityManager. The stack trace is attached. ... Regarding multithreading speed - currently in ObjectDB embedded mode multithreading improves performance in reading but not in ...

 
forum_thread

Issue with compile time enhancement

I have an entity library which I have integrated build time enhancement in.  The enhancer reports it has processed all of my persistent classes.  When I attempt to run a Bootstrap process with this library I get the error shown below.  The entity referenced in the error (Terms) is listed as having been enhanced. I am running with ObjectDB in embedded mode via a reference to a persistence unit also shown below. Please let me know if you need any additional information to diagnose this problem. Thanks, Joel ... been enhanced. I am running with ObjectDB in embedded mode via a reference to a persistence unit also shown below. ...

 
forum_thread

No clue how to query with collection

Hi there! Actually, what I have is something like: @Embedable class Address { String getStreet(); int getStreetNo(); } @Entity class Contact { Collection<Address> getAddresses(); }   #1 2011-12-02 15:55 Hi there! Actually, what I have is something like: @ Embedable class Address { ...

 
api-jdo

Embedded.ownerMember

The member in the embedded object that links back to the owning object where it has a bidirectional relationship.(Annotation Element of javax.jdo.annotations.Embedded)

 
api-jpa

hasSingleIdAttribute()

Whether the identifiable type has a single id attribute.(Method of javax.persistence.metamodel.IdentifiableType)

 
issue

probable error in text of manual about embeddable classes

at http://www.objectdb.com/java/jpa/entity/types website in "Embeddable Classes" section there is a phrase "e.g. their instances cannot be shared by different entity objects" which seems to be wrong. ... "Instances of embeddable classes are always embedded in other entity objects and do not require separate space allocation ...

 
forum_thread

Failed to create a new file 'target\objectdb\log\archive' (error 112)

Hi, we are using ObjectDB 2.4.6_10 (embedded mode). The pre-registration of a data type (see below) fails because ODB can't create a new file in a non-existing folder hierarchy. The user under which the JVM is executed in which the code below is run does have write permissions on the folder "target\objectdb". The folder "target\objectdb\log" does not exist yet. Do we have to create it beforehand? This issue is affecting our integration tests against ODB and is pretty major for us. Thanks ... Hi, we are using ObjectDB 2.4.6_10 (embedded mode). The pre-registration of a data type (see below) fails because ...