Spring Batch - How to reads 5 million records in faster ways?

前端 未结 1 689
名媛妹妹
名媛妹妹 2020-12-18 16:40

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

相关标签:
1条回答
  • 2020-12-18 17:17

    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).

    0 讨论(0)
提交回复
热议问题