App engine datastore denormalization: index properties in the main entity or the denormalized entity?
问题 Consider the classic example of blog data modelling, where we have a Blog entity with many properties, and we want to list the latest blogs in a page. It makes sense to denormalize the BlogPost entity into a BlogPostSummary entity which will be shown in the list view, avoiding fetching and deserializing many unwanted properties. class BlogPost(db.Model): title = db.StringProperty() content = db.TextProperty() created = db.DateProperty() ... class BlogPostSummary(db.Model): title = db