News for hackers. Stuff that matters.
Re:ClickHouse raises $350M Series C by jameslk on Thursday May 29, 2025 @12:12PM (#44127455)
When Postgres takes a while to answer analytical questions like "what's the 75th percentile of response time for these 900 some billion requests rows, grouped by device, network, and date for the past 30 days", that's when you might want to try out ClickHouse
Re:ClickHouse raises $350M Series C by NewJazz on Thursday May 29, 2025 @12:36PM (#44127696)
I'm struggling with TimescaleDB performance right now and wondering if the grass is greener.
Re:ClickHouse raises $350M Series C by whatevermom on Thursday May 29, 2025 @03:32PM (#44129414)
Migrated from TimescaleDB to ClickHouse and it was like night and day. Naive reimplementation of the service performed wayyyy better than timescaledb. Self-hosted.
Re:ClickHouse raises $350M Series C by sukruh on Thursday May 29, 2025 @01:31PM (#44128245)
It is.
Re:ClickHouse raises $350M Series C by applied_heat on Thursday May 29, 2025 @01:30PM (#44128231)
What is the workload or query that is causing issues?
Re:ClickHouse raises $350M Series C by NewJazz on Thursday May 29, 2025 @06:09PM (#44130868)
We denormalized some data then wanted to quickly filter by it. I managed to find a decent index to get us through, but now I'm stuck with another dimension in my data that I'd rather not have. I think I'll have to create a new table, migrate data, then rename it.
Re:ClickHouse raises $350M Series C by andness on Thursday May 29, 2025 @05:19PM (#44130489)
Started migrating away from TimescaleDB some time ago too. Initially we self-hosted to test it out. It was very quickly clear that it was a lot better for our use case and we decided to go with Clickhouse Cloud to not have to worry about the ops. The pricing for the cloud offering is very good IMO. We use it for telemetry data from a fleet of IoT devices.
Re:ClickHouse raises $350M Series C by cluckindan on Thursday May 29, 2025 @12:42PM (#44127763)
Or literally any other OLAP database.

Is it a surprise that OLTP is not efficient at aggregation and analytics?

Re:ClickHouse raises $350M Series C by nasretdinov on Thursday May 29, 2025 @01:45PM (#44128384)
ClickHouse also has great compression and it's easy to install and to try since it's open-source. Also it's typically much faster than even other OLAP, often by a _lot_
Re:ClickHouse raises $350M Series C by swyx on Thursday May 29, 2025 @01:03PM (#44127978)
maybe HTAP works for most people though
Re:ClickHouse raises $350M Series C by bandoti on Thursday May 29, 2025 @12:58PM (#44127925)
Or if you have to use it because you’re self-hosting PostHog :)
Re:ClickHouse raises $350M Series C by jgalt212 on Thursday May 29, 2025 @01:04PM (#44127985)
I'm not sure storing 900B or 900MM records for analytics benefits anyone other than AWS. Why not sample?
Re:ClickHouse raises $350M Series C by sethhochberg on Thursday May 29, 2025 @01:19PM (#44128128)
A use case where we reached for Clickhouse years ago at an old job was for streaming music royalty reporting. Days of runtime on our beefy MySQL cluster, minutes of runtime in a very naively optimized Clickhouse server. And sampling wasn't an option because rightholders like the exactly correct amount of money per stream instead of some approximation of the right amount of money :)

There's nothing Clickhouse does that other OLAP DBs can't do, but the killer feature for us was just how trivially easy it was to replicate InnoDB data into Clickhouse and get great general performance out of the box. It was a very accessible option for a bunch of Rails developers who were moonlighting as DBAs in a small company.

Re:ClickHouse raises $350M Series C by jgalt212 on Thursday May 29, 2025 @03:19PM (#44129292)
Yes, payments is an N=all scenario. Analytics is not, however.
Re:ClickHouse raises $350M Series C by antisthenes on Thursday May 29, 2025 @06:15PM (#44130910)
Use-case dependent. For some analytics, you really want to see the tail ends (e.g. rare events) which sampling can sometimes omit or under-represent.
Re:ClickHouse raises $350M Series C by NunoSempere on Thursday May 29, 2025 @01:12PM (#44128066)
That seems like the kind of problem that would be easily done through monte-carlo approximation? How hard is it to get 1M random rows in a postgres database?
Re:ClickHouse raises $350M Series C by sylvinus on Thursday May 29, 2025 @01:17PM (#44128103)
ClickHouse has native support for sampling https://clickhouse.com/docs/sql-reference/statements/select/...