Dear all,
I'm using ehCache for caching the queries in order to achieve a better performance for my product that basically authenticates users.
Following is an extract from my ehcache.xml for the classes set for caching.
Code:
<cache name="com.xxx.xxx.xxxxxxxxx"
eternal="true" diskPersistent="true" overflowToDisk="true" />
With this setting, I'm observing that <class-name>.data & <class-name>.index files are created at the location specified in <diskStore>.
When trying to authenticate users for the first time, the time taken by every query takes a lot of time, while the subsequent authentications for the same user gets done quickly (obviously, because of the caching).
But in actual scenario, as the product being an authentication product, users will be authenticated only once (which is my first attempt that is far slower).
Therefore, requesting you experts to kindly suggest me an idea that I can implement to achieve a faster authentication on the first attempt itself please. Do let me know if you need any more info on the same.