Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

revive join order enumeration + join reordering bench #194

@skyzh

Description

@skyzh

Before #192, explain in optd by default enumerates all join orders. The functionality was added in order to ensure the current join commute + assoc rule can enumerate all join orders. However, the implementation of join order enumeration is super slow and was opt-in by default when explaining. After removing this functionality, TPC-H test suite is 10x faster on my local setup.

  • Find better way to enumerate all join orders (avoid generating all bindings)?
  • Have a flag + SQL syntax in the optimizer to enable/disable join order enumeration during explain?
  • Test how fast is the cascades optimizer to enumerate all join orders, and look into if we need macro rules to do join reordering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions