]
Manik Surtani resolved ISPN-310.
--------------------------------
Fix Version/s: 4.1.0.ALPHA1
(was: 4.1.0.BETA1)
Resolution: Done
Assignee: Manik Surtani (was: Mircea Markus)
CacheLoader preload should only load as many entries as configured by
eviction max entries
------------------------------------------------------------------------------------------
Key: ISPN-310
URL:
https://jira.jboss.org/jira/browse/ISPN-310
Project: Infinispan
Issue Type: Feature Request
Components: Loaders and Stores
Reporter: Manik Surtani
Assignee: Manik Surtani
Fix For: 4.1.0.ALPHA1, 4.1.0.Final
This will prevent loading too much into memory causing OOMs, as well as unnecessary
eviction thread churn. Probably would require another CacheLoader interface method such
as loadAll(int maxEntries). A default version of this method could just call loadAll()
and trim the resultset to size, and more sophisticated impls could only load the necessary
number of entries, such as a LIMIT SQL query for the JDBC cache stores.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: