frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Adult German men must request permission to leave Germany for more than 3 months

https://www.fr.de/politik/drastische-wehrpflicht-aenderung-maenner-die-deutschland-laenger-wollen...
1•raffael_de•3m ago•0 comments

Jj v0.40.0 Released

https://github.com/jj-vcs/jj/releases/tag/v0.40.0
1•birdculture•5m ago•0 comments

First MCP server for Guesty property management – 39 tools, open source

https://github.com/DLJRealty/guesty-mcp-server
1•DLJRealty•6m ago•0 comments

Blaming insecurity on consumer Wi-Fi routers on foreign OEMs is a red herring

https://www.networkworld.com/article/4153824/why-cant-we-have-nice-routers-anymore.html
1•CrankyBear•6m ago•0 comments

API for UK waste carrier verification, EWC classification and digital WTNs

https://wastecheck.co.uk
1•mhaysom•8m ago•0 comments

I fact-checked Scientific American, with accidental help from Anthropic

https://iron.blue/blog/2026/apr-may-jun/the-claude-code-leak-is-a-huge-nothingburger
1•slowmover•11m ago•1 comments

Show HN: Replace 6 months of GTM trial-and-error with simulated buyers

https://github.com/wednesday-solutions/rightsuite.co
3•ali_chherawalla•11m ago•0 comments

Characterizing Abusive IP Proxies [pdf]

https://www.first.org/global/sigs/netsec/NETSEC.characterizing-abusive-IP-proxies.pdf
1•jtkristoff•12m ago•0 comments

I run my company from Emacs

https://www.thetypicalset.com/blog/emacs-as-ceo-operating-system
2•remilouf•14m ago•0 comments

Visualization of Tensors

https://www.udiprod.com/visualization-of-tensors/
2•amai•16m ago•0 comments

Show HN: Figma 3D Tilt, Like "Firefox Tilt" but for Figma

https://www.figma.com/community/plugin/1592501914078287014/figma-3d-tilt
3•say2015•17m ago•0 comments

Cookslate – Self-hosted recipe manager with Cook Mode and cook journal

https://cookslate.app
3•frobinson47•18m ago•0 comments

The College Student–and His Cat Meme–Who Hunted the Biggest Cyberweapon

https://www.wsj.com/tech/kimwolf-hack-residential-proxy-networks-a712ab59
2•mxpxrocks10•21m ago•1 comments

Show HN: Reverse-engineered Claude in Chrome after the source leak

https://github.com/noemica-io/open-claude-in-chrome
2•SebastianSosa•21m ago•1 comments

Show HN: I built a frontpage for personal blogs

https://text.blogosphere.app/
20•ramkarthikk•21m ago•8 comments

Eating the Web

https://netwars.pelicancrossing.net/2026/03/27/eating-the-web/
3•ColinWright•24m ago•0 comments

Student Developer and GSoC '25 Contributor Seeking Intern/Junior Roles

1•Akshat67•27m ago•0 comments

Eddy Chen on the Laws of Physics (2024) [pdf]

https://www.eddykemingchen.net/uploads/4/6/1/3/46137503/chen_laws_of_physics_sep2023.pdf
2•3willows•28m ago•1 comments

Age of Invention: Why Scotland Succeeded

https://www.ageofinvention.xyz/p/age-of-invention-why-scotland-succeeded
2•RickJWagner•29m ago•0 comments

Trial by Fire Onboarding

https://yusufaytas.com/trial-by-fire/
1•tanepiper•30m ago•0 comments

Show HN: How do you manage multiple AI agents? We built a tmux-based in Rust

https://lukan.ai
2•enzovn•32m ago•0 comments

Ubuntu now has higher system hardware requirements than Windows 11

https://documentation.ubuntu.com/release-notes/26.04/
2•bundie•33m ago•0 comments

DeepFocus-BP: Adaptive backpropagation reducing FLOPs by 66% with accuracy gain

https://zenodo.org/records/19247967
2•sunbagger•35m ago•0 comments

Factoring is not a good benchmark to track Q-day

https://bas.westerbaan.name/notes/2026/04/02/factoring.html
1•strangecasts•36m ago•0 comments

Chip-8 Emulator from Spec

https://log.beshr.com/chip8-emulator-from-spec/
2•beshrkayali•37m ago•0 comments

Google Unveils Restoration of Hangar One in Mountain View

https://www.mv-voice.com/environment/2026/03/20/google-unveils-historic-restoration-of-hangar-one...
3•geox•38m ago•0 comments

An AI website that tells you what to wear at 0 cost somehow

https://what2wear-two.vercel.app
2•COOLmanYT•39m ago•1 comments

Service Monitoring of Your Bike

https://mbike.cc/
3•marqn•40m ago•0 comments

After 17 years, AO3 is exiting open beta

https://www.transformativeworks.org/ao3-is-exiting-open-beta/
2•rajayonin•42m ago•0 comments

Names of Easter

https://en.wikipedia.org/wiki/Names_of_Easter
3•throw0101c•45m ago•0 comments
Open in hackernews

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

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