This commit is contained in:
Jussi Saurio
2025-05-10 00:27:48 +03:00
parent c8f5bd3f4f
commit 90de8791f5

View File

@@ -119,8 +119,11 @@ struct JoinN {
pub cost: Cost,
}
/// In lieu of statistics, we estimate that an equality filter will reduce the output set to 1% of its size.
const SELECTIVITY_EQ: f64 = 0.01;
/// In lieu of statistics, we estimate that a range filter will reduce the output set to 40% of its size.
const SELECTIVITY_RANGE: f64 = 0.4;
/// In lieu of statistics, we estimate that other filters will reduce the output set to 90% of its size.
const SELECTIVITY_OTHER: f64 = 0.9;
/// Join n-1 tables with the n'th table.