[infinispan-issues] [JBoss JIRA] Resolved: (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
Wed Mar 10 08:44:37 EST 2010


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

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: 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