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:
Marios Trivyzas 2019-06-14 13:26:18 +02:00
parent be9f27bb16
commit 9cd89c3453
6 changed files with 14 additions and 10 deletions

View file

@ -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.