Improve App Engine performance by reducing entity size

后端 未结 3 1753
庸人自扰
庸人自扰 2021-02-04 17:24

The objective is to reduce the CPU cost and response time for a piece of code that runs very often and must db.get() several hundred keys each time.

Does this even work

3条回答
  •  梦如初夏
    2021-02-04 18:04

    To remove properties from an entity, you can change your Model to an Expando, and then use delattr. It's documented in the App Engine docs here:

    http://code.google.com/intl/fr/appengine/articles/update_schema.html

    Under the heading "Removing Deleted Properties from the Datastore"

提交回复
热议问题