by valyala · 6y ago · 0 comments
If you need effectively storing trillions of rows and performing real-time OLAP queries over billions of rows, then it is better to use ClickHouse [1], since it requires 10x-100x less compute resources (mostly CPU, disk IO and storage space) than PostgreSQL for such workloads.
If you need effectively storing and querying big amounts of time series data, then take a look at VictoriaMetrics [2]. It is built on ideas from ClickHouse, but it is optimized solely for time series workloads. It has comparable performance to ClickHouse, while it is easier to setup and manage comparing to ClickHouse. And it supports MetricsQL [3] - a query language, which is much easier to use comparing to SQL when dealing with time series data. MetricsQL is based on PromQL [4] from Prometheus.
[2] https://github.com/VictoriaMetrics/VictoriaMetrics
[3] https://github.com/VictoriaMetrics/VictoriaMetrics/wiki/Metr...
[4] https://medium.com/@valyala/promql-tutorial-for-beginners-9a...
I'm super excited about this news, but TSDB please work on allowing us to put data over 1 year old on slow disk seperate servers, so we can keep the hot stuff on the NVME servers, once you get this sorted it will be the perfect fit for us.
ClickHouse recently added multi-volume storage for exactly the use case you describe. [1] It's a great feature.
[1] https://www.altinity.com/blog/2019/11/27/amplifying-clickhou...