The external space should be generated by chunk And then computing the PT2 and selection in this chunk This should avoid OOM problem