Hi all,
in my app I use a relationship between two entities. Here is an
example:
class parentClass {
...
@Persistent(dependent = "true")
private childClass child;
...
}
class childClass {
...
@Persistent
private String parentEncodedKey;
...
}
What is the fastest way to access the parent and the child object? I
know that there is lazy loading of childs. So without a "touch" of the
child, it will be null.
So what is the best, fastest or most resource saving way to get both
objects parent and child:
Solution 1: fetch the parent and touch the child with a getter to load
the child-data
Solution 2. fetch the parent and do an extra query on the childClass
with a filter on the key of the parent (parentEncodedKey)
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.