How do readers keep track of current position in case query result changes?
问题 After reading this answer (by Michael Minella) Spring batch chunk processing , how does the reader work ?if the result set changes? I assume with JdbcPagingItemReader, the query is run again for each page. In this case, when reading a new page it is possible a new record had been inserted in a position before this page starts, causing the last record of previous page to be processed again. This means in order to prevent a record to be reprocessed I must always set a "processed already" flag