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

        Hide
        Rick Curtis added a comment -

        Committed revision 901901 to trunk.

        Thanks Dianne!

        Show
        Rick Curtis added a comment - Committed revision 901901 to trunk. Thanks Dianne!
        Hide
        Dianne Richards added a comment -

        Attaching patch with enhancement.

        Show
        Dianne Richards added a comment - Attaching patch with enhancement.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development