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

Preload with async cache store is not efficient

    XMLWordPrintable

Description

    Configuring on a AdvancedCacheLoader preload=true and asyn=true cause it to load each entry in the store in a loop, each entry being loaded through an store read.
    This is caused by the way loadAll is implemented in the AsynLoader: in order to enforce consistency with whatever is in memory it does some special handling. The thing is, though, that we don't need this advanced async loader logic during the initial preload, as the async cache loader is empty.

    Attachments

      Activity

        People

          dberinde@redhat.com Dan Berindei
          mircea.markus Mircea Markus (Inactive)
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved: