mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-30 02:13:33 -04:00
SQL: Increase hard limit for sorting on aggregates (#43220)
To be consistent with the `search.max_buckets` default setting,
set the hard limit of the PriorityQueue used for in memory sorting,
when sorting on an aggregate function, to 10000.
Fixes: #43168
(cherry picked from commit 079e012fde
)
This commit is contained in:
parent
be9f27bb16
commit
9cd89c3453
6 changed files with 14 additions and 10 deletions
|
@ -336,7 +336,7 @@ Further more, it is possible to order groups based on aggregations of their valu
|
|||
include-tagged::{sql-specs}/docs/docs.csv-spec[orderByAgg]
|
||||
----
|
||||
|
||||
IMPORTANT: Ordering by aggregation is possible for up to 512 entries for memory consumption reasons.
|
||||
IMPORTANT: Ordering by aggregation is possible for up to *10000* entries for memory consumption reasons.
|
||||
In cases where the results pass this threshold, use <<sql-syntax-limit,`LIMIT`>> to reduce the number
|
||||
of results.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue