Skip to content

Commit 86cbaca

Browse files
committed
adjust fanout factor
1 parent 57cb8d2 commit 86cbaca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/memo/coster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (c *coster) costRel(ctx *sql.Context, n RelExpr, s sql.StatsProvider) (floa
132132
return lBest*seqIOCostFactor + lBest*(seqIOCostFactor+randIOCostFactor), nil
133133
}
134134
// Fanout is the average number of right-side rows that match each left-side row
135-
fanout := 2.0
135+
fanout := 1.5
136136
// The total expected number of right row lookups
137137
expectedRightRows := selfJoinCard * matchRate * fanout
138138
// Estimate for reading each left row and each expected right row

0 commit comments

Comments
 (0)