I have \"TABLE A\" in database which contains 3 columns \"COL 1\" , \"COL 2\" and \"COL 3\" with around 1000000 (1 Million) records.
\"TABLE A\"
\"COL 1\" , \"COL 2\" and \"COL 3\"
1000000
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