[infinispan-dev] cache loader/preload

Galder Zamarreño galder at redhat.com
Fri Aug 16 04:57:00 EDT 2013


JSR-107 comes with an interesting twist on preloading. It's not really a cache writer/loader configuration, but instead there's a high level loadAll API in Cache to load data from a cache store [1]. I wonder if it'd make sure for us to go that way too, although the main problem we have is that once a cache is retrieved from the cache manager, it's already started, and our current preloading strategy works as part of the start() procedure.

Also, JSR-107 seems to be enable loading of a subset of keys and I'm not sure how you can load all entries in the store.

In spite of this, it's something worth bearing in mind for preloading discussions...

[1] https://github.com/jsr107/jsr107spec/blob/master/src/main/java/javax/cache/Cache.java#L169

On Aug 14, 2013, at 12:15 PM, Mircea Markus <mmarkus at redhat.com> wrote:

> Currently the "preload" attribute is configured at *loaders* level and the first cache loader in the chain is used for preloading.
> A better place for preload might be the individual loader element: would indicate clearly which loader is used for preloading and also consistent with the fetchPeristentState which is again defined on a per loader basis.
> 
> How does it sound?
> 
> Cheers,
> -- 
> Mircea Markus
> Infinispan lead (www.infinispan.org)
> 
> 
> 
> 
> 
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev


--
Galder Zamarreño
galder at redhat.com
twitter.com/galderz

Project Lead, Escalante
http://escalante.io

Engineer, Infinispan
http://infinispan.org




More information about the infinispan-dev mailing list