title: Can I make Spring step to commit to db in first step before waiting next step?
body: <p>Good day,</p>
  <p>I have a Spring batch that using different step, the Job is something like follow:</p>
  <pre><code>@Bean
    public Job myJob() throws Exception {
      return jobBuilderFactory.get(&quot;MyJob&quot;).repository(batchConfiguration.jobRepository())
          .start(step1()).next(step2()).build();
    }
  </code></pre>
  <p>In my <code>step1()</code>,it has its own reader, processor, and writer, in this writer, I will update table A.</p>
  <p>And then in my <code>step2()</code>, it also has its own reader, processor, and writer. And this reader is read from table A, and by logic, it need to depends on the data update in table A.</p>
  <p>However, when I run this batch job, I found that my <code>step2()</code> reader is actually selecting same data as <code>step1()</code>, anyway I can make the <code>step1()</code> writer to commit first, then my <code>step2()</code> reader read the updated data?</p>