title: spring batch - Database to multiple files job
body: <p>I'm trying to implement a chunk oriented step in spring batch which retrieves the records from the database and writes each chunk to a seperate file.For instance, assume that there are 500 records in the DB. I need my job to create 10 files, having 50 records each. </p>
  
  <p>PS: Main purpose is to create the output files concurrently. Since ItemWriter implementations are not thread-safe, I decided to create seperate files as the output so that I can reduce the total amount of time spent for completing the step.</p>
  
  <p>Does asnyone know how to implement it with Spring Batch? I found a sample project which processes multiple files in parallel using partitioning but that's not exactly what I want to do. In my case, the input is a single Table whereas the output is multiple files.</p>
  
  <p><a href="http://www.ecomputercoach.com/index.php/component/content/article/53-spring-batch-file-parallel-processing.html?showall=1" rel="nofollow"> Here is the link: FileParallelProcessing </a></p>