The appengine docu says on repeated ndb properiertes, that:
When updating a repeated property, you can either assign it a new list or mutate the existing list in place.
https://developers.google.com/appengine/docs/python/ndb/properties#repeated
Two questions:
do I save write operations when I just mutate the list, instead of putting a new list in place?
how do I do exactly the mutation? just append the object and delete items within the list as I would do it with a list in python?
Thanks!
Yes you have it correct in your mind.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.