Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 批处理数据存储祖先查询_Python_Google App Engine_Google Cloud Datastore - Fatal编程技术网

Python 批处理数据存储祖先查询

Python 批处理数据存储祖先查询,python,google-app-engine,google-cloud-datastore,Python,Google App Engine,Google Cloud Datastore,假设我有: class ParentKind(db.Model): """These are the parents.""" class ChildKind(db.Model): """Children. Their parents are ParentKind objects.""" 然后我创建不同的父对象,parent\u 1和parent\u 2。如何在一次查询中查询5个子opparent_1和10个子opparent_2?(例如,查询或祖先查询。)您不能。您必须将其作

假设我有:

class ParentKind(db.Model):
    """These are the parents."""

class ChildKind(db.Model):
    """Children. Their parents are ParentKind objects."""

然后我创建不同的父对象,
parent\u 1
parent\u 2
。如何在一次查询中查询5个子op
parent_1
和10个子op
parent_2
?(例如,查询或祖先查询。)

您不能。您必须将其作为两个查询运行,并在本地合并结果。

您不能。您必须将其作为两个查询运行,并在本地合并结果