You can save yourself appending to the updated list.

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


2011/1/27 Wim den Ouden <[email protected]>:
> Hi Michael,
> With small entities and without transactions, groups, high replication
> etc. you can save much more entities p/s
> from Nick Johnson (google)
> batch put, also delete
>
> updated = []
> for entity in MyModel.all().filter("color =",
>    old_favorite).fetch(100):
>  entity.color = new_favorite
>  updated.append(entity)
> db.put(updated)
>
> gr
> wim
>

-- 
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.

Reply via email to