I have used relational type models, where each node in the tree
points to its parent. You can make this queryable in some way by
storing a list of ancestors or descendants. Or, you can do some
denormalization. I've also used the each-node-is-an-entity method in
conjunction with a meta-data-entity that stores the actual structure
as something like a serialized nested dict. There are other subtle
variations on each of these themes. The right one probably mostly
depends on how you will write and *especially* on how you will need to
query and fetch the data. Pick the technique that makes fetching /
traversing / querying the tree easiest for your app.
If each node is light-weight, like a name, then storing the entire
tree serialized works well too (I frequently do this for meta-data
used in computations). Just be aware it makes querying a bit more
difficult. If the nodes are a little heavier, but still pretty small,
the idea of storing the tree until hit hits some critical size and
splitting it is cool. If you expect most trees will fit in a small
number of entities (like 1), this could be a very nice solution since
a single fetch by key gets the whole tree. If you've got a good way
to do this for your app, it might be worth looking in to.
The lucky boots + kick the crap of the code warranted some
responses; disappointed with the rest of the group community....
Robert
> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>
>