Storing data in memory

前端 未结 3 824
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.

    0 讨论(0)
  • 2021-02-10 05:03

    I think you are looking for some way to cache your objects.

    You may want to look at ehcache

    or,

    since you have large objects you can look at implementing Object Repository like, noDB

    0 讨论(0)
  • 2021-02-10 05:08

    It looks like you need caching, if I get you right. I would recommend to take a look on EHcache or Infinispan here.

    Hope this helps

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