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: hot path is cooler now #21888

Merged
merged 3 commits into from
Apr 26, 2024
Merged

fix: hot path is cooler now #21888

merged 3 commits into from
Apr 26, 2024

Conversation

pauldambra
Copy link
Member

Every call to snapshots means we check existence of a recording in ClickHouse at least twice.

For each of those calls we load an instance setting that we don't use any more on Cloud

We also now the existence is almost certainly true until midnight of the day once it has been checked

So, we now cache the result if the check shows a recording exists.

We also first check existence over the team's TTL for recordings, since on checking EXPLAIN we load way less data that way

@pauldambra pauldambra enabled auto-merge (squash) April 26, 2024 10:17
@pauldambra pauldambra merged commit b2c00bf into master Apr 26, 2024
97 checks passed
@pauldambra pauldambra deleted the fix/hot-path branch April 26, 2024 10:54
fuziontech added a commit that referenced this pull request Apr 26, 2024
* master: (28 commits)
  fix: refactor update animation to do less (#21901)
  fix(plugin-server): add time component to person.force_upgrade (#21899)
  fix(dashboards): Indicate 404/400/500 properly (#21853)
  fix: recording exports (#21900)
  feat: Update SLAs, remove GitHub buttons (#21818)
  chore: Removed feature flag for heatmaps (#21886)
  fix(data-warehouse): Added an error message for empty data source files (#21843)
  feat(surveys): allow to stop surveys once reached enough responses (#21528)
  fix: patch missing pause method in rrweb (#21898)
  fix(hogql): make funnels fast again (#21890)
  fix: Explicitly call out readonly user fields (#21889)
  chore(dev): Allow mypy to run in VS Code extension (#21891)
  feat: Small heatmap UI fixes (#21849)
  feat: Improve Heatmaps UI and notices (#21887)
  fix: Redirection to keep query params (#21881)
  fix: hot path is cooler now (#21888)
  feat(data-warehouse): Moved the table model creation to the data pipeline activity (#21817)
  fix: snapshot response timings (#21885)
  chore(deps): Update posthog-js to 1.130.0 (#21884)
  feat(debug): tabs + better view for non-hogql-query nodes (#21867)
  ...
Copy link

sentry-io bot commented Apr 27, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ CHQueryErrorTooManySimultaneousQueries: DB::Exception: Received from ch8.posthog.net:9000. DB::Exception: Too many simultaneous queries. ... /api/projects/{parent_lookup_team_id}/session_r... View Issue
  • ‼️ CHQueryErrorTimeoutExceeded: DB::Exception: Timeout exceeded: elapsed 130.275997546 seconds, maximum: 120: While executing Mer... /api/projects/{parent_lookup_team_id}/session_r... View Issue
  • ‼️ CHQueryErrorTooManySimultaneousQueries: Too many simultaneous queries. Try again later. /api/projects/{parent_lookup_team_id}/query/ View Issue
  • ‼️ CHQueryErrorTooManySimultaneousQueries: Too many simultaneous queries. Try again later. /api/projects/{parent_lookup_team_id}/session_r... View Issue
  • ‼️ CHQueryErrorTooManySimultaneousQueries: Too many simultaneous queries. Try again later. /api/projects/{parent_lookup_team_id}/session_r... View Issue

Did you find this useful? React with a 👍 or 👎

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