About refresh

release

2.3.7

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

 
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)

 
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. ...

 
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.6

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

 
forum_thread

javax.persistence.PersistenceException

Hi I am trying to get a basic EclipseRCP project working with Objectdb. At the very first line in creating a View public void createPartControl(Composite parent) { EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/db/pilots.odb"); I get the following "javax.persistence.PersistenceException: No Persistence provider for EntityManager named pilots.odb at javax.persistence.Persistence.createEntityManagerFactory(Unknown Source)....." #1 2011-06-19 07:32 Hi I am trying to get a basic EclipseRCP project working with Objectdb. At the very first line in creatin ...

 
release

2.3.4

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

 
release

2.3.5

... 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 ...

 
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! ...