frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Indent Is All You Need

https://blog.est.im/2026/stdin-11
1•est•2m ago•0 comments

The arrogant superbanker whose hubris brought Britain to its knees

https://inews.co.uk/opinion/arrogant-superbanker-hubris-brought-britain-knees-4331457
1•robtherobber•3m ago•0 comments

Making the Rails Default Job Queue Fiber-Based

https://paolino.me/solid-queue-doesnt-need-a-thread-per-job/
1•earcar•4m ago•0 comments

The Dirty Little Secret of AI (On a 1979 PDP-11) [video]

https://www.youtube.com/watch?v=OUE3FSIk46g
1•KnuthIsGod•9m ago•0 comments

HappyHorse AI – AI-Powered Equestrian Training

https://www.runhappyhorse.net
1•danielmateo773•10m ago•0 comments

Master of chaos wins $3M math prize for 'blowing up' equations

https://www.scientificamerican.com/article/master-of-chaos-wins-usd3m-math-prize-for-blowing-up-e...
1•signa11•10m ago•0 comments

Why the Original Task Manager Was Under 80K and Insanely Fast [video]

https://www.youtube.com/watch?v=OyN4LGyPwxc
2•KnuthIsGod•10m ago•0 comments

Influencers Are Spinning Nicotine as a 'Natural' Health Hack

https://www.nytimes.com/2026/04/20/well/nicotine-health-maha.html
2•SockThief•11m ago•1 comments

Details that make interfaces feel better

https://jakub.kr/writing/details-that-make-interfaces-feel-better
1•dg-ac•12m ago•0 comments

Watch a 200 Pound, 14" Drive from the 80s Boot Unix [video]

https://www.youtube.com/watch?v=kpC_9EmStAE
1•KnuthIsGod•12m ago•0 comments

My billing system, it could be useful to some

https://github.com/peterretief/billing-v2
2•peter_retief•14m ago•1 comments

ConvertHook – White-label widget that shows where brands rank in ChatGPT

https://converthook.com
1•joefromcomkey•16m ago•0 comments

Palantir manifesto reads like the ramblings of a comic book villain

https://www.engadget.com/big-tech/palantir-posted-a-manifesto-that-reads-like-the-ramblings-of-a-...
1•robtherobber•16m ago•0 comments

SUSE and Nvidia reveal a turnkey AI factory for sovereign enterprise workloads

https://thenewstack.io/suse-nvidia-ai-factory/
1•CrankyBear•16m ago•0 comments

Curlew conservation scheme makes breakthrough in Fermanagh

https://www.rte.ie/news/ireland/2026/0421/1569263-curlew-conservation/
1•austinallegro•17m ago•0 comments

Modern Front end Complexity: essential or accidental?

https://binaryigor.com/modern-frontend-complexity.html
1•birdculture•19m ago•0 comments

Show HN: WeTransfer Alternative for Developers

https://dlvr.sh/
3•mariusbolik•25m ago•0 comments

Keeping code quality high with AI agents

https://locastic.com/blog/keeping-code-quality-high-with-ai-agents
1•locastica•26m ago•0 comments

The MACL Extended Attribute

https://eclecticlight.co/2026/04/21/the-macl-extended-attribute/
1•frizlab•28m ago•0 comments

Mother Earth Mother Board

https://efdn.notion.site/Mother-Earth-Mother-Board-WIRED-a8ff97e460bc4ac1b4a7b87f3503a55c
1•thunderbong•30m ago•0 comments

US recession probabilities implied by the yield curve

https://www.stlouisfed.org/on-the-economy/2023/sep/what-probability-recession-message-yield-spreads
1•latentframe•35m ago•1 comments

Show HN: AnyHabit – A minimalist habit tracker for Raspberry Pi and Docker

https://github.com/Sparths/AnyHabit
1•bebedi•37m ago•0 comments

Highlights from Git 2.54

https://github.blog/open-source/git/highlights-from-git-2-54/
1•tux3•40m ago•0 comments

Enhancing Sporting Organisation Efficiency with Generative AI

https://sinankprn.com/posts/enhancing-sporting-organisation-efficiency-with-generative-ai/
1•sminchev•40m ago•0 comments

Reconstructing a Vue and Three.js app from a single Webpack bundle

1•YufanZhang•40m ago•0 comments

Show HN: Tiltbump – another game in a single HTML file

https://tiagosimoes.github.io/tiltbump/
2•eropatori•42m ago•0 comments

WebP to PNG Converter – Convert WebP to PNG Online Free

https://www.wps.com/tools/webp-to-png/
2•morganglow•48m ago•1 comments

AI agents are a security nightmare. Moving the dev workflow to QEMU

https://hozan23.com/posts/ai-security-nightmare/
1•hozan23•50m ago•0 comments

Kiss Principle

https://en.wikipedia.org/wiki/KISS_principle
2•edu•53m ago•0 comments

Pagetok – an all-in-one AI assistant on your Mac

https://pagetok.web.app/
1•loopstring•55m ago•0 comments
Open in hackernews

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

1•LawZiL•11mo 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•11mo 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•11mo 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•11mo 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•11mo ago
Load test against a clone instead of a DB whose contents you care about?