Skip to content

[EPIC] Improve query planning speed #19795

@alamb

Description

@alamb

Is your feature request related to a problem or challenge?

DataFusion can theoretically plan queries of almost any complexity. However, for moderately complex queries, especially those involving UNIONS or deeply nested plans, it can sometimes take seconds to plan they query

At InfluxData we have had to disable certain equivalence checks because without doing so the planning time becomes exponential (and effectively locks up one of our cores)

Basically I would like to use this ticket to coordinate / start making meaningful progress reducing the planning time for DataFusion.

Describe the solution you'd like

We have fairly thorough benchmarks at this point that I think covers many use cases.

# don't forget --profile=profiling otherwise you'll end up with no symbol names
cargo bench --profile=profiling  --bench sql_planner 

If anyone wants to help with this EPIC an excellent first step to do would be

  1. Contribute example queries that are slow to plan in your environment
  2. Spend time profiling the existing benchmarks to identify potential performance improvements

Describe alternatives you've considered

Issues reporting slow planning time

Ideas to potentially increase performance

Prior Epics

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    PROPOSAL EPICA proposal being discussed that is not yet fully underwayenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions