We use ClickHouse extensively and it's been great: https://blog.cloudflare.com/http-analytics-for-6m-requests-p...
You've lost a Russian IT meme in translation. We use the verb " to use brakes " to describe that something works slowly. There was a long story of threads about Java performance, until the meme was solidified after the news from 2005 DARPA Grand Challenge (racing competition for autonomous robotic self-driven cars): a car named Tommy by Jefferson Team which was running Java under Linux haven't used breaks before a tu…
ClickHouse cost-efficiency in action: analyzing 500B rows on an Intel NUC
11–20 of 91 posts
Re: ClickHouse cost-efficiency in action: analyzing 500B rows on an Intel NUC
#12Earlier quoted context omitted.
You've lost a Russian IT meme in translation. We use the verb " to use brakes " to describe that something works slowly. There was a long story of threads about Java performance, until the meme was solidified after the news from 2005 DARPA Grand Challenge (racing competition for autonomous robotic self-driven cars): a car named Tommy by Jefferson Team which was running Java under Linux haven't used breaks before a tu…
I think you mean "brakes," as I thought you meant "breaks" like in an iterator. Not that familiar with Java though, just assuming based on the reference to a vehicle failing to brake before a turn. I thought maybe it meant using break statements in your loops slows things down or something.
Re: ClickHouse cost-efficiency in action: analyzing 500B rows on an Intel NUC
#13Re: ClickHouse cost-efficiency in action: analyzing 500B rows on an Intel NUC
#14What’s the tldr on why it is fast?
I'd say the materialized view is the main thing: > Thus, we add the following materialized view ... At the end we should have 1440 times fewer rows in the aggregate than the source table. The cost of populating that view is amortized over the 17.5 hours it took to load the data.
That said, there are a lot of other tools: column storage, vectorwise query, efficient compression including column codecs, and skip indexes to name a few. If you only have a few billion rows it's still possible to get sub-second query results using brute force scans.
Disclaimer: I work for Altinity, who wrote this article.
Re: ClickHouse cost-efficiency in action: analyzing 500B rows on an Intel NUC
#15Re: ClickHouse cost-efficiency in action: analyzing 500B rows on an Intel NUC
#16Not exactly a good comparison if you don't generate the data the same way for the test setup. Your generated data is more compressible by clickhouse, that skews the comparison. Would have been better to not change the test data if you wanted to do a comparison.
It was kind of a crummy use case for Scylla anyway (it’s a transactional write store, not an analytics engine)
Re: ClickHouse cost-efficiency in action: analyzing 500B rows on an Intel NUC
#17Not exactly a good comparison if you don't generate the data the same way for the test setup. Your generated data is more compressible by clickhouse, that skews the comparison. Would have been better to not change the test data if you wanted to do a comparison.
It's also useful to note that the materialized view results would be essentially the same no matter how you generate and store data because the materialized view down-samples temperature max/min to daily aggregates. The data are vastly smaller no matter how you generate them.
The article illustrates that if you really had such an IoT app and designed it properly you could run analytics with surprisingly few resources. I think that's a significant point.
Re: ClickHouse cost-efficiency in action: analyzing 500B rows on an Intel NUC
#18Earlier quoted context omitted.
I'd say the materialized view is the main thing: > Thus, we add the following materialized view ... At the end we should have 1440 times fewer rows in the aggregate than the source table. The cost of populating that view is amortized over the 17.5 hours it took to load the data.
Mat views are great as the article showed. I use them to get query response down to milliseconds, as they vastly reduce the amount of data ClickHouse must scan. That said, there are a lot of other tools: column storage, vectorwise query, efficient compression including column codecs, and skip indexes to name a few. If you only have a few billion rows it's still possible to get sub-second query results using brute for…
Re: ClickHouse cost-efficiency in action: analyzing 500B rows on an Intel NUC
#19Not exactly a good comparison if you don't generate the data the same way for the test setup. Your generated data is more compressible by clickhouse, that skews the comparison. Would have been better to not change the test data if you wanted to do a comparison.
The important difference is that we used a more realistic temperature profile, which as you say does affect compression for that column . Schema design (including sort order, compression, and codecs) for the remaining columns is just good ClickHouse practice. Much of the storage and I/O savings is in the date, time, and sensor_id and columns. It's also useful to note that the materialized view results would be essent…