Storing data in memory

前端 未结 3 823
Happy的楠姐
Happy的楠姐 2021-02-10 04:37

I have \"TABLE A\" in database which contains 3 columns \"COL 1\" , \"COL 2\" and \"COL 3\" with around 1000000 (1 Million) records.

3条回答
  •  被撕碎了的回忆
    2021-02-10 04:54

    You have to use Java Caching System(see here) or Ehcache (see here) to store data in cache, Inversion of Control in Spring also helps in some way but not sure whether it would help to store 1 million data in heap, as heap memory is limited.

提交回复
热议问题