-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Large HogQL table insights (by number of rows) with datetime fields cause excessive DOM size and page crashes #22208
Comments
Hey 👋 I use Chrome all day with Posthog with no slowdowns... so there's something going on here that we can maybe fix at least :) if you try in an incognito window or with no extensions running do you see any difference |
@pauldambra I've narrowed down the issue to our main dashboard — https://us.posthog.com/project/34169/dashboard/93091 There seems to be a bug that's causing a huge number of |
Oh fascinating! And I guess explains why we don't see it there must be a variable amount created or a condition we're not hitting Amazing investigation skills! |
@pauldambra I've narrowed this down even further to the specific issue. We have a number of large HogQL table insights that return >1000 rows in the full query. Those insights also have one or more datetime fields (eg. timestamp, person.created_at, etc) — which Posthog renders with a nice formatted relative time. Hovering over those formatted times (eg. 1 day ago) shows a popup with the full datetime information in the project timezone, UTC time, etc. Each one of those formatted dates creates its own Altogether, this is what's causing our main dashboard to crash as we've recently been onboarding many more users and thus seeing larger results returned by those queries. It would be great if we could have a fix here, which I'd imagine could include (with my own biased opinions):
|
Bug Description
Bug description
In the last ~3 weeks (or so!), the PostHog website has been responding very slowly compared to previously. Navigating between screens using the left tab bar can take >30 seconds at times, as well as issues with insights loading (which I've seen reported in other Issues).
Today, the website is crashing entirely and displaying Chrome's "Aw snap!"
Error code: 5
screen.Separately, queries that used to take <5 seconds to run now take >40 seconds in some cases.
How to reproduce
https://us.posthog.com/project/XXXXX
Additional context
Debug info
Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/018f5b0a-d3ac-7cc6-b56a-74e71d86962c?t=523 Admin: http://go/adminOrgUS/018a1aa0-fba1-0000-7c63-3525ad2656c8 (Project: 34169) Sentry: http://go/sentryUS/34169
The text was updated successfully, but these errors were encountered: