frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Benchmarking Postgres

https://planetscale.com/blog/benchmarking-postgres
12•samaysharma•8h ago

Comments

Imustaskforhelp•7h ago
Planetscale... is an interesting company. They have ended their free tier and I am not sure where, but someone pointed out that they are essentially just being a b2b company now in some sense (and they lost quite a bit reputation from indie hackers)

Now after that, they released their nvme drive innovation which I admit I am a little ignorant of.

Now one of the reasons that I hated planetscale was that it was exclusively mysql, Postgresql is good tbh. But can it run postgres extensions?

And also regarding convex using them. Isn't convex itself a database? / a reactive database. I didn't knew that underneath convex used some other database like postgres though I guess Correct me if I am wrong but from my last recall, they can also use sqlite etc. too.

Another point I'd like to raise is that alloydb is the cheapest in their benchmark except their own product.

And I wonder if there is some part of the results that they have omitted to be shown as the better product & I'd like to see third party results too tbh.

I'd also love to see it being open source tbh. Neon/Supabase is open source fwiw. The closest open source I could see of planetscale is of https://github.com/planetscale/migration-scripts where its a shell script to migrate from postgres to planetscale and at the time of writing, a recent commit just 36 minutes ago was launched but I guess I'd like to genuinely tweak and self host what makes their postgres better IDK

vvern•7h ago
Folks, for the love of god, please please stop running TPC-C without the “keying time” and calling it “the industry-standard TPCC benchmark”.

I understand there are practical reasons why you might want to just choose a concurrency and let it rip at a fixed warehouse size and say, “I ran TPC-C”, but you didn’t!

TPC-C when run properly is effectively an open-loop benchmark that scales where the load scales with the dataset size by having a fixed number of workers per warehouse (2?) that each issue transactions at some rate. It’s designed to have a low level of builtin contention that occurs based on the frequency of cross warehouse transactions, I don’t remember the exact rate but I think it’s something like 10%.

The benchmark has an interesting property that if the system can keep up with the transaction load by processing transactions quickly, it remains a low contention workload but if it falls behind and transactions start to pile up, then the number of contending transactions in flight will increase. This leads to non-linear degradation mode even beyond what normally happens with an open loop benchmark — you hit some limit and the performance falls off a cliff because now you have to do even more work than just catching up on the query backlog.

When you run without think time, you make the benchmark closed loop. Also, because you’re varying the number of workers without changing the dataset size (because you have to vary something to make your pretty charts), you’re changing the rate at which any given transaction is going to be on the same warehouse. So, you’ve got more contending transactions generally, but worse than that, because of Amdahl’s law, the uncontended transactions will fly through, so most of the time for most workers will be spend sitting waiting on contended keys.

wdb•7h ago
Not sure why you would benchmark AlloyDB/Postgres running on Google Cloud against Planetscale running on AWS? Why not test it against Google Cloud Compute? Typically, there is a good reason why people using a Google Cloud Service
bob1029•7h ago
Seeing latency figures measured in hundreds of milliseconds in the best cases really drives home for me how big of a deal solutions like SQLite can be.

If you took their exact same hardware and put the application+SQLite on the same box, you could literally chop 4 zeroes off these p99 latency figures. NVMe storage is unbelievably fast when it's utilized in the same machine that the application runs on.

jauntywundrkind•6h ago
That's fine if you don't super care about the data. I expect these latency figures in particular would look better if there wasn't any replication (Q/s might not change much though, would be my guess).

> At PlanetScale, we give you a primary and two replicas spread across 3 availability zones (AZs) by default. Multi-AZ configurations are critical to have a highly-available database. The replicas can also be used to handle significant read load.

mhuffman•6h ago
Don't even need SQLite for the speed up, although SQLite is fast. I routinely get blazing fast p99 latency on local hardware from postgres itself.

Celebrating love in all its forms across identities and relationships

https://childrensbookforall.org/readings/16
1•chbkall•1m ago•1 comments

Qantas customers involved in mammoth data breach

https://www.news.com.au/travel/travel-updates/incidents/qantas-customers-involved-in-mammoth-data-breach
1•aussieguy1234•2m ago•1 comments

New claim added: X opens up to Community Notes written by AI bots

https://www.theverge.com/news/696210/x-community-notes-ai-note-writers
2•bundie•2m ago•0 comments

HTTP: H Is for Hallucinated

https://www.jasonthorsness.com/28
1•jasonthorsness•4m ago•0 comments

The simple act of reading can be a crime in Malaysia. Here's why

https://www.rnz.co.nz/life/books/the-simple-act-of-reading-can-be-a-crime-in-malaysia-here-s-why
3•billybuckwheat•4m ago•0 comments

Profiting from Genocide

https://chrishedges.substack.com/p/profiting-from-genocide
4•chmaynard•7m ago•0 comments

Powell confirms that the Fed would have cut by now were it not for tariffs

https://www.cnbc.com/2025/07/01/powell-confirms-that-the-fed-would-have-cut-by-now-were-it-not-for-tariffs.html
1•fedest•13m ago•0 comments

Hilbert's sixth problem: derivation of fluid equations via Boltzmann's theory

https://arxiv.org/abs/2503.01800
1•nsoonhui•28m ago•0 comments

Wider or Deeper? Scaling LLM Inference-Time Compute with Adaptive Tree Search

https://arxiv.org/abs/2503.04412
1•vrm•29m ago•0 comments

Should you lose your rights with age?

https://news.harvard.edu/gazette/story/2025/07/as-wave-of-dementia-cases-looms-law-school-looks-to-preserve-elders-rights/
2•gnabgib•33m ago•1 comments

Self-hostable AT Protocol backlink index that runs on a RPi 4

https://github.com/at-microcosm/links/tree/main/constellation
1•ffin•34m ago•0 comments

Cross-Device Flows: Security Best Current Practice

https://www.ietf.org/archive/id/draft-ietf-oauth-cross-device-security-10.html
3•mooreds•36m ago•0 comments

The Eiffel Tower is closed to tourists due to searing heat

https://www.cnn.com/2025/07/01/weather/europe-heat-wave-global-warming
1•mooreds•37m ago•0 comments

Dewdrop: A Java Event Sourcing Framework

https://dewdrop.events/
2•mooreds•38m ago•0 comments

You MUST Listen to RFC 2119

https://ericwbailey.website/published/you-must-listen-to-rfc-2119/
4•zdw•39m ago•1 comments

Show HN: Conduit – Turn large text files into listenable audio

https://conduit-landing-page-git-master-tobys-projects-a638df7e.vercel.app/
2•tboneskibs•41m ago•0 comments

Show HN: I built a procedural universe in Python to explore simulation theory

https://github.com/SurceBeats/Atlas
1•SurceBeats•46m ago•1 comments

Trump threatens Tesla, SpaceX support

https://www.reuters.com/business/autos-transportation/elon-musk-renews-criticism-trump-spending-bill-calls-new-political-party-2025-06-30/
9•geox•48m ago•3 comments

Qantas says 6M customers caught up in cyberattack

https://www.afr.com/companies/transport/qantas-says-6-million-aussies-caught-up-in-cyberattack-20250702-p5mbup
3•sen•48m ago•2 comments

Visual intuitive tool to design predict and optimise complex economic models

https://machinations.io
1•leetrout•48m ago•0 comments

iPhone Satellite Functionality Saves Denver Mountaineer

https://www.macrumors.com/2025/07/01/iphone-satellite-denver-climber/
1•alwillis•53m ago•1 comments

Meta bans two anti-Zionist comedians from Instagram

https://mondoweiss.net/2025/07/metas-banning-of-two-anti-zionist-comedians-from-instagram-is-the-latest-example-of-big-techs-deep-anti-palestinian-bias/
8•siltcakes•58m ago•0 comments

Australians to face age checks from search engines

https://ia.acs.org.au/article/2025/australians-to-face-age-checks-from-search-engines.html
12•stubish•1h ago•2 comments

Cursor for the first time today. It was perfect until

https://medium.com/@tahaymerghani/cursor-fixed-everything-until-it-didnt-1e8c20a8f30b
1•taha_moji•1h ago•0 comments

Proximity to Golf Courses and Risk of Parkinson Disease

https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2833716
1•pseudolus•1h ago•0 comments

AI: Great Expecations (1988) [pdf]

https://people.csail.mit.edu/brooks/idocs/AI_hype_1988.pdf
1•Rexxar•1h ago•0 comments

European consumers are mostly saying 'non' to trading in their old phones

https://www.theregister.com/2025/06/18/used_phones_europe/
2•PaulHoule•1h ago•0 comments

Homes Are Taking Longer to Sell in US Markets That Once Flourished

https://www.bloomberg.com/news/articles/2025-07-01/homes-now-harder-to-sell-in-florida-us-south-real-estate-markets
3•JumpCrisscross•1h ago•3 comments

The Tale of the Tribe

https://www.redfin.com/news/the-tale-of-the-tribe/
1•toomuchtodo•1h ago•0 comments

We've Issued Our First IP Address Certificate

https://letsencrypt.org/2025/07/01/issuing-our-first-ip-address-certificate/
41•soheilpro•1h ago•2 comments