OpenJPA
  1. OpenJPA
  2. OPENJPA-1475

Performance improvement - don't call syncVersion() when no version is specified

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta
    • Fix Version/s: 2.0.0-beta2
    • Component/s: kernel
    • Labels:
      None

      Description

      Currently, StateManagerImpl loadFields() always calls syncVersion() when the entity being processed does not contain a version field. This processing is expensive. So, check for the existence of a version field before making this call.

      1. patch.txt
        1 kB
        Dianne Richards

        Activity

        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Donald Woods made changes -
        Affects Version/s 2.0.0-beta [ 12314149 ]
        Affects Version/s 2.0.0 [ 12314019 ]
        Fix Version/s 2.0.0-beta2 [ 12314802 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Rick Curtis made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Rick Curtis made changes -
        Assignee Dianne Richards [ dianner ] Rick Curtis [ curtisr7 ]
        Dianne Richards made changes -
        Attachment patch.txt [ 12431058 ]
        Dianne Richards made changes -
        Field Original Value New Value
        Assignee Dianne Richards [ dianner ]
        Dianne Richards created issue -

          People

          • Assignee:
            Rick Curtis
            Reporter:
            Dianne Richards
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development