by mathnode · 2y ago · 0 comments
It is extremely cost effective when you can scale a different workload without migrating.
While postgres works fine (even it is slower, but actually returns results)
But yes, I've seen similar issues, running out of memory during query processing, it's a price you pay for higher performance. You need to know what's happening under the hood and do more work to make sure your queries will work well. I think postgres can be a thousand or more times slower, and doesn't have the horizontal scalability, so if you need to do complex queries/aggregations over billions of records then "return result" doesn't cut it. If postgres addresses your needs then great- you don't need to use ClickHouse...
but what knobs to use and what values to use in each specific case? Query just usually fails with some generic OOM message without much information.
For a lot of what people may want to do, they'd probably notice very little difference between the three.
Having served as both ClickHouse and Postgres SRE, I don't agree with this statement.
- Minimal downtime major version upgrades in PostgreSQL is very challenging.
- glibc version upgrade breaks postgres indices. This basically prevents from upgrading linux OS.
And there are other things which makes postgres operationally difficult.
Any database with primary-replica architecture is operationally difficult IMO.