Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cartona caching #1

Open
wants to merge 5 commits into
base: cartona-sso
Choose a base branch
from
Open

Cartona caching #1

wants to merge 5 commits into from

Conversation

alash3al
Copy link

@alash3al alash3al commented Mar 7, 2024

Problem

When you try to run the same query multiple items, redash tries to re-execute it again and again, which isn't a bug, for sure there are use cases for this behavior, but we don't want this for our use case.

Solution

Redash already stores the query result each time a query is executed, so what I'm trying to do here is trying to find a query executed withing env $CARTONA_QUERY_RUNNER_CACHING_WINDOW_MINUTES and then return its result instead of executing it, P.S: setting env $CARTONA_QUERY_RUNNER_CACHING_WINDOW_MINUTES to zero means "disable this feature" which is the default behavior.

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.

1 participant