HNHacker News
TopNewBestAskShowJobs

richraposa

18 karma · joined September 20, 2021

submissionscomments
richraposa··on Summing columns in remote Parquet files using DuckDB
...says the completely anonymous internet guy. I'm laughing as much as you are.

I wasn't trying to imply anything negative about DuckDB with my post - was just sharing how ClickHouse does the same thing. FWIW: the blog author added my query to his blog, so my non-combative comment was politely received.

richraposa··on Summing columns in remote Parquet files using DuckDB
ClickHouse just reads the values from the one column being summed: https://www.markhneedham.com/blog/2023/11/15/clickhouse-summ...
richraposa··on Summing columns in remote Parquet files using DuckDB
Nice. I did the same thing on ClickHouse - took 11 seconds:

    SELECT sum(size)
    FROM url('https://huggingface.co/datasets/vivym/midjourney-messages/resolve/main/data/0000{01..55}.parquet')
    
    Query id: 9d145763-0754-4aa2-bb7d-f6917690f704
    
    ┌───────sum(size)─┐
    │ 159344011148016 │
    └─────────────────┘
    
    1 row in set. Elapsed: 11.615 sec. Processed 54.08 million rows, 8.50 GB (4.66 million rows/s., 731.83 MB/s.)
    Peak memory usage: 458.88 KiB.
richraposa··on Cost-predictable logging at scale with ClickHouse, Grafana and WarpStream
CGW = Can't Go Wrong...love it
richraposa··on ChDB: Embedded OLAP SQL Engine Powered by ClickHouse
ClickHouse 10 years before DuckDB existed:

SELECT * FROM url('https://example.com/*.csv')

richraposa··on ChDB: Embedded OLAP SQL Engine Powered by ClickHouse
I suppose if you had data in a format that DuckDb doesn't work with, like Protobuf, Avro, ORC, Arrow, etc. ClickHouse reads and writes data in over 70 formats
richraposa··on Ask HN: Suitable database to store web analytics data for million insertion
ingestion of these events during peaks at 500k events per minute. You can't ingest them individually into Clickhouse or most other databases.

Turn on async_insert or use a Buffer table engine and you can easily insert them individually into ClickHouse

richraposa··on Ask HN: Suitable database to store web analytics data for million insertion
Cloudflare famously uses ClickHouse for web analytics - inserting over 6M rows per second: https://blog.cloudflare.com/http-analytics-for-6m-requests-p...
richraposa··on DuckDB: Querying JSON files as if they were tables
It's definitely cool to be able to query data in place instead of inserting it into a table. You can use clickhouse-local to do the same thing with JSON files (and with dozens of other data formats): https://clickhouse.com/blog/worlds-fastest-json-querying-too...
richraposa··on Reducing BigQuery Costs: How We Fixed a $1M Query
You should try it on ClickHouse Cloud - the pricing is not based on bytes, so the resulting cost would be near zero compared to $1M on BigQuery.

And it would probably execute faster... :)

(Disclaimer: I work at ClickHouse)