Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-310

CacheLoader preload should only load as many entries as configured by eviction max entries

XMLWordPrintable

    • Medium

      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.

              manik_jira Manik Surtani (Inactive)
              manik_jira Manik Surtani (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: