frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: BotParty, a native macOS chat app where conversations are documents

https://botparty.com/
1•captainbenises•2m ago•0 comments

Ghost map: Europe's first glimpse of Tenochtitlan shows a city destroyed

https://bigthink.com/strange-maps/aztec-capital-map/
1•bryanrasmussen•5m ago•0 comments

E-Bike Fleet Monitoring

https://tech.marksblogg.com/ebike-fleet-monitoring.html
1•marklit•5m ago•0 comments

Add EBCDIC support to VSCode's Hexedit inspector

https://github.com/microsoft/vscode-hexeditor/pull/598
1•rbanffy•6m ago•0 comments

Ask your agent to do Docker and K8s

https://ingresslabs.github.io/torque/
1•akrylov•9m ago•0 comments

Hell Is Not Having Adequate Gear

https://medium.com/luminasticity/hell-is-not-having-adequate-gear-b324e92bfd98
2•bryanrasmussen•11m ago•0 comments

Git worktree manager with fuzzy finder

https://github.com/d-kuro/gwq/tree/main
2•ankitg12•12m ago•0 comments

We're Not Building AI Features for the Money

https://zed.dev/blog/not-building-ai-for-the-money
2•throawayonthe•13m ago•1 comments

The Faster You Go, the Wronger You Get

https://hagakure.substack.com/p/the-bottleneck-was-understanding
2•alper•16m ago•0 comments

Deltax – structured reasoning for complex scientific claims

https://chatgpt.com/g/g-69f11b6a1bdc8191ab1100acf60f40cc-deltdx-free
2•DELTAX-Editions•16m ago•0 comments

Researchers turn ocean dead zones into talking skies for pilots

https://english.elpais.com/technology/2026-05-03/researchers-turn-ocean-dead-zones-into-talking-s...
3•olvy0•17m ago•0 comments

Show HN: How I solved my network state corruption in my Linux Tor proxy

https://github.com/onyks-os/TransparentTorProxy
2•onyks•18m ago•1 comments

50 AI Automations You Can Build This Weekend

https://twitter.com/eng_khairallah1/status/2045794365985935529
2•sahar_builds•19m ago•0 comments

AI Story Generator – Generate Story Online Instantly

https://www.wps.com/tools/ai-story-generator/
3•zaid-nadeem•23m ago•0 comments

Would HN Accept PRs?

2•jorisw•25m ago•3 comments

Recovoly – Built for Better Document Recovery

https://www.recovoly.com/
2•thisarajay•33m ago•0 comments

240M-Year-old giant "sand creeper" found hidden in retaining wall

https://www.sciencedaily.com/releases/2026/05/260504154028.htm
1•Eridanus2•33m ago•0 comments

Pomodoro CLI

https://codeberg.org/kevinschoon/pomo
2•ankitg12•35m ago•0 comments

Know Your .agent?

https://estherdyson.substack.com/p/know-your-agent
1•nembal•35m ago•0 comments

OpenClaw Had a Rough Week

https://openclaw.ai/blog/openclaw-rough-week
2•nouhailaeg•36m ago•0 comments

The AI operator: Biggest role in Silicon Valley

https://www.rishgupta.com/blog/the-ai-operator-biggest-role-in-silicon-valley
2•nreece•38m ago•0 comments

Map projections: a practical guide to common mistakes and how to fix them

https://dominicroye.github.io/blog/map-projections/
1•altilunium•39m ago•0 comments

Facebook Buying Instagram For $1B.(2012)

https://www.bgr.com/general/facebook-paying-1-billion-for-instagram/
1•downbad_•40m ago•2 comments

Car Dealerships Scam America [video]

https://www.youtube.com/watch?v=GREaEG_0Xcw
1•type4•41m ago•0 comments

How I caught an illegal Russian spy [video]

https://www.youtube.com/watch?v=xjo0iLssbI8
1•burnt-resistor•48m ago•0 comments

Why should a Trace-ID be 128 bits? (A Surprisingly Long Answer)

https://newsletter.signoz.io/p/why-should-a-trace-id-be-128-bits
1•elza_1111•51m ago•0 comments

FairwayMapper – Introducing Golfers to Mapping

https://community.openstreetmap.org/t/fairwaymapper-introducing-golfers-to-mapping/142814
1•altilunium•53m ago•0 comments

Banking Malware hiding inside a flashlight app? (BeatBanker / BTMOB)

https://blog.ostorlab.co/beatbanker-btmob-tv-v-23-static-analysis.html
2•Jhonny_doe•53m ago•0 comments

Garmin releases new luxury home audio system globally

https://www.notebookcheck.net/Garmin-releases-new-luxury-home-audio-system-globally.1289575.0.html
1•thunderbong•54m ago•0 comments

The Kurzweil Library

https://www.thekurzweillibrary.com
1•andsoitis•54m ago•1 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?