Skip to main content

alfred westerveld's Library tagged engine   View Popular

22 Oct 09

Google App Engine Blog: 10 things you (probably) didn't know about App Engine

  • for entity in MyModel.all().filter("color =",
    old_favorite).fetch(100):
    entity.color = new_favorite
    entity.put()

    Doing the update this way requires one datastore round trip for the query, plus one additional round trip for each updated entity - for a total of up to 101 round trips! In comparison, take a look at this example:

    updated = []
    for entity in MyModel.all().filter("color =",
    old_favorite).fetch(100):
    entity.color = new_favorite
    updated.append(entity)
    db.put(updated)

1 - 20 of 30 Next ›
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo