mike_t_2019
Member
- Messages
- 60
- Reaction score
- 0
- Location
- Leeds, UK
Been logging every round from a few crash games into Postgres for about 14 months now. Not for anything sketchy, I just like having my own data instead of trusting some offshore site's "history" tab that only shows the last 50 rounds. Started off as a joke, now I've got ~40M rows and my queries are crawling.
Plain Postgres with daily partitions was fine up to maybe 5M rows. After that the INSERT bursts during a hot multiplier streak started choking, and any query that touches a 30 day window is basically a coffee break. Read about TimescaleDB hypertables, seemed like the obvious move, but the migration docs make it sound way cleaner than I suspect it actually is.
Anyone here actually running Timescale in prod? Curious what chunk intervals people landed on for time series that comes in bursts (mine is wildly uneven, like 400 rows/sec during peak, dead quiet at 4am). Also do you bother with their compression or just drop old chunks and keep a rollup table? I tried continuous aggregates once on a test box and the refresh lag confused the hell out of me.
Side note, this whole project started because I got sick of Ontario's idea of a "regulated" product. Can't even pull my own hand history without filing a ticket. So now I hoard data like a weirdo. Not sorry.
Anyway, if you've done this migration, how long did it take before you trusted it enough to point the app at it?