The cost of obtaining the missing entity

My application can calculate a small number of keys for which objects often do not exist in the data warehouse. For example, I can send an array for 15 keys, of which only 4 objects are returned.

The docs simply indicate that get charges as one read operation. Is this still true if the entity does not exist?

+5
source share
2 answers

You will pay for the allocation of keys (per key) and change a small fee (currently it costs $ 0.01 for 100,000 operations).

If I understand the invoice page , getting 10 objects using keys will cost you 10 small units + reading units * of the found objects.


, , tl; dr, .

, 10000 .

class DevNull(db.Model):
    pass

class EmptyHandler(webapp2.RequestHandler):    
    def get(self):
        for i in xrange(10):
            keys = [db.Key.from_path('DevNull', i*j+1) for j in xrange(1000)]
            res = DevNull.get(keys)

            print len(res)

10 000 , 5 .

+4

", , ".

, Google.: D

0

All Articles