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

Performance improvement in SelectImpl.getTableIndex() for JPQL without subselect

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-beta
    • 2.0.0-beta2
    • query
    • None

    Description

      OPENJPA-1185 introduced query context for table alias resolution that improved JPQL subquery processing.
      However, JPQL queries without subselect pay performance penalty because of the alias resolution by query context. In fact, if JPQL or QueryExpression do not contain subselect, then the table alias resolution can be simplified.
      This can be done by checking if a SelectImpl is involved in a subquery:
      If SelectImpl is not a subquery (it has no parent) or SelectImpl does not have any subselects, then the alias resolution by query context can be by-passed.

      Attachments

        1. OPENJPA-1493.patch
          3 kB
          Fay Wang

        Activity

          People

            fancy Catalina Wei
            fancy Catalina Wei
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: