by bluestreak on 6/1/22, 5:56 PM with 15 comments
by untitaker_ on 6/2/22, 4:19 PM
...seems like a quite odd way to store time-series in ClickHouse. If I understood that code correctly (and I am really not sure), they partition their data by some tag value (the first one in a list?), and sort each partition by "tags ID", while timescaledb partitions by time afaik.
Of course there will be large discrepancies if data is sorted one way in one database schema, and another way in another schema. It seems that at least their query of "ORDER BY time LIMIT 10" would greatly benefit from partitioning or sorting the table by time.
Whether that makes sense depends on your usecase. But I don't think a benchmark with completely dfferent schemas, partitioning and primary keys across databases is fair.
Another thing I noticed is that their version of ClickHouse is quite old, at least aroudn the time the test was written. The shown CREATE TABLE syntax is deprecated since a few versions and cannot be found in recent docs, only github: https://github.com/ClickHouse/ClickHouse/blob/v18.16/docs/en...
by arunmu on 6/5/22, 1:35 PM
by bluestreak on 6/1/22, 5:58 PM
We'd love to get your feedback!
by ysleepy on 6/1/22, 8:42 PM
The post here really focuses on one query and that is weirdly without a time sort. Would similar queries be also fast? - What about a join, aggregates, lag()-over, subqueries, unions, etc queries
by ericb on 6/1/22, 7:56 PM
by nojvek on 6/2/22, 2:40 PM
Looks similar to SingleStore, I wonder how it would perform on the same benchmark. They also use JIT and scan parallelization.