OpenJPA
  1. OpenJPA
  2. OPENJPA-2152

Don't process query hints when LockModeType == NONE

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1, 2.3.0
    • Fix Version/s: 2.2.1, 2.3.0
    • Component/s: query
    • Labels:
      None

      Description

      When processing a named query, we look to see what the LockModeType should be set to as a hint for the query. But, if the LockModeType is the default (NONE), there is no reason to set that as a hint. So, if the required LockModeType turns out to be NONE, then we're going to skip setting this hint. Hint processing is kind of expensive for Queries, so the less we do the better.

        Activity

        Kevin Sutter created issue -
        Kevin Sutter made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Albert Lee made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Albert Lee made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Kevin Sutter
            Reporter:
            Kevin Sutter
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Development