Record and control the memory usage for index join's build range phase #28650
Labels
report/customer
Customers have encountered this bug.
sig/execution
SIG execution
sig/planner
SIG: Planner
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
When the SQL is something like
.... from t1, t2 where t1.a=t2.a and t2.b in (...)
and the IN CLAUSE is rather big, we may consume a lot of memory to build the index ranges if we choose the index join andt1
is the driven table.We need to record these memory usages and design a way to control its usage to avoid the possible OOM risk.
The text was updated successfully, but these errors were encountered: