Lurker News

Comments (167) 28 threads

Earlier comments
gkbrk3 replies#
My Hacker News items table in ClickHouse has 47,428,860 items, and it's 5.82 GB compressed and 18.18 GB uncompressed. What makes Parquet compression worse here, when both formats are columnar?
xnx1 reply#
Parquet has a few compression option. Not sure which one they are using.
hirako2000#
Plus isn't the least wasteful format, native duckdb for instance compacts better. That's not just down to the compression algorithm, which as you say got three main options for parquet.
0cf8612b2e1e#
Sorting, compression algorithm +level, and data types can all have an impact. I noted elsewhere that a Boolean is getting represented as an integer. That’s one bit vs 1-4 bytes.

There is also flexibility in what you define as the dataset. Skinnier, but more focused tables could be space saving vs a wide table that covers everything -will probably break compressible runs of data.

boznz1 reply#
.. and Remove all the political shit-slop since COVID/AI and it's probably under a gig.
mulmen#
You could download the data and run that analysis yourself. I’d be interested to see it, especially your method of identifying “political shit-slop” and “AI” and the relationship to COVID. Sounds like an interesting project.
alstonite2 replies#
What happened between 2023 and 2024 to cause the usage dropoff?
ghgr1 reply#
I'd say it's less a usage dropoff and more a reversion to the mean after Covid
tehjoker#
That's a possible hypothesis, but there was also a rising trend prior, it wasn't stable.
imhoguy#
Return to office
epogrebnyak1 reply#
Wonder why median votes count is 0, seems every post is getting at least a few votes - maybe this was not the case in the past
epogrebnyak1 reply#
Ahhh I get it the moment I asked, there are usually no votes on comments
estimator7292#
Don't all comments start out with one vote?
vovavili3 replies#
Replacing an 11.6GB Parquet file every 5 minutes strikes me as a bit wasteful. I would probably use Apache Iceberg here.
fabmilo#
Was thinking the same thing. probably once a day would be more than enough. if you really want a minute by minute probably a delta file from the previous day should be more than enough.
vovavili2 replies#
This makes more sense. I still wonder if the author isn't just effectively recreating Apache Iceberg manually here.
tomrod2 replies#
Are they paying for the repo space, I wonder?

Continue this thread — 2 replies

tamnd#
I intentionally kept it lightweight. Just Parquet files + simple partitioning + commits on Hugging Face. That already covers most of what I need, without introducing a heavier stack or extra dependencies.

Also, I wanted something that is easy to consume anywhere. With this setup, you can point DuckDB or Polars directly at the data and start querying, no catalog or special tooling required.

btown1 reply#
I recall that this became a big problem for the Homebrew project in terms of load on the repo, to the extent that Github asked them not to recommend/default-enable shallow clones for their users: https://github.com/Homebrew/brew/issues/15497#issuecomment-1...

This is likely to be lower traffic, and the history should (?) scale only linearly with new data, so likely not the worst thing. But it's something to be cognizant of when using SCM software in unexpected ways!

roncesvalles1 reply#
How would shallow clone be more stressful for GitHub than a regular clone?

Continue this thread — 1 reply

sureglymop#
So they are sharding by time/day?

I have a similar project right now where I am scraping a dataset that is only ever offering the current state. I am trying to preserve the history of this dataset and was thinking of using the same strategy. If anyone has experience or pointers in how to best add time as a dimension to an existing generic dataset, I'd love to read about it.

zerocrates1 reply#
"The dataset is organized as one Parquet file per calendar month, plus 5-minute live files for today's activity. Every 5 minutes, new items are fetched from the source and committed directly as a single Parquet block. At midnight UTC, the entire current month is refetched from the source as a single authoritative Parquet file, and today's individual 5-minute blocks are removed from the today/ directory."

So it's not really one big file getting replaced all the time. Though a less extreme variation of that is happening day to day.

tomrod#
Parquet is a very efficient storage approach. Data interfaces tend to treat paths as partitions, if logical.

Load more comments