Skip to content

Use query cache when a query shares most of the query pipeline. #57490

@alexey-milovidov

Description

@alexey-milovidov

There are two ways to approach this task: easy and hard.

  1. Easy.

When searching inside the query cache, also try to find the query after removal of LIMIT; LIMIT BY; ORDER BY; GROUP BY; WHERE. If found, construct a query pipeline that will use the data from the cache but apply the missing transformations.

  1. Hard.

Serialize the query plan and put it into the cache instead of the AST hash. Search for incomplete query plans that could be completed.

Obviously, we should choose the easy way.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions