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

perf(session-replay): Filter event data by iso instead of int #27337

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

timgl
Copy link
Collaborator

@timgl timgl commented Jan 7, 2025

Problem

These queries hit all partitions as clickhouse isn't smart enough to be able to filter down partitions when the right hand side is an int.

Changes

query on isoformat instead, make queries go BRRR

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

How did you test this code?

@timgl timgl requested a review from pauldambra January 7, 2025 21:41
Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀🙏

@timgl timgl enabled auto-merge (squash) January 7, 2025 21:46
Copy link
Contributor

github-actions bot commented Jan 7, 2025

Size Change: +60 B (0%)

Total Size: 9.44 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 9.44 MB +60 B (0%)

compressed-size-action

Copy link
Member

@fuziontech fuziontech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EZ money

@timgl timgl merged commit 8af6269 into master Jan 7, 2025
100 checks passed
@timgl timgl deleted the use-iso-format-for-query branch January 7, 2025 22:03
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.

4 participants