use mapPartions in execute