SORT_AREA_SIZE determines how much memory is allocated for each sort operation. Increasing this parameter allows more sorts to complete entirely in memory, reducing the need to spill to disk (which is much slower). SORT_AREA_RETAINED_SIZE controls memory retained after sort completion and doesn't affect disk sort frequency.