Skip to content

chapter43_part1: /404_Parent_Child/40_Parent_child.asciidoc #275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 22, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revise docvalue and maps
  • Loading branch information
weiqiang.yuan committed Sep 25, 2016
commit 4bf0ce85c591e6ef946737540938a4806bb0c430
4 changes: 1 addition & 3 deletions 404_Parent_Child/40_Parent_child.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

Elasticsearch 维护了一个父文档和子文档的映射关系,得益于这个映射,父-子文档关联查询操作非常快。但是这个映射也对父-子文档关系有个限制条件:父文档和其所有子文档,都必须要存储在同一个分片中。

父-子文档ID映射存储在 <<docvalues>> 中。通过 <<docvalues>>,可以将热点查询的 ID maps 维护在内存中;当 ID maps 变得非常大时,还可以将其扩展加载到硬盘中。


父-子文档ID映射存储在 <<docvalues>> 中。当映射完全在内存中时, <<docvalues>> 提供对映射的快速处理能力,另一方面当映射非常大时,可以通过溢出到磁盘提供足够的扩展能力

[[parent-child-mapping]]
=== 父-子关系文档映射
Expand Down