0

I'd like to reduce the number of queries to delete entities in Google App Engine. I already know how to delete them with ancestor as below sequences.

  1. Set an ancestor to query and fetch them.
  2. Convert entities to keys and delete them using keys.

I'd like to remove first step. My expectation is deleting all entities by ancestor without fetching as below.

DELETE FROM DS1 WHERE ancestor is "PARENT"

Is it possible?

4

1 回答 1

1

没有办法删除这样的实体。您将需要通过 Key 访问它们并批量删除。

尽管有一种更适合您需求的查询类型,即仅键查询,因为您似乎正在查询完整实体以删除它们。

于 2013-07-22T07:38:48.793 回答