-
1. Re: AdvancedCacheLoader.process() method -- purpose and issue for very large store
vblagojevic Mar 13, 2014 12:35 PM (in response to jugglingcats)Hi,
What seems to be happening is that you are warming up cache on startup. Is that what you really want to do? Have a look at http://infinispan.org/docs/6.0.x/user_guide/user_guide.html#_configuration_2 to understand all the options in detail.
If that does not help please do say so and we'll have another look.
Regards,
Vladimir
-
2. Re: AdvancedCacheLoader.process() method -- purpose and issue for very large store
jugglingcats Mar 13, 2014 1:34 PM (in response to vblagojevic)Thanks for the reply. I am not specifying preload() and the default is false, so am not consciously trying to warm up the cache. I do have fetchPersistentState(true) in my configuration, but seem to remember without this I was not getting any loading from store happening at all (it was a while ago). The javadoc says "Finally, setting it to true only makes sense if in a clustered environment, and only 'replication' and 'invalidation' cluster modes are supported.", and my large cache is DIST_ASYNC. I am not specifying shared(true) which I probably should be since Mongo is shared like JDBC -- not sure if this is significant though.
It would be good to get an explanation of when/why the process method is called on AdvancedCacheLoader. The documentation doesn't make it 100% clear.
Your help much appreciated.
Alfie.