[英]Delete entities from a datastore table without knowing ancestor
Is it possible to delete entities from a datastore table without knowing their ancestor? 是否可以在不知道其祖先的情况下从数据存储表中删除实体? I wish to delete all entities older than a specific date, but there are many different ancestors. 我希望删除所有早于特定日期的实体,但是有许多不同的祖先。
Provided you have indexed them to be queried by date, you can query the entities by date. 如果已按日期对它们进行了索引,则可以按日期查询实体。
The query will return the entities of interest. 查询将返回感兴趣的实体。 You can find out the ancestor of a given entity from its key - the ancestor's key is part of the entity's key. 您可以从其键中找到给定实体的祖先-祖先的键是实体键的一部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.