summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_knobs.idl
diff options
context:
space:
mode:
authorIrina Yatsenko <irina.yatsenko@mongodb.com>2023-04-11 03:57:53 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-11 05:06:45 +0000
commit37af16a5d6253e18474a4e6e50cb62b27dd99b85 (patch)
tree5a73ad5d42bc492ee21fd6dc71bf96842821eb7d /src/mongo/db/query/query_knobs.idl
parent4a2fe90f565894a439ccb70713892311a3a0ee1d (diff)
downloadmongo-37af16a5d6253e18474a4e6e50cb62b27dd99b85.tar.gz
SERVER-75144 Use discrete algorithm in $percentile expression on small input
Diffstat (limited to 'src/mongo/db/query/query_knobs.idl')
-rw-r--r--src/mongo/db/query/query_knobs.idl11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/query/query_knobs.idl b/src/mongo/db/query/query_knobs.idl
index 070a2c56629..f63351f6b60 100644
--- a/src/mongo/db/query/query_knobs.idl
+++ b/src/mongo/db/query/query_knobs.idl
@@ -1156,6 +1156,17 @@ server_parameters:
gte: 0
lte: 100000 # arbitrary, just to set an upper limit on the amount of memory used by t-digest
+ internalQueryPercentileExprSelectToSortThreshold:
+ description: "The discrete percentile algorithm uses selection from unsorted data to find a
+ single percentile and sorts the data when sufficiently many percentiles are requested as once.
+ The threshold has been determined empirically from benchmarks."
+ set_at: [ startup, runtime ]
+ cpp_varname: internalQueryPercentileExprSelectToSortThreshold
+ cpp_vartype: AtomicWord<int>
+ default: 20
+ validator:
+ gte: 0
+
internalQueryAutoParameterizationMaxParameterCount:
description: "The maximum numbers of parameters that query auto-parameterization can extract from a query.
If auto parameterizating a query would result in a greater number of parameters than the limit,