Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-263

Introducing getAll(List) method for data cache to be called by loadAll() will allow data cache plug-ins to leverage the advantage of any third-party cache that provides a way to get multiple object in one call by providing a list of keys (oids).

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • datacache
    • None

    Description

      OpenJPA: 5 files to be donated to OpenJPA: (changed, no new file)
      There are changes to the following 5 files which will be donated to OpenJPA to be able to leverage ObjectGrid map agent to improve the performance on getting the relationship loaded.
      (the donation is upon the approval of OpenJPA committee)

      • org.apache.openjpa.datacache:
        o AbstractPCData:
         toField: calling toNestedFields(new) instead of looping thru all elements in the field
        (Implements the Collection only for now, may need to apply it to Map and Array)
         toNestedFields: (new)
         toRelationFields: (new) calls findAll()
      • org.apache.openjpa.datacache:
        o DataCacheStoreManager: enhance loadAll() to issue getAll() instead get()
        o AbstractDataCache: add getAll() to abstract as default
        o DataCache: add getAll() to interface
        o DelegatingDataCache: add getAll() delegation

      (Please see detail information in the attached Word document.)

      Attachments

        1. OpenJPAJIRA.doc
          28 kB
          Daniel Lee
        2. OpenJPA-263.patch
          14 kB
          Daniel Lee

        Activity

          People

            Unassigned Unassigned
            dtlee Daniel Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: