Caching in JDBC [closed]

2019-04-21 08:47发布

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

2条回答
放我归山
2楼-- · 2019-04-21 09:19

There is few options now:

查看更多
别忘想泡老子
3楼-- · 2019-04-21 09:37

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.

查看更多
登录 后发表回答