Skip to content

Conversation

@unw9527
Copy link
Member

@unw9527 unw9527 commented Nov 24, 2024

This PR serves as a benchmark pipeline for the cost model.

It captures the snapshot of the state of the optimizer plan before it is passed to the cost model. We take this snapshot as input, perform cardinality estimation using the new cost model we made, and compare it to Postgres' estimation.

TODO:

  • Add more TPC-H queries.
  • Generalize recursive stats computation along the plan node tree.
  • Documentation.
  • (optional) Run Postgres concurrently to get instant comparison.

Credit: some code is borrowed from optd.

@unw9527 unw9527 changed the title feat: cardinality estimation for TPC-H Q6 feat: cost model cardinality estimation for TPC-H Q6 Nov 24, 2024
@unw9527 unw9527 changed the title feat: cost model cardinality estimation for TPC-H Q6 feat: cost model cardinality estimation for TPC-H queries Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants