PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
19.45k stars 1.14k forks source link

feat: Bump default lookback days to 7 #23494

Open tomasfarias opened 3 days ago

tomasfarias commented 3 days ago

Problem

With the recent query optimizations, 7 should be fine for most if not all teams. This is the number one source of issues with batch exports, so the more we can bump the number the less users will be confused by missing events. The trade-off is load on CH.

Ultimately, we may move to setting up our own kafka consumers for ongoing exports, but for the time being we have to keep playing with this tradeoff.

Changes

👉 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?