The formula of calculating net cost for TiFlash plans is not aligned with TiKV plans' #30103
Labels
epic/cost-model
the optimizer cost model
sig/planner
SIG: Planner
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
In
copTask.convertToRootTaskImpl
, we can see the formula of calculating net cost for TiKV plans isest-row * row-size * net-factor
, while inmppTask.convertToRootTaskImpl
the formula for TiFlash plans isest-row * net-factor
where therow-size
is lost.That would let the cost of TiFlash plans be always relatively lower than TiKV plans', which can cause some wrong plans.
The text was updated successfully, but these errors were encountered: