alfred westerveld's Library tagged → 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)
Selected Tags
Related Tags
Sponsored Links
Ads by Google
Top Contributors
Groups interested in engine
Related Lists on Diigo
-
IBP_overview
iBusinessPromoter (IBP) is ...
Items: 13 | Visits: 310
Created by: nmstrategies _
-
Experiential and Interactive Marketing
News and insights relating ...
Items: 41 | Visits: 125
Created by: Augie Ray
-
WebKit and the Future of the Open Web
WebKit is an advanced HTML-...
Items: 20 | Visits: 104
Created by: Gary Edwards
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
