JDBC中的缓存 [英] Caching in JDBC
问题描述
我想对JDBC使用缓存.
我该如何实现?
是否有任何内置机制,或者我必须使用第三方解决方案?
使用JDBC进行缓存的最佳做法是什么.
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.
谢谢杰克
CachedRowSet呢? http://docs.oracle.com/javase/tutorial/jdbc/basics /cachedrowset.html
EDITED: what about CachedRowSet? http://docs.oracle.com/javase/tutorial/jdbc/basics/cachedrowset.html
推荐答案
尝试 ehcache . JDBC本身没有缓存,但是ehcache非常好.如果您想要更强大的群集安全缓存,请尝试使用oracle一致性.通常,只有在测试表明需要缓存时,我才会首先放置缓存并运行一些性能测试.
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.
这篇关于JDBC中的缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!