About retrieve

171-180 of 200Refresh
Forum
1

Is it possible to commit only specific elements?

, retrieving only the needed ones, creating new ones (which I want to commit), detaching the ones I've previously retrieved and finally committing. My context is big data and performance is an issue ... the persistency context and retrieving/creating only the required entries.  I
Forum
1

Level 2 cache not hit in @ManyToOne

cache is to improve performance mainly by minimizing client server round trips. Therefore, retrieval ... between objects which requires transparent retrieval of referenced objects, always uses the L2 ... . However, in that case, if not all the results are cached, retrieving them later may require
Forum
1

Memory Leak?

it and then retrieve each of the object one by one. The object is key by Long. Here is the jmap at time1: num ... and other HashMap. Here is the code that retrieves the data. I'm pretty sure I'm not holding objects ... ) {     logger("Retrieved " + j + " objects. Last object: " + d);    }    em.getTransaction().commit
Forum
1

multi thread application, id field sporadically null

you create, persist and retrieve the objects. Except the id field, are other fields initialized correctly ... ? It seems impossible to retrieve an object from the database without its id, since the first thing in every object retrieval is setting the id. Maybe you retrieve a cached object from memory, which is a new object
Issue
1

new objects not available in mappedBy associations

when the object is retrieved from the database again. Try to refresh the department object ... /persistence/retrieve#Retrieval_by_Refresh > If the mappedby tag maps to: > SELECT e from EMPLOYEE e ... already contains a value - it will not be run again unless the object is retrieved again from the database
Forum
1

Performance with large databases

to take the most time are those that retrieve data from the store. This may be explained by examining the ratio between ... should these be about the same speed? Retrieval by ID is expected to be faster, because it enables direct access. Retrieval by an indexed field is usually composed of two steps: First finding the ID and then retrieval by ID. sjzlondon
Forum
1

Query problem after transaction commit

.begin ... persist(p) .. commit of a new object, my client program can no longer retrieve the old ... explorer on the server, my client program can retrieve all the records (no program restart or ... . If you could retrieve old objects but not the recently stored objects then this could be a cache issue
Issue
1

Removing of an entity removes also another entity type

are created and persisted again. The ResolverMapping entities are retrieved from database by a query ... .remove(obj). Directly after remove we try to retrieve again the ResolverMapping entities from ... may be slightly more efficient than retrieving entity objects and then updating them, but it should be used
Forum
1

Using the wrong class to access a database

"); EntityManager em = emf.createEntityManager(); create(em); retrieve(em ... (); } static void retrieve(EntityManager em) { // 1 Query q1 = em.createQuery("SELECT COUNT(p) FROM ... the retrieve method, no data is added. The package name is 'com.objectdb.test2'. The Point class
Issue
1

Best practise loading big data

our implementation after retrieving them. All MyStepBlocks and all MyStep and half of the MyValue objects ... never releases them or not run at all. This seems to be uncommon for retrieval of 1,000,000 objects but maybe could happen with some heap size and GC setting. Can you check if GC is run during the retrieval