how to batch by volume site:stackoverflow.com - Search