About performance

release

2.3.0

... operations of large objects. Improved the performance of navigation through an inverse (mapped by) field if the owner ... in criteria queries . Improved Explorer performance by disabling EAGER fetch. Fixed critical bugs in ...

 
forum_thread

Navigation to Collection Elements

Greetings ObjectDB team, Suppose I have a collection typed field (list/map/set...) in my persistent object of class X. Can I navigate (as oppose to using JOIN) to individual elements (in JPA & JDO) ? e.g.: x.list.get(10) x.map.get("key") x.list.get(10).get("key") // the element itself is a map Thanks & Best Regards... (it is an extension of ObjectDB) and it also leads to performance penalty. ObjectDB Support ObjectDB - ... ? If such navigations in queries lead to performance penalty, how slow is it and would you recommend something better ? ...

 
forum_thread

A bidirectional OneToOne association with a shared primary key

Hi, In Hibernate, it is possible (using Hibernate specific annotations) to define a bidirectional @OneToOne association that has a shared primary key, example: http://fruzenshtein.com/bidirectional-one-to-one-primary-key-association/ ... will not be created. Regarding performance, in many cases managing two unidirectional relationships is more ... the response. In order that I can be sure to obtain the performance advantage you mentioned, can you provide or point me to any ...

 
forum_thread

Bidirectional OneToMany is slow on updated items

Hello, I have a problem with the following situation. I insert persons with addresses. In the first run, they are all new with a new address. It runs fast. In the second run, the persons are all loaded and got a second address. This seams to be much slower. The Entities are all enhanced by the javaagent (which you can see in the contained eclipse launch configuration) Is there any way to speed it up?       ... is not empty. A simple action that can improve performance dramatically, is to avoid using mapped by collections: @ ... are faster than the 1st. If you need to improve performance further, consider replacing the find calls of Address and ...

 
release

2.2.5

... in criteria queries . Improved Explorer performance by disabling EAGER fetch. Fixed critical bugs in ... such as List<String> ). Improved performance of eager fetch in queries. Added Maven build ...

 
forum_thread

Insert time increases as db grows.

Hello, ... With enhanced classes you may get much better performance. Enhancement is very easy. For example, you can apply ... EntityManager after every commit , to avoid further performance loss over time. ObjectDB Support ...

 
forum_thread

High availability and other pratical questions

Hi,   I've just started developing a mobile app which will use a server side, hopefully handling a lot of processing and traffic. I was inteding to use TomEE+ with built-in OpenJPA and Postgres DB, initially on one master server but as it grows more master servers will be set (in different geo locations/data centers) using some data sync mechanism between them.   Now that i've met ObjectDB I want to check the option using it instead of postgres so I have few questions regarding it: ... As the embedded DB seems to be with superior performance would you recommend using it with TomEE+ instead of creating a 2 ... embedding ObjectDB in the main Tomcat server will improve performance. You should be able to access embedded ObjectDB from other Tomcat ...

 
forum_thread

Query for objects persisted within the same transaction

I have a question concerning reading uncommited entities with query, within active transaction. For example, I read data from file. Each line contains value of one of entity's attributes but those values are not unique, so it's possible to have a multiple instances of the same entity. To eliminate duplicates, after reading every line I first check using a query, if an entity with that attribute value already exists. If no - I create one and persist it.... Thanks, The part about performance in documentation is so true. I think I'll stick with map to check for duplicates, as performance drop is like 20x - just tested. ...

 
forum_thread

IMK Stall with certain query

Hello, I am experiencing constant IMK Stall notifications from Java when using certain query: 2015-09-01 16:53:15.785 java[3678:5217999] IMK Stall detected, *please Report* your user scenario in <rdar://problem/16792073> - (imkxpc_deadKeyStateWithReply:) block performed very slowly (4.63 secs) i am sure it is linked with objectdb as these are thrown each time one particular query is used: ... buyerId (if not the PK) and buyerName may improve performance.   ObjectDB Support ...

 
forum_thread

More Efficient Primary Keys

Can you give us a recommendation as we can represent the Key (UUID) most efficient? Both in terms of memory usage of the database files, memory usage of the JVM and efficiency for queries. We already need the key before the entities are persisted so that we can build even references. ... you recommend something else? Finally, how much performance improvement would bring a switch to a single long? ... It is unclear if a composite of two longs can produce any performance gain over a single string. ObjectDB ...