I know that caching the resultset of frequently used sql statements is better for the performance I am searching about the best way to cache sql result set in java. I found some codes but, it requires adding new jar files to netbeans.
Can anybody help me how can do that without needing to additional apis?
I know that caching the resultset of frequently used sql statements is better for
Share
You should cache the data only. I would advise you to use an external api because you will probably also need to evict old data from cache(to prevent from using to much memory).
Using guave:
ConcurrentMap _continueContexts = new MapMaker()
.expiration(10, TimeUnit.SECONDS)
.makeMap();
P.S: You should something like maven to manage your dependencies.