Better HN
topnewbestaskshowjobs
Log inSign up

adastral

171 karma · joined Mar 7, 2024 (2y ago) · 22 submissions

Submissions

1.

Building a Serverless ClickHouse(jordivillar.com ↗)

4 points · by adastral · 1w ago · 2 comments

2.

Postgres 19: Are we reverting patches because of bugs found by AI?(vondra.me ↗)

1 points · by adastral · 1mo ago · discuss

3.

Being considerate of other people's time(vondra.me ↗)

3 points · by adastral · 2mo ago · 1 comment

4.

Forward Deployed Engineers from the Trenches(javisantana.com ↗)

1 points · by adastral · 2mo ago · discuss

5.

I've operated petabyte-scale ClickHouse clusters for 5 years(tinybird.co ↗)

246 points · by adastral · 2mo ago · 90 comments

comment 3mo ago · link · parent

How do you cope with distributed transactions? (I'm not sure if you support them?)

I know that Citus has a `citus_create_restore_point()` (or so) function that, when called, guarantees that no 2PC commits are in flight and creates a WAL restore point in every shard. Therefore, restoring shards to that point will leave the DB in a consistent state. Do you do something similar?

7.

Pg_hardstorage: PostgreSQL Backup, Done Right(github.com ↗)

5 points · by adastral · 5mo ago · discuss

8.

RawTree(rawtree.com ↗)

3 points · by adastral · 5mo ago · discuss

9.

We moved our growth analytics back into Tinybird(tinybird.co ↗)

3 points · by adastral · 5mo ago · discuss

10.

Key Joins (SQL Proposal)(keyjoin.org ↗)

2 points · by adastral · 5mo ago · discuss

comment 1y ago · link · parent

PostgresTV livestreams "vibe coding" 1h sessions implementing small PostgreSQL features with Cursor (mostly claude-4-sonnet model) every week, by experienced PostgreSQL contributors. [0] is their latest stream.

I personally have not watched much, but it sounds just like what you are looking for!

[0] https://www.youtube.com/watch?v=3MleDtXZUlM

12.

Git-worktree – Manage multiple working trees(git-scm.com ↗)

8 points · by adastral · 1y ago · discuss

13.

Benchmarking Is Hard, Sometimes(vondra.me ↗)

2 points · by adastral · 1y ago · discuss

14.

Decomposing Transactional Systems(transactional.blog ↗)

18 points · by adastral · 1y ago · discuss

15.

Dynamically estimating and scaling Postgres' working set size (2024)(neon.tech ↗)

2 points · by adastral · 1y ago · discuss

comment 1y ago · link · parent

> I default to a headless browser

Headless browsers consume orders of magnitude more resources, and execute far more requests (e.g. fetching images) than a common webscraping job would require. Having run webscraping at scale myself, the cost of operating headless browsers made us only use them as a last resort.

17.

AWS CloudWatch and AWS OpenSearch launch an integrated analytics experience(aws.amazon.com ↗)

2 points · by adastral · 1y ago · discuss

comment 2y ago · link · parent

From https://www.codeofhonor.com/blog/the-starcraft-path-finding-...

> whenever harvesters are on their way to get minerals, or when they’re on the way back carrying those minerals, they ignore collisions with other units

Maybe that's part of the fluid behaviour you noticed.

The blog contains more technical posts about StarCraft 2, so you might find that "special sauce" somewhere else in there :)

comment 2y ago · link · parent

Not sure if this is what the above comment means by "atomic", but a shortcoming of Postgres' JSON support is that it will have to rewrite an entire JSON object every time a part of it gets updated, no matter how many keys the update really affected. E.g. if I update an integer in a 100MB JSON object, Postgres will write ~100MB (plus WAL, TOAST overhead, etc.), not just a few bytes. I imagine this can be a no-go for certain use cases.

comment 2y ago · link · parent

Around ten heavily-updated (50-400k updated rows/min) tables ranging between 500M and 5B rows, with a couple tables over 40B rows each (5TB each IIRC).

comment 2y ago · link · parent

I see they don't mention Citus (https://github.com/citusdata/citus), which is already a fairly mature native Postgres extension. From the details given in the article, it sounds like they just reimplemented it.

I wonder if they were unaware of it or disregarded it for a reason —I currently am in a similar situation as the one described in the blog, trying to shard a massive Postgres DB.

comment 2y ago · link · parent

> they'll be encrypted

Since some months (years?) ago, WhatsApp lets you set up your own encryption password for the DB backup. I set one up and used https://github.com/ElDavoo/wa-crypt-tools to get access to the decrypted SQLite and run some analytics over my messages :)