[英]elasticsearch parent/children aggregation performance
I am just an elasticsearch newbie. 我只是一个Elasticsearch新手。 According to the following elasticsearch document,
根据以下elasticsearch文档,
The join field shouldn't be used like joins in a relation database.
联接字段不应像关系数据库中的联接那样使用。 In Elasticsearch the key to good performance is to de-normalize your data into documents.
在Elasticsearch中,获得良好性能的关键是将数据反规范化为文档。 Each join field, has_child or has_parent query adds a significant tax to your query performance.
每个联接字段, has_child或has_parent查询都会对您的查询性能造成很大的负担 。
Note that the has_child is a slow query compared to other queries in the query dsl due to the fact that it performs a join.
请注意,由于has_child执行联接 ,因此与查询dsl中的其他查询相比,它是一个慢速查询。
Note that the has_parent is a slow query compared to other queries in the query dsl due to the fact that it performs a join.
请注意,由于has_parent执行联接 ,因此与查询dsl中的其他查询相比,它是一个慢速查询。
I can understand these query types are slow and should be avoided. 我可以理解这些查询类型很慢,应该避免。 But what about parent and children aggregations ?
但是父母和孩子的聚集呢? I can not find any document or performance test result which says these aggregations are slow or not so bad.
我找不到任何文件或性能测试结果,这些结果表明这些聚合速度很慢或不太糟糕。
I have to test it though, can someone give me some advice ? 但是我必须进行测试,有人可以给我一些建议吗?
Parent and Child Aggregations are definitely slower compared to other Aggregations. 父子聚合肯定比其他聚合慢。 I have tested it in my applications and found it much slower than normal ones.
我已经在我的应用程序中对其进行了测试,发现它比正常应用程序慢得多。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.