All right, here is a test app (written in python, imports stripped):

class TheTest(db.Model):
    id = db.IntegerProperty()
    name = db.StringProperty();

class TestHandler(webapp.RequestHandler):
    def get(self):
        start_api = quota.get_request_api_cpu_usage()
        start = quota.get_request_cpu_usage()
        bulk = []
        for i in range(100):
            test = TheTest()
            test.id = random.randint(100,1000000)
            test.name = "abcdefgh"
            bulk.append(test)
        db.put(bulk)
        end_api = quota.get_request_api_cpu_usage()
        end = quota.get_request_cpu_usage()
        self.response.out.write("cost: %d : %d megacycles." % (start - end, 
start_api - end_api))

The result of the request is: cost: -204 : -9800 megacycles.
And the logs show: /test 200 383ms 8353cpu_ms 8166api_cpu_ms

It is around 12 entries per CPU second. That means, one can forget about 
putting million entries into database (an XML of 20 megs can have such 
amount of data, but it will take ages to parse it)


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to