> def test():
> for i in range(1, 1000):
> ferisrecord = Feris(pengarang = "Feris Thia" + str(i), content="Great
> app" + str(i))
> ferisrecord.put()
Try batching your puts. Right now you are doing serial put() on 1000
instances. I'd try batching those puts and see how much faster group
puts can be:
def test:
batch = 100
num = 1000 / batch
for i in xrange(0, num):
ferisrecords = []
for j in xrange(0, batch):
ferisrecords.append(new_ferisrecord(i, j))
db.put(ferisrecords)
This discussion should probably be on a separate thread rather than
take-over the original intent.
-Bill
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---