separate partitioning and processing