About retrieve

191-200 of 200Refresh
Forum
1

Fetching Collections Puzzle

retrieve the Nodes stored in this list. Because no matter what I try, if I dont declare the FetchType to Eager, the children field of all my retrieved nodes are of size zero When I declare the FetchType as Eager, then isn't the database actually retrieving the whole graph stored in the database
Forum
1

find() cost unreasonable time!

"? TIA It means loading the graph eagerly (see Retrieval by Eager Fetch in the manual). the effect ... ()? Find is very efficient in retrieving a single entity object but less efficient when you need to retrieve many entity objects (524,290 in your test). In that case - you should use a query. Eager
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