frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Nothing Impossible Happens

https://www.oxonianreview.com/articles/nothing-impossible-happens
1•hhs•11s ago•0 comments

What Dwayne 'The Rock' Johnson Knows About Pain

https://www.nytimes.com/2025/09/21/magazine/dwayne-johnson-the-rock-smashing-machine.html
1•nsoonhui•1m ago•0 comments

The cost of protecting Oracle Corp.'s debt against default rose on Friday

https://www.bloomberg.com/news/articles/2025-11-14/oracle-credit-derivatives-jump-as-traders-rush...
1•zerosizedweasle•2m ago•0 comments

I wrote a playable Pong game in a 512-byte boot sector

https://akshatjoshi.com/i-wrote-a-pong-game-in-a-512-byte-boot-sector/
1•akshat666•3m ago•0 comments

Scam.security Wants Freelancer

1•Jaseymour•5m ago•0 comments

Show HN: A visual guide to learning Jujutsu (JJ)

https://excalidraw.com/#json=kMtNOJfH_UUOzBqt7WXx9,cyuXonQjb-Kor72f0F5YXg
2•anavid7•7m ago•0 comments

Code Wiki: Accelerating your code understanding

https://developers.googleblog.com/en/introducing-code-wiki-accelerating-your-code-understanding/
3•nh43215rgb•14m ago•0 comments

SlimBrowser: Fastest web browser for Windows that blocks all Ads

https://www.slimbrowser.net/
1•thunderbong•14m ago•0 comments

Student brags on social media about calling ICE on car wash workers

https://www.wbur.org/news/2025/11/13/student-ice-car-wash-social-bu-republicans
5•geox•20m ago•0 comments

Do you know how much the world outside a small group of people hate AI?

9•zerosizedweasle•21m ago•1 comments

I don't love Rust (either)

https://cbarrete.com/rust-bad.html
4•wakawaka28•22m ago•1 comments

Claude Code modernizes a legacy COBOL codebase [video]

https://www.youtube.com/watch?v=OwMu0pyYZBc
1•vinhnx•26m ago•0 comments

Urban Myth of 5-7-5

https://www.graceguts.com/essays/urban-myth-of-5-7-5
2•latexr•29m ago•0 comments

Jack Dorsey and Elon Musk would like to 'delete all IP law'

https://techcrunch.com/2025/04/13/jack-dorsey-and-elon-musk-would-like-to-delete-all-ip-law/
5•hhs•36m ago•2 comments

Andrew Ng's letter to an 18 y.o. worried about AI

https://www.deeplearning.ai/the-batch/dont-believe-the-hype/
3•siquick•38m ago•0 comments

The curious case of broken theorems

https://davidbessis.substack.com/p/the-curious-case-of-broken-theorems
2•mathgenius•39m ago•0 comments

A Small Linear Accelerator for Charged Microparticles

https://www.mdpi.com/2076-3417/15/21/11709
2•PaulHoule•42m ago•0 comments

AI Gateway from Pydantic

https://pydantic.dev/articles/gateway-open-beta
1•scolvin•43m ago•0 comments

Be Simple

https://corrode.dev/blog/simple/
1•vinhnx•44m ago•0 comments

Use buttons instead of text link in your outreach email

https://www.emailbuttons.com/
3•zackho•46m ago•1 comments

Heat engine uses the cold of space to run a fan (400mW per sqm)

https://www.youtube.com/watch?v=5VSmBl8Rv_o
2•gsf_emergency_4•46m ago•0 comments

Gaza Online – Esims for Gazans

https://www.gaza.online/
1•aussieguy1234•47m ago•0 comments

Differential Coding of Perception in the Languages

https://www.pnas.org/doi/10.1073/pnas.1720419115
1•DrierCycle•50m ago•0 comments

Disney+ to Allow User-Generated Content via AI

https://www.hollywoodreporter.com/business/digital/disney-plus-gen-ai-user-generated-content-1236...
2•TMWNN•51m ago•0 comments

US announces 'Southern Spear' mission as forces deploy near South America

https://www.aljazeera.com/news/2025/11/14/us-announces-southern-spear-mission-as-forces-deploy-to...
5•treetalker•52m ago•1 comments

Another Round of Tea Protocol Spam Floods NPM, but It's Not a Worm

https://socket.dev/blog/tea-protocol-spam-floods-npm-but-its-not-a-worm
1•feross•54m ago•0 comments

No Leak, No Problem – Bypassing ASLR with a ROP Chain to Gain RCE

https://modzero.com/en/blog/no-leak-no-problem/
4•todsacerdoti•1h ago•0 comments

The EU must uphold hard-won protections for digital human rights [pdf]

https://edri.org/wp-content/uploads/2025/11/The-EU-must-uphold-hard-won-protections-for-digital-h...
4•doener•1h ago•0 comments

Crushed by capitalism? There's a video game for that

https://www.ft.com/content/5b223e7a-3161-4f03-a577-557e9947618b
3•hhs•1h ago•0 comments

Show HN: Infinite canvas product search and decision making

https://onton.com/surfaces
7•kar_t•1h ago•0 comments
Open in hackernews

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

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