About refresh

forum_thread

find() delay

Hi, I tried objectdb in following steps: 1, for 1 to 30 {trans.begin(); create typeC o; em.persist(o); trans.commit();} 2, for 1 to 30 {p = em.find(typeC.class, i); print(p)} So simple a test, there is no result in one go; I have to disable step 1 and run again, then Step 2 output the expected results. I tried em.flush(), em.clear(), etc.. that do not work. Any idea? TIA ... 03:11 Try: em.refresh(employee); ObjectDB Support ObjectDB - ... Ok, finally, the refresh() is the bingo. Thanks very much! ...

 
release

2.4.0

... with pessimistic lock to bypass cache and to force refresh. Version 2.3.1 Added support for using ...

 
release

2.4.1

... with pessimistic lock to bypass cache and to force refresh. Version 2.3.1 Added support for using ...

 
forum_thread

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking strategy supported by a version field. Is it possible to prevent the increment of the version of entity E when entities are added to or removed from the collection? Something like the equivalent of @OptimisticLock(excluded=true) in Hibernate? Thanks, Farid #1 2013-04-30 15:49 Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) ...

 
forum_thread

Listing large number of complicated objects with paging.

Hi, For last few hours I was working on a problem with bad performance and memory problems with such a simple query: select prod from Product prod order by prod.id ASC Right now I have 55541 'Product' (attached to this post) entities in database and I'm trying to speed listing them with paging. The problem is, that running code that looks like this: ... 1sec Hot database: 600ms Hot database - refresh of the same page: 160ms. Memory usage - no more than 35MB. ...

 
api-jdo

javax.jdo.Query

The Query interface allows applications to obtain persistent instances, values, and aggregate data from the data store.(Interface of JDO)

 
release

2.3.6

... with pessimistic lock to bypass cache and to force refresh. Version 2.3.1 Added support for using ...

 
forum_thread

JPA vs JDO - which is more efficient for OneToMany queries?

I'm curious about the trade offs between JDO and JPA. Seems to me that JDO will perform better and be statically typed. For example: Assume there are Customers and Orders.... read the object that contains the inverse field (again) or refresh it. 2) You have to persist both unless you have automatic cascade ...

 
release

2.3.7

... with pessimistic lock to bypass cache and to force refresh. Version 2.3.1 Added support for using ...

 
forum_thread

Database Inconsistency or corruption

Hi, since a week I have been trying to find a solution to a strange problem. We are using ObjectDB 2.6.8_02 im embedded mode. The problem is that data gets lost when updating an entity. 1-) Background Consider Three entities: ObjectValue, Attribute and Value. ObjectValue has a one to many relationship to Attribute and Attribute has a one to one relationship to Value. ... the up to date data from the database (e.g. by using refresh) both sides will reflect the new relationship. However, if you only ...