gporca
gporca copied to clipboard
memory threshold for hash join spilling should be dynamic
In function CCostModelGPDB::CostHashJoin
, it uses if (dRowsInner * dWidthInner <= dHJSpillingMemThreshold)
to determine whether the hash table can fit into memory or not, but it looks like the threshold CCostModelParamsGPDB::DHJSpillingMemThresholdVal
is fixed to 50MB. Should it be dynamic and accept value from GPDB?