posthog icon indicating copy to clipboard operation
posthog copied to clipboard

fix(recordings): drop old + future events

Open rcmarron opened this issue 2 years ago • 0 comments

Problem

Really old + futuristic timestamps are ingested into session recordings (because browsers do weird things). This creates a ton of partitions in clickhouse - and that's not good

Changes

Drops recording data with a timestamp > 1 day in the future or < 365 days in the past

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

How did you test this code?

Wrote a test

rcmarron avatar Sep 15 '22 00:09 rcmarron