Skip to content

Commit bc9c5cd

Browse files
committed
15_Application_joins.asciidoc
1 parent 3e31f3e commit bc9c5cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

400_Relationships/20_Denormalization.asciidoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
[[denormalization]]
2-
=== Denormalizing Your Data
2+
=== Denormalizing Your Data反向规格化你的数据
33

44
The way to get the best search performance out of Elasticsearch is to use it
55
as it is intended, by((("relationships", "denormalizing your data")))((("denormalization", "denormalizing data at index time")))
66
http://en.wikipedia.org/wiki/Denormalization[denormalizing] your data at index
77
time. Having redundant copies of data in each document that requires access to
88
it removes the need for joins.
9+
使用 Elasticsearch 得到最好的搜索性能的方法是有目的的通过在索引时进行反向规格化 ((("relationships", "denormalizing your data")))((("denormalization", "denormalizing data at index time")))
10+
http://en.wikipedia.org/wiki/Denormalization[denormalizing]。对每个文档保持一定数量的冗余副本可以在需要访问时避免进行关联。
911

1012
If we want to be able to find a blog post by the name of the user who wrote it,
1113
include the user's name in the blog-post document itself:
@@ -53,4 +55,3 @@ GET /my_index/blogpost/_search
5355
The advantage of data denormalization is speed. Because each document
5456
contains all of the information that is required to determine whether it
5557
matches the query, there is no need for expensive joins.
56-

0 commit comments

Comments
 (0)