I have a related question which I have been trying to find the answer to in the docs: Given a cache REPLICATED cache with CacheRebalanceMode.SYNC, is there any meaningful use case for a readthrough handler ? (Is there any situation where the readthrough database can actually produce a result that is not known to the local cache ???)
It feels like there's a bit of documentation that could be written about how these options affect each other ? Kristian 2016-06-08 6:47 GMT+02:00 Denis Magda <[email protected]>: > Hi Kevin, > > This happens because such information is not “cached” in the internals > meaning that every time the database will be queried to see whether it has > such a key or not. If you disable the database the performance should be > good. > > In any case how critical is this for you? Is it some basic use case for > you to query for non existed keys? > > — > Denis > > On Jun 8, 2016, at 6:26 AM, Zhengqingzheng <[email protected]> > wrote: > > Hi there, > When I am using cache.get(key) operation to find some value. > I notice that if the key is not exist (neither no record in the database > too), the performance is really slow: about 830ms to return the null result; > BTW, I have set read through and write-behind for this cache, also I add > near cache configurations when create this cache. > > Is it a bug? > > Cheers, > Kevin > > >
