Well, yeah, it depends on the questions you want to ask the datastore and what you're going to do with that data. If your list is large, do you always want to fetch the whole thing together anyway? Then an owned relationship might be fine (but note the entity fetch limit).
Do you want to fetch things in smaller pieces? Then the model recommended by Ieszek is probably going to serve you better. I recommend reading about entities and entity groups and then the articles about performance and modeling. There's a lot there that's relevant. On Sep 22, 8:00 am, Andreas Kristensson <[email protected]> wrote: > My thinking as well. > > However, looking at GAE Java examples, tutorials, articles, etc, it's > often the other way around - i.e. keeping lists with referenced > objects... Might be that those examples outline one-to-few > relationships where it's (for some reason?! simpler?!) ok to have > lists of referenced objects instead of lists of keys to referenced > objects. > > On Sep 22, 2:46 pm, leszek <[email protected]> wrote: > > > Much better is to keep List<Key> than retrieve Pictures on demand > > ('paging' them) using 'batch gets' : > > >http://groups.google.co.uk/group/google-appengine-java/browse_frm/thr... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
