Skip to content

Commit

Permalink
[Transform][Docs] Delete advise about group_by order (#82886)
Browse files Browse the repository at this point in the history
Since 7.15 transform automatically optimizes the grouping part of the query. We therefore can delete group_by order advise in the transform at scale documentation so it gets simpler.
  • Loading branch information
Hendrik Muhs authored Jan 25, 2022
1 parent 2715db8 commit f412ce4
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions docs/reference/transform/transforms-at-scale.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -160,20 +160,14 @@ we do not recommend using a runtime field as the time field that synchronizes a

[discrete]
[[index-sorting-group-by-ordering]]
== 8. Use index sorting and `group_by` ordering (search, process)

If you use more than one `group_by` field in your {transform}, then the order of
the fields in conjunction with the use of <<index-modules-index-sorting>> may
improve runtime.

Index sorting enables you to store documents on disk in a specific order which
can improve query efficiency. The ideal sorting logic depends on your use case,
but the rule of thumb may be to sort the fields in descending order (high to low
cardinality) starting with the time-based fields. Then put the time-based
components first in the `group_by` if you have any, and then apply the same
order to your `group_by` fields as configured for index sorting. Index sorting
can be defined only once at index creation. If you don't already have index
sorting on the index that you want to use as a source, consider reindexing it to
== 8. Use index sorting (search, process)

Index sorting enables you to store documents on disk in a specific order which
can improve query efficiency. The ideal sorting logic depends on your use case,
but the rule of thumb may be to sort the fields in descending order (high to low
cardinality) starting with the time-based fields. Index sorting
can be defined only once at index creation. If you don't already have index
sorting on the index that you want to use as a source, consider reindexing it to
a new, sorted index.


Expand Down

0 comments on commit f412ce4

Please sign in to comment.