8000 chore: handle session boundaries and epoch grouping by lricoy · Pull Request #33283 · PostHog/posthog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: handle session boundaries and epoch grouping #33283

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

Closed
wants to merge 3 commits into from

Conversation

lricoy
Copy link
Member
@lricoy lricoy commented Jun 6, 2025

Problem

Many values are ending up on the epoch, I think those are missing JOINs with sessions, or some weird pageviews our api key ended up receiving. I am positive we can filter them out and save us some disk space.

Also, now that we're backfilling with smaller bucket groups, it showed that we need to apply the same technique as the regular queries to include session data near the date boundaries to keep our accuracy in check.

Changes

  • Added a bigger time window for session data
  • Added a date filter on the outer query to just upsert the period data

Did you write or update any docs for this change?

  • No docs needed for this change

How did you test this code?

Manually

Base automatically changed from chore/execute_sql_with_logs to master June 6, 2025 02:59
@lricoy lricoy changed the title chore: increase partition grouping chore: handle session boundaries and epoch grouping Jun 6, 2025
@posthog-bot
Copy link
Contributor

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week. If you want to permanentely keep it open, use the waiting label.

@posthog-bot
Copy link
Contributor

This PR was closed due to lack of activity. Feel free to reopen if it's still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0