Skip to content

Query: Remove redundant compilations of subquery models when processing MainFromClause, AdditionalFromClause and Join/GroupJoin clauses #7647

Closed

Description

@maumar

When processing MainFromClause, AdditionalFromClause, JoinClause inner sequence and GroupJoin inner sequence, we first compile the expression and then check if its a subquery (and if so, compile again).

We should revert the order, first try to compile as subquery, and only if that fails compile the second time. This will simplify the query compilation as well as fix some more instances of issue described in #7476

Activity

  1. tuespetre commented on Feb 17, 2017

    @tuespetre
    Contributor

    I have addressed this with changes in #7543. It's part of the whole 'impossible to split further' thing.

  2. maumar commented on Feb 17, 2017

    @maumar
    ContributorAuthor

    This would be a great candidate to break off that big PR - it should be just few lines of code (call LiftSubquery before CompileMainFromClauseExpression/CompileAdditionalFromClauseExpression/CompileJoinClauseInnerSequenceExpression/CompileGroupJoinInnerSequenceExpression with some extra checks) and it provides decent value on its own.

  3. added a commit that references this issue on Feb 18, 2017
  4. maumar commented on Feb 18, 2017

    @maumar
    ContributorAuthor

    fixed in 49112ba

  5. self-assigned this
    on Feb 18, 2017
  6. added this to the 2.0.0 milestone on Feb 18, 2017
  7. added a commit that references this issue on Feb 19, 2017
  8. changed the title [-]Query/Cleanup : remove redundant compilations of subquery models when processing MainFromClause, AdditionalFromClause and Join/GroupJoin clauses[/-] [+]Query: Remove redundant compilations of subquery models when processing MainFromClause, AdditionalFromClause and Join/GroupJoin clauses[/+] on May 9, 2017
  9. modified the milestones: , 2.0.0 on Oct 15, 2022
  10. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions