frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

How to Kill the Code Review

https://www.latent.space/p/reviews-dead
1•swyx•3s ago•0 comments

Yahoo Scout Beta

https://scout.yahoo.com
1•broabprobe•9s ago•0 comments

CreeperGIT

https://git.creepernet.qzz.io
1•heckersdata•2m ago•0 comments

The Remaking of Thomas Mann

https://www.commonwealmagazine.org/thomas-mann-magic-mountain-jensen
1•benbreen•2m ago•0 comments

Code Corners: A platform-agnostic alternative to GitHub Corners

https://codecorners.rknight.me
1•rknightuk•4m ago•0 comments

Show HN: M8tes.ai – AI teammates that do your work

https://www.m8tes.ai/
1•JacobCreator•5m ago•0 comments

Prolonged U.S.-Iran conflict could trigger major energy shock in eurozone

https://nltimes.nl/2026/03/02/ing-prolonged-us-iran-conflict-trigger-major-energy-shock-eurozone
1•TechTechTech•6m ago•0 comments

Does the war on Iran prove it's time to quit oil for good?

https://www.euronews.com/2026/03/02/a-world-chained-to-fossil-fuels-does-the-war-on-iran-prove-it...
1•doener•9m ago•0 comments

The 185-Microsecond Type Hint

https://blog.sturdystatistics.com/posts/type_hint/
3•kianN•12m ago•1 comments

Welcome to My Virtual Office

https://valerii15298.github.io/
1•mooreds•14m ago•0 comments

Will AI Replace You?

https://candidate.perfectly.so/roast
1•lopespm•14m ago•0 comments

Show HN: ThinkFirst – The Anti-ChatGPT for Students

https://apps.apple.com/us/app/thinkfirst-ai-homework-help/id6759180853
1•alibasharat5•14m ago•0 comments

What to know about the Strait of Hormuz

https://apnews.com/article/strait-hormuz-iran-energy-war-5b60e82ef2fc68e2b43aa570a32404dd
1•mooreds•14m ago•0 comments

ToolMisuseBench: A deterministic benchmark for tool-augmented Agents

https://huggingface.co/datasets/sigdelakshey/ToolMisuseBench
1•akgitrepos•15m ago•2 comments

Deception, Lies, and Valve [video]

https://www.youtube.com/watch?v=13eiDhuvM6Y
1•streetfighter64•16m ago•0 comments

Music Streaming Economics: 6.9M Streams and a Full Cross‑Platform Payout Dataset

https://www.lackluster.org/support/
1•conner_bw•16m ago•0 comments

8th Wall is now open source

https://8thwall.org/
1•2001zhaozhao•17m ago•0 comments

Show HN: Drawbridge – Drop-In SSRF Protection for Python

https://github.com/tachyon-oss/drawbridge
1•logicx24•17m ago•0 comments

Show HN: Veread – A minimal RSS reader for web. No sign ups. No downloads

https://veread.com/
1•vasanthv•18m ago•0 comments

1 Dataset 100 Visualizations

https://100.datavizproject.com/
1•bookofjoe•18m ago•0 comments

Building a Software Career in an LLM World

https://sumnerevans.com/posts/software-engineering/building-swe-career-in-llm-world/
1•chilipepperhott•18m ago•0 comments

Ask HN: How are you preventing runaway LLM workflows in production?

1•HenryM12•20m ago•0 comments

Associated Press Announces It's Teaming Up with Kalshi Ahead of the Midterms

https://www.mediaite.com/media/news/ap-announces-its-teaming-up-with-prediction-market-site-kalsh...
1•terminalbraid•23m ago•0 comments

Why (and how) we built 3 AI agents into our product

https://getlago.com/blog/building-ai-is-hard
2•FinnLobsien•25m ago•0 comments

February 2026: Bitcoin fell 24%. Nothing in crypto infrastructure broke

https://thefutureofmoney.substack.com/p/the-monetary-blueprint-6-cryptos
2•futureofmoney•25m ago•0 comments

YCombodogpatchrental

1•gekahng•28m ago•0 comments

Only 526 AI tools are in the topM most-visited websites

https://airankings.co
2•chadlad101•28m ago•1 comments

Ask HN: How do you get better at coding agents?

3•twitchard•28m ago•0 comments

This Month in Ladybird – February 2026: Adopting Rust for LibJS

https://ladybird.org/newsletter/2026-02-28/
1•exploraz•28m ago•0 comments

Show HN: Vanilla JavaScript refinery simulator built to explain job to my kids

1•fuelingcurious•29m ago•0 comments
Open in hackernews

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

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