About SECOND

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 ... improvement. If you keep the date only in the second entity class - at least define 2 indexes: one on the date field and the ...

 
forum_thread

Optimization Question

One of our uses for your ObjectDB software is in maintaining the current state of a large number of data objects called tracks. These tracks change very frequently over time (every 10-15 seconds is not unreasonable), but they are also very large complex data structures so it's extremely difficult to identify exactly what fields have changed from one update to the next. Currently the following sequence executes when a track update comes in: - If it’s a new track simply add it to the database. #1 2010-06-16 15:41 One of our uses for your ObjectDB software is in maintaining the current state of a large number of data objects cal ...

 
forum_thread

Problem with @OrderBy

When I use @OrderBy and supply multiple order fields I get and error when ObjectDB loads that entity. Example code: @Entity @Table(name="Problems", schema = myDB") public class Defects  implements Serializable { ... ...  @OneToMany(mappedBy="problem") @OrderBy("seqRel, noteSeq") Set<Notes> notes; ... ... } ... The error seems to be the second field "noteSeq" in the above example is referenced as if it were an ...

 
forum_thread

OneToMany and cascade delete problem

Hi, I don't really know if this is a bug or maybe model that I make is bad. I have a problem with with two different classes with OneToMany relation to one, shared class. For example (first class): @Entity public static class Store { @OneToMany(targetEntity = Offer.class, mappedBy = "store") private List<Offer> offers; } second class: ... List<Offer> offers ; } second class: @ Entity public static class ...

 
forum_thread

100% CPU when using multiple BETWEEN

Hi, we are evaluating ObjectDB 2.5.1_03 in embedded mode. We have a DB of about 2800 instances of a class that has two java.lang.String members: toExtension and fromExtension. There are other members in the class, but not relevant to the problem.   A query like this cause the java process to start running at 100% CPU (endless loop) and it never recovers: ...   The following query works fine (sub second response): SELECT r FROM RecordingMetaData AS r ...

 
forum_thread

Evaluation license in a different network

Dear Support Team I recognized, that the evaluation license is bounded to the LAN network in my office and didn't work in a different (WLAN) network. Is there any problem if I create a second license key for my home office (i.e. WLAN). best regards Arne ... (WLAN) network. Is there any problem if I create a second license key for my home office (i.e. WLAN). best regards ...

 
api-jpa

lessThan(x, y)

Create a predicate for testing whether the first argument is less than the second.(Method of javax.persistence.criteria.CriteriaBuilder)

 
api-jpa

setHint(hintName, value)

Set a query property or hint.(Method of javax.persistence.TypedQuery)

 
api-jpa

find(entityClass, primaryKey, lockMode)

Find by primary key and lock.(Method of javax.persistence.EntityManager)

 
forum_thread

_UserException: Attempt to open a database file '...' that is currently in use

I have an application which runs correctly in NetbeansIDE but after building it, it won't just run sometime, the app stop responding to event at a particular point. I was able to reproduce this issue while running the jar file in command line and I got this exception which I have it stack attached here http://i.stack.imgur.com/IH8XZ.jpg ... this exception only happen after running the app the second time. If I'm runnig the app the first time after rebooting my ...