I'm wondering how other people have been modeling hierarchical
information
such as nested comments.
My first thought was to do something like this:
class Comment(db.Model):
reply_to = db.SelfReferenceProperty(collection_name="replies")
author = db.UserProperty()
content = db.TextProperty()
However, this isn't scalable, as a query is made for every
comment in the thread.
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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?hl=en
-~----------~----~----~----~------~----~------~--~---