I\'m developing Spring Boot v2.2.5.RELEASE and Spring Batch example. In this example, I\'m reading 5 million records using JdbcPagingItemReader from Postg
Partitioning (approach 3) is the best option IMO. If your primary key is a String, you can try to create a compound key (aka a combination of columns to make up a unique key).