0

I want to take opportunity to ask the question further from: getting data from DB in spring batch and store in memory. In my case, I am loading data from different tables and create the Hierarchy of Data like Person deatils, Customer Address, Bank Identification details etc., so it create tree and load the data into elastic.

To create hierarchy, I would need to keep all data in cache so that one type could search for other type and create final data out of it.

I've almost 5 tables each of them has around 1 million records which I want to cache in order to create final object.

Almost all batch jobs has JdbcPagingItemReader implemented so how will cache the data using Cache where ? What will be the appropriate process ?

I am thinking to use ConcurrentMapCacheManager here. Could you please share example ?

Jeff Cook
  • 7,956
  • 36
  • 115
  • 186

0 Answers0