`rows per task` of IndexLookUp is hardcoded
Open
sig/planner
type/enhancement
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement

As we can see, the `batchSize` is a const(default is 20000) and the `taskPerBatch` is 32.
This indicates that each task is expected to scan 625 rows.
It's a hardcoded value to lead to a suboptimal execution plan. (we may think that the number of tasks is too large and decide not to choose index scan. but one task may scan 10000 rows).
We need to consider the data distribution and calculate it more correctly.
Contributor guide
Assessment
This issue has not been assessed yet.