How are Google App Engine model classes stored?

I doubt how the objects are stored. Let's say I have a class defined as:

class SomeEntity(db.Model):
    some_number = db.IntegerProperty(required=True)

    def calculate_something(self):
        return self.some_number * 2

I assume that the only thing that is stored in the data store is the name / value / type some_numberalong with the fully qualified name of the class ( SomeEntity). However, I did not stumble upon any information confirming this.

1) Can anyone confirm this?

I would like to confirm that I can change (and add / remove) methods without any effect on the data.

2) Also, what happens to existing objects if I add a new property to the class (and what if this property has required=true)?

+5
source share
2

protobuf ( - ). Life of Datastore Write . .

1) , , // , .

2) ( SQL). Model . , required, . , , .

, appengine-mapreduce . .

+10

. .

, :

db.model_to_protobuf(your_entity)

/ , .

, . , .

+3

All Articles