]
Manik Surtani reassigned ISPN-310:
----------------------------------
Assignee: Mircea Markus (was: Manik Surtani)
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: Mircea Markus
Fix For: 4.1.0.BETA1, 4.1.0.GA
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: