LOG.debug("Reading Accessions. Stopwatch={}s {}+{} of {}. Processing at {} accessions/s",stopWatch.getSplitTime()/1000,startPosition,batchSize,count,(double)(startPosition+batchSize)/(stopWatch.getSplitTime()/1000));
results=query.fetch();
asyncUpdate(results,action);
// Next page
query.offset(startPosition+=results.size());
// Clear anything cached in the entity manager
em.clear();
}while(results.size()>0);
stopWatch.stop();
LOG.info("Processing Accessions for filter {} took {}ms",filter,stopWatch.getTime());