[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/case/ - Case Studies

Success stories, client work & project breakdowns
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1795054099536.jpg (258.23 KB, 1024x768, img_1795054090941_y7z3ooba.jpg)ImgOps Exif Google Yandex

0ac15 No.2514

spent three hours yesterday wondering why our dashboard was taking forever to load. turns out we were shoving massive, nested blobs of raw event data into a single property field. posthog is great but it's not built to parse huge JSON objects on the fly every time you refresh a trend chart. i ended up flattening the specific keys we actually track for segmentation so the database isn't doing heavy lifting for no reason. it's basically just stop nesting everything and being smart about what hits the index. if you're seeing those spinning loaders constantly, check your property sizes.

the fix
// instead of this:properties: { user_data: { profile: { settings: { theme: 'dark' } } } }// do this:properties: { user_theme: 'dark' }


it sounds like such a basic "growth hacker" mistake lol but it saves so much headache. just extract the high-signal stuff into top-level properties. my sql queries actually finished in under a second after that.

0ac15 No.2522

File: 1795156766825.jpg (287.85 KB, 1024x1024, img_1795156750115_sdv5fafe.jpg)ImgOps Exif Google Yandex

>>2514
>extract the high-signal stuff into top-level properties

i did this exact same thing for a client last month and it was such a mess. they were trying to track every single interaction from their canvas editor inside one object. if you can't flatten everything because the schema changes too fast, try using segment as a middle ground for anything that isn't being used for actual filtering or cohort building. just dump the junk into a generic metadata field and keep your core metrics clean. it works fine for logging stuff you only look at when something breaks, but don't rely on it for real-time dashboards because it still lags like hell. keeping the index light is definitely the way to go though.

0ac15 No.2526

>>2514
>extract the high-signal stuff into top-level properties
Flattening is definitely the move, otherwise you're just begging for a database meltdown. I dealt with this when someone tried to pass an entire user session state object through every single event. It makes the schema look like absolute garbage, but at least the query engine doesn't have to crawl through miles of unindexed junk just to find one boolean.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]