diff options
author | Irina Yatsenko <irina.yatsenko@mongodb.com> | 2023-04-11 03:57:53 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-11 05:06:45 +0000 |
commit | 37af16a5d6253e18474a4e6e50cb62b27dd99b85 (patch) | |
tree | 5a73ad5d42bc492ee21fd6dc71bf96842821eb7d /src/mongo/db/query/query_knobs.idl | |
parent | 4a2fe90f565894a439ccb70713892311a3a0ee1d (diff) | |
download | mongo-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.idl | 11 |
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, |