title: Why is GAE datastore so slow?
body: <p>Imagine I add a new user in the datastore. I have to add <strong>200 rows</strong> for him (they just contain zeros). But it might take <strong>40 seconds</strong>. The real user that has registered for my website has to wait this time before he proceeds. In MySQL it takes fractions of a second. What do you suggest?</p>
  
  <p>Consider this code. It takes 10 seconds on the Google servers, which is still too slow.</p>
  
  <pre><code>def get(self):
  
      class Movie(ndb.Model):
          title =  ndb.StringProperty (required=True)
          rating = ndb.IntegerProperty (required=True)
  
          @classmethod
          def populate(cls, n):
              for i in range(n):
                  o = cls(title='foo', rating=5)
                  o.put()
  
      t1 = datetime.datetime.now()
  
      Movie.populate(200)
  
      t2 = datetime.datetime.now()
      self.response.write(t2 - t1) # ~10 seconds
  </code></pre>