Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Caching in JDBC [closed]

I want to use caching with JDBC.
How can I achieve that?
Are there any built-in mechanisms or do I have to use 3rd party solutions?
What is best practise for caching with JDBC.

Thank You, Jack

EDITED: what about CachedRowSet? http://docs.oracle.com/javase/tutorial/jdbc/basics/cachedrowset.html

like image 751
Jack Mszczynski Avatar asked Dec 04 '11 16:12

Jack Mszczynski


1 Answers

try ehcache. JDBC does not have caching by itself, but ehcache is pretty good. if you want a more robust cluster safe cache, try oracle coherence. I typically do not put a cache at first and run some performance tests, only if tests indicate a need for a cache is when I put one.

like image 117
aishwarya Avatar answered Nov 05 '22 00:11

aishwarya