]
Dan Berindei resolved ISPN-3387.
--------------------------------
Fix Version/s: 7.0.0.Alpha1
5.2.8.Final
Resolution: Duplicate Issue
Duplicate of ISPN-3957
AsyncStore preload is slow, when given database datastore
---------------------------------------------------------
Key: ISPN-3387
URL:
https://issues.jboss.org/browse/ISPN-3387
Project: Infinispan
Issue Type: Task
Components: Loaders and Stores
Affects Versions: 5.3.0.Final
Environment: database datastore, with AsyncStore
Reporter: Laszlo Hadadi
Assignee: Mircea Markus
Priority: Minor
Labels: async, database
Fix For: 7.0.0.Alpha1, 5.2.8.Final
Currently AsyncStore.loadAll() method strategy is suboptimal.
actually loadAll do this:
getAll keys from cache
itarate on keys and load each value from store.
This is can be really costly when we have db persistance behind async store.
cost:
1 query for keys + number of keys query.