Skip to content

[Feature] Handle non-deterministic queries #544

@imi-sebastian-chamena

Description

@imi-sebastian-chamena

Is your feature request related to a problem? Please describe.

Right now, using functions like now() would end up cached even though they're different queries over time
CH query caching handles them via parameter query_cache_nondeterministic_function_handling, but using chproxy they can silently end up cached.

Describe the solution you'd like

I want to have an opt-in parameter to handle them specially, so one can use same client to execute both queries and have more reliable results.

I can submit a pr but want to know if this is desired or there's a suggested alternative.

Describe alternatives you've considered

Tried using CH's query cache but doing it in chproxy is better for our usecase to not overload CH

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