Canonical query for subplanner should include limit/ skip from the base query

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Blocker - P1
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When we create canonical query for the subquery optimization we use filter, projection and sort from the base query, but do not use eventual limit/skip.

      However, when we cost the plans with CBR, the presence of limit stage and its value also has an effect on the cost and the choice of the best plan. 

            Assignee:
            Unassigned
            Reporter:
            Milena Ivanova
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: