【发布时间】:2021-01-28 09:58:01
【问题描述】:
作为文档的一部分,我遇到了以下内容
In Elasticsearch the key to good performance is to de-normalize your data into documents
还有,
the restriction about, where both the child and parent documents must be on the same shard
考虑到多级层次结构(祖父母 --> 父母 ---> 孩子)的场景,其中一些父母比其他父母拥有更多的孩子,并且数据可能会出现偏差,并且很少有分片包含比其他分片大得多的数据。
-
获得更多性能的最佳做法是什么?
-
将所有层次结构放在一个文档中(而不是每个级别一个文档)是个好主意。如果需要将父数据复制到所有文档中,如果有更多子数据,则父数据可能是冗余的?
【问题讨论】:
标签: elasticsearch elasticsearch-performance