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

fix(insights): Do NOT calculate non-cacheables when cache-only #21823

Merged
merged 7 commits into from
Apr 24, 2024

Conversation

Twixes
Copy link
Member

@Twixes Twixes commented Apr 24, 2024

Problem

For existing dashboards and saved insights that contain non-cacheable queries, such as HogQLQuery, we currently always try calculating these when serializing the dashboard/insight. This breaks the CACHE_ONLY_NEVER_CALCULATE contract, and it's a waste of resources leading to serialization failures.

Changes

Literally never calculating in cache-only mode anymore.

@Twixes Twixes requested a review from a team April 24, 2024 17:02
@Twixes Twixes force-pushed the never-calculate-actually branch from 67fc65c to d54e156 Compare April 24, 2024 17:12
@Twixes Twixes merged commit af5b138 into master Apr 24, 2024
95 of 96 checks passed
@Twixes Twixes deleted the never-calculate-actually branch April 24, 2024 18:11
Twixes added a commit that referenced this pull request Apr 24, 2024
@PostHog PostHog deleted a comment from sentry-io bot Apr 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