I have models set up as the following:
class Day(db.Model):
date = db.DateProperty()
total = db.FloatProperty()
class Event(db.Model):
desc = db.StringProperty()
amount = db.FloatProperty()
The hierarchy is as such: User > Day > Event (Users have Days. Days have Events.)
When a user logs in I want to select their days (for a range by date lets say) and then for each day I want to get their Events. Let's just say these are displayed in a list for now.
Should I use the parent property to create an explicit entity group? Or should I add a reference property on Day for a User, and add a reference property on Event for a Day?
What are the pros and cons of each method? Performance considerations? Scalability considerations? And also, how would I query for this in the best possible way.
Thanks!