frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

GDS weighs in on the NHS's decision to retreat from Open Source

https://shkspr.mobi/blog/2026/05/gds-weighs-in-on-the-nhss-decision-to-retreat-from-open-source/
1•edent•2m ago•0 comments

Tearing apart an x-ray machine I got from the government

https://www.youtube.com/watch?v=SCvUNmEWDFo
1•marklit•4m ago•0 comments

Secure Messaging Apps Have Solved Encryption. The Rest Is the Problem

https://xpalapp.substack.com/p/xpal-secure-messaging-app-security-architecture-2026
1•Brandon-Coll•7m ago•0 comments

Day 80 of internet blackout: We gave up in freedom of information in Iran [video]

https://www.youtube.com/watch?v=dQw4w9WgXcQ
1•us321•8m ago•0 comments

I don't think AI will make your processes go faster

https://frederickvanbrabant.com/blog/2026-05-15-i-dont-think-ai-will-make-your-processes-go-faster/
2•TheEdonian•9m ago•0 comments

I use LLMs as a staff engineer in 2026

https://www.seangoedecke.com/how-i-use-llms-in-2026/
2•alexharri•12m ago•0 comments

Shellify: Turning websites into Android apps, without the telemetry tax

https://github.com/smellouk/shellify5
2•dalidx88•12m ago•0 comments

Apple Silicon costs more than OpenRouter

https://www.williamangel.net/blog/2026/05/17/offline-llm-energy-use.html
3•datadrivenangel•14m ago•0 comments

What we learned from a cringey courtroom drama between Elon Musk and Sam Altman

https://www.theguardian.com/us-news/2026/may/16/what-we-learned-elon-musk-sam-altman
2•beardyw•18m ago•0 comments

Products are out, brains are in

https://mrmarket.bearblog.dev/products-are-out-brains-are-in-new/
3•mrmarket•19m ago•0 comments

Scientists believe ibogaine can help veterans overcome PTSD

https://www.bbc.com/future/article/20260514-how-hallucinogenic-ibogaine-helps-veterans-overcome-ptsd
2•bushwart•20m ago•1 comments

Show HN: Snatch Guard – iOS theft detection with accelerometer and Screen Time

https://snatchguard.app
2•olegmmv•24m ago•0 comments

One IP, Six Crawler Identities, One Second (Detection via Nginx Logs)

https://speytech.com/insights/rotational-bot-identity-detection/
2•william1872•24m ago•0 comments

RCP8.5 Is Officially Dead

https://rogerpielkejr.substack.com/p/rcp85-is-officially-dead
2•RickJWagner•26m ago•0 comments

Show HN: Peeklens – Palantir for Marketing

https://peeklens.ai/
2•ramsono•26m ago•1 comments

Prolonging healthy aging: Longevity vitamins and proteins (Study, 2018)

https://pmc.ncbi.nlm.nih.gov/articles/PMC6205492/
1•pogue•31m ago•0 comments

Native all the way, until you need text

https://justsitandgrin.im/posts/native-all-the-way-until-you-need-text/
3•dive•33m ago•1 comments

Every AI Subscription Is a Ticking Time Bomb for Enterprise

https://www.thestateofbrand.com/news/ai-subscription-time-bomb
2•mooreds•34m ago•0 comments

How to Write Articles and Essays Quickly and Expertly (2006)

https://www.downes.ca/post/38526
1•downbad_•35m ago•0 comments

Nine Things I Learned in Ninety Years [pdf]

https://edwardpackard.com/wp-content/uploads/2026/04/Nine-Things-I-Learned-In-Ninety-Years.pdf
1•jimsojim•35m ago•0 comments

Kaiden: Workstation AI Sandbox Desktop Application

https://openkaiden.ai/
1•illusive4080•35m ago•1 comments

Ebola epidemic in DRC, Uganda public health emergency of international concern

https://www.who.int/news/item/17-05-2026-epidemic-of-ebola-disease-in-the-democratic-republic-of-...
3•JumpCrisscross•39m ago•0 comments

How Agile became a mis-Agile Disaster

https://medium.com/@andvgal/how-agile-became-a-mis-agile-disaster-1c1905cba329
1•andvgal•40m ago•0 comments

The age of thin clients and middle managers

https://kixpanganiban.bearblog.dev/the-age-of-thin-clients-and-middle-managers/
2•kixpanganiban•45m ago•0 comments

Claude Code Did the Heavy Lifting to Get Adobe Lightroom CC Running on Linux

https://www.phoronix.com/news/Adobe-Lightroom-CC-Linux
2•bno1•46m ago•0 comments

Your browser probably lies to the big sites (blame Chrome)

https://hackaday.com/2026/05/16/your-browser-probably-lies-to-the-big-sites-blame-chrome/
1•notpushkin•51m ago•0 comments

China bypasses US GPU bans with 1.54-exaflops 'LineShine' supercomputer

https://www.tomshardware.com/tech-industry/artificial-intelligence/china-bypasses-us-gpu-bans-wit...
2•giuliomagnifico•51m ago•0 comments

Mnemonicai – AI that learns from your company's work, not your docs

https://mnemonic.nishantvanawala6118.workers.dev
1•Nishvana•54m ago•0 comments

AI in Finance: What Is Working Today

https://members.sigmazero.cc/posts/ai-in-finance-is-157955538?postId=ai-in-finance-is-157955538
2•sigmazero•55m ago•0 comments

Pixal3D: Pixel-Aligned 3D Generation from Images

https://ldyang694.github.io/projects/pixal3d/
2•steveharing1•58m ago•0 comments
Open in hackernews

Ask HN: How can I load test PostgreSQL but avoid changing actual data?

1•LawZiL•1y ago
I'm running a load test on my Node.js application and want to simulate realistic write-heavy scenarios to stress test the system — especially the PostgreSQL database.

There's a part of the code that performs UPDATE queries, but during load testing, I don't want these updates to actually change the state of the database. However, I still want the database to experience the full impact of the update — query planning, locking, I/O, WAL writes, etc. — so I can measure how it affects performance under peak load.

Is there a best-practice approach to achieve this?

So far, the most viable option I’ve found is to wrap the UPDATE queries in a transaction and then roll it back — that way, the queries still execute, but the state doesn’t change. Is this the right way to go? Does rollback introduce any performance overhead that would skew my results? Are there better or more realistic alternatives that simulate the full write path without persisting changes?

Thanks in advance!

Comments

sargstuff•1y ago
pgbench[2] / pgreplay-go[0] / python locust[1]

very old school approach:

Misuse sql VIEW[3][4] to generate a temporary parallel table setup. Testing database separate from production database would be 'better', IMHO.

-----

[0] pgreplay-go : https://github.com/gocardless/pgreplay-go

[1] python locust : https://miguel-codes.medium.com/unconventional-load-testing-...

[2] pgbench load testing :

   a) https://medium.com/@c.ucanefe/pgbench-load-test-166bdfb5c75a

   b) https://neon.tech/blog/autoscaling-in-action-postgres-load-testing-with-pgbench

   c) https://hackernoon.com/how-to-create-and-load-test-data-in-postgresql-i41e353m
----------------------------

[3] : a) https://hashrocket.com/blog/posts/materialized-view-strategi...

      b) https://tech.jonathangardner.net/wiki/PostgreSQL/Materialized_Views

      c) https://stackoverflow.com/questions/77603705/what-is-the-use-of-materialized-view-in-postgresql
[4] : https://en.wikipedia.org/wiki/View_(SQL)
LawZiL•1y ago
but again, how can i perform the query, but not actually change the state, i really need the state to keep untouched, but be able to perform the query itself.
MatthiasPortzel•1y ago
> Does rollback introduce any performance overhead that would skew my results?

I would expect it to be the other way around—since the transactions are rolled back and not committed, they would have significantly less performance impact. But I’m working from an academic model of the database.

apothegm•1y ago
Load test against a clone instead of a DB whose contents you care about?