About clear

41-50 of 177Refresh
Forum
2

find() delay

results. I tried em.flush(), em.clear(), etc.. that do not work. Any idea? TIA Maybe trans is not ... ();   }//*/     /* codes-2.   em.close();   em = emf.createEntityManager();   //*/   em.clear(); // codes-3   trans ... . So, is there any reasonable method than .clear()? OK. Now I see the problem. You have a bidirectional
Forum
2

Insertion Speed Rate and Batch Load

you have to empty it after commit:     em.getTransaction().commit();     em.clear(); // empty ... for changes... Enhancement solves this problem, but still, invocation of clear slightly improves performance ... : http://jpab.org/Basic/Persist/Few.html That EntityManager.clear() does the trick. I agree
Forum
2

Run out of memory

#Batch_Store_. However the problem is that it seems that even calling flush followed by clear ... ) {     this.commitCount.set(0); this.em.flush(); this.em.clear(); System.err.println ... (); this.em.clear(); this.em.close();     System.err.println("Commit Done"); } protected void
Forum
2

Entity not removed 100%

responsibility to clear references to removed objects. Cascading removal operates on the other direction and cannot clear references after removal. If you use bidirectional relationship then you only have to clear the owner side, the owned side will be cleared automatically after refresh
Forum
2

Left join fetch behaviour doesn't retrieve children?

();         em.clear();         em.close();         // Try to retrieve parent and children using ... .getTransaction().commit();   em.clear();   em.close();   // Try to retrieve parent and children ... check if children are retrieved   em.clear();   em.close();   emf.close();   if (myEntity
Forum
2

Merge Issue: Attempt to reuse an existing primary key value

("child1"));         em.merge(e1);         em.getTransaction().commit();         em.clear ... (e2);         em.getTransaction().commit();         em.clear();         em.close ... ();         Assert.assertEquals(2, resultList.size());         em.clear();         emf.close
Forum
2

Soft Reference Object Cache Recommendation

public void jdoPreClear(){ if(null != softReferenceData) softReferenceData.clear ... ) softReferenceData.clear(); softReferenceData = null; } @Override public void jdoPostLoad ... softReferenceData. if(null != softReferenceData) softReferenceData.clear
Forum
2

Several parallel threads to speed up query on one DB

used to do a clear after running each query - The lock contention disappears when I removed the "em.clear()" - Obviously I need to clear the entity managers - it looks like the em.clear() of one query
Forum
2

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

_EntityManager.clear(); m_EntityManager.close(); } After executing code above (write a 10-15 ... ); } m_EntityManager.getTransaction().commit(); m_DataKeysCache.clear(); m_EntityManager.flush(); m_EntityManager.clear(); } When we completed import data to database
Result
1

ObjectDB version 2.4.2

implementation (removed temporary object clearing). Fixed the Explorer to show null values in primitive fields (unset values in new fields) correctly. Fixed a bug in clearing embedded objects during merge. Added automatic cascading through embedded objects. Fixed a bug in clearing persistent properties