Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-2301

CriteriaObjectInitializer is suboptimal when we query only one subtype of a hierarchy

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.3.Final, 5.6.0.Beta1
    • Fix Version/s: 5.5.4.Final, 5.6.0.Beta2
    • Component/s: query
    • Labels:
      None

      Description

      This is a followup of this Stackoverflow question: http://stackoverflow.com/questions/37894280/hibernate-search-mysql-error-too-many-joins-with-joined-inheritance-model .

      When we query only one subtype of a hierarchy, CriteriaObjectInitializer creates a Criteria on the root type of the hierarchy while we could create a Criteria on the subtype only.

      This would avoid a lot of joins when having a complex hierarchy.

        Attachments

          Activity

            People

            • Assignee:
              gsmet Guillaume Smet
              Reporter:
              gsmet Guillaume Smet
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: