Skip to content

Remove all orderings for last collection join with composite keys #25481

Description

@roji

In #19828, we removed the last ordering for collection joins. We could go further and remove the set of orderings which correspond to the keys of the last collection join, if that join includes composite keys; that would allow us to remove multiple unnecessary orderings, not just one.

See discussion in #24360 (comment) and a draft attempt by @Emill in #24401.

Activity

  1. stevendarby commented on Aug 11, 2021

    @stevendarby
    Contributor

    @roji do you have any sense of whether removing only the last column in a composite key scenario (i.e. only removing part of the last composite key) will give a perf boost, or is that likely to only come when this issue is fixed and the full key is removed? Just curious!

  2. roji commented on Aug 11, 2021

    @roji
    MemberAuthor

    @stevendarby removing the last column (#19828) should still give a perf boost in the composite key scenario - removing an ordering should generally means less work for the database, regardless of whether that ordering is on a part of a composite key or not.

  3. added this to the Backlog milestone on Aug 12, 2021
  4. 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

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions