[infinispan-issues] [JBoss JIRA] Assigned: (ISPN-310) CacheLoader preload should only load as many entries as configured by eviction max entries

Manik Surtani (JIRA) jira-events at lists.jboss.org
Thu Dec 10 11:44:30 EST 2009


     [ https://jira.jboss.org/jira/browse/ISPN-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list