Skip to content

Commit

Permalink
[DOCS] Warn about potential overhead of named queries (#91512)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdonpijpelink authored Nov 14, 2022
1 parent 6fc31d3 commit dceff3f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/reference/query-dsl/bool-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,9 @@ GET /_search
}
}
----

NOTE: This functionality reruns each named query on every hit in a search
response. Typically, this adds a small overhead to a request. However, using
computationally expensive named queries on a large number of hits may add
significant overhead. For example, named queries in combination with a
`top_hits` aggregation on many buckets may lead to longer response times.

0 comments on commit dceff3f

Please sign in to comment.