Answer the question
In order to leave comments, you need to log in
Question about GAE quota rules
I'm interested in the "Datastore Write Operations" and "Datastore Read Operations" fields.
For example, I have a record (entity) containing 10 fields. When reading it from the database, changing each field and then writing it back to the database, how will transactions be taken into account? Like one or like ten? Does it make sense to combine fields into, say, dictionaries or lists?
Answer the question
In order to leave comments, you need to log in
Resource Billing Rates
Calculation rules in the "Costs for Datastore Calls" table
This is not obvious, but for example in Python any operation on the db.Model entity is considered a read/write operation:
employee = Employee()
emplee.name = "John Smoth" # - операция записи
print emploee.name # - операция чтения
After put()
there will be one operation + n
, where n
the number of indexes affected by this change. I highly recommend using ndb
models from the very beginning for which you can set up transparent caching out of the box, monitor indexes because GAE builds an index for all fields, which leads to situations where the index is an order of magnitude larger than the data in the database (exclude all fields for which there are no you need to search), and wherever it is possible to use asynchronous calls to the API (not only to the database), although this will not always reduce the number of calls to the database, it will greatly save CPU time.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question