Reputation: 183499
What are the consequences if you switch a model's base class from db.Model to db.PolyModel (You decide you want to add polymorphism) after it already has entities stored in the datastore?
Also, is there any reason not to always create your models as PolyModels, so subclassing is never an issue?
Upvotes: 0
Views: 214
Reputation: 31928
As for you for your first question, it doesn't seem like an issue, since changing modal base class is a documented way to remove properties by Google.
I believe that PolyModel has some hidden cost when accessing the properties, this is why you should start with Model and switch only if necessary.
Upvotes: 3