frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: Global DNS record propagation visualization

https://www.tidelock.dev/dns/propagation
1•vojtechrichter•2m ago•0 comments

Special-Use Domain 'home.arpa.' (2018)

https://www.rfc-editor.org/rfc/rfc8375.html
1•rdpintqogeogsaa•3m ago•0 comments

OpenClaw Got Safer in Public

https://openclaw.ai/blog/openclaw-security-in-public
1•jacobtomlinson•7m ago•0 comments

Forget Ambition: A Case for Hopeless Creativity

https://www.youtube.com/watch?v=JdlagZ2iDgU
2•stuaxo•7m ago•0 comments

China Planted 78B New Trees Affecting Its Water Cycle

https://www.popularmechanics.com/science/environment/a71126116/china-reforesting-changes-hydrology/
2•kaptain•8m ago•0 comments

My local agentic dev setup today

https://willemvandenende.com/blog/engineering/my-local-agentic-dev-setup-today
2•ColinEberhardt•19m ago•0 comments

Exclusive eBook: Inside the stealthy startup that pitched brainless human clones

https://www.technologyreview.com/2026/04/30/1136684/exclusive-ebook-inside-the-stealthy-startup-t...
2•joozio•20m ago•0 comments

Lightweight OpenCode profile for routine dev work with focused agents

https://github.com/gc-victor/supersimple
1•gcv•23m ago•0 comments

I Built GeoGuesser but for Guns

https://gunguesser.com
2•salad-vr•23m ago•1 comments

Show HN: Parse your chat exports to find restaurants, trips, and activity ideas

https://github.com/DocSpring/chat_to_map
1•nathan_f77•26m ago•0 comments

Ubuntu / Canonical Launchpad Down

https://status.canonical.com/
2•tankenmate•26m ago•1 comments

'Completely horrible': UK job hunters share frustration with AI interviews

https://www.theguardian.com/technology/2026/may/01/uk-job-hunters-frustration-ai-interviews
5•beardyw•30m ago•1 comments

SlothDB a 5X Faster Alternative to DuckDB, ClickHouse DB

1•souravroy78•30m ago•0 comments

RLS sounds great until it isn't

https://planetscale.com/blog/rls-sounds-great-until-it-isnt
1•ksec•32m ago•0 comments

Languages: We must save dying tongues (2014)

https://www.bbc.com/future/article/20140606-why-we-must-save-dying-languages
3•downbad_•34m ago•1 comments

Ask HN: Bedrock,Vertex AI etc. Support Anthropic Models

1•nethi•34m ago•0 comments

Rats free each other from cages (2011)

https://www.nature.com/articles/nature.2011.9603
3•downbad_•35m ago•1 comments

Mike Stonebraker on Disagreeing with Google, Postgres, Future Problems [video]

https://www.youtube.com/watch?v=YPObBOwIrHk
1•tosh•37m ago•0 comments

Norway: The Supreme Court dismisses all accusations against Jw

https://hrwf.eu/norway-the-supreme-court-dismisses-all-accusations-against-jehovahs-witnesses/
2•janandonly•39m ago•0 comments

Claude Code Connected to Apple Car Play and Android Auto [video]

https://www.youtube.com/shorts/edA00WNhNwM
2•johnkg003•44m ago•1 comments

Are you richer than your neighbor?

https://brokeorrich.com/
1•Mawenzi•47m ago•1 comments

Meta's Big Tobacco PR Tactics

https://yadin.com/notes/toasted/
12•dryadin•48m ago•2 comments

The AI supply crunch is here

https://www.economist.com/leaders/2026/04/30/the-ai-supply-crunch-is-here
2•pingou•49m ago•1 comments

Barbara Liskov on Dijkstra, Abstraction, Distributed Systems [video]

https://www.youtube.com/watch?v=T9CGjbPZeaM
1•tosh•53m ago•0 comments

U.S. Seizes $15B in Bitcoin in Crypto 'Scam' Crackdown

https://www.forbes.com/sites/martinacastellanos/2025/10/14/us-seizes-15-billion-in-bitcoin-sancti...
1•maxloh•55m ago•2 comments

Monopoly Concepts in Microeconomics: De Beers and Diamond Industry

https://www.studocu.com/in/document/university-of-johannesburg/microeconomic-issues-in-developmen...
1•cathrinea•55m ago•0 comments

Show HN: Kencode – Compact Kotlin serialization for URLs and labels

https://eignex.com/posts/kencode-packing-data-for-strict-limits/
3•monom•55m ago•1 comments

If I Could Make My Own GitHub

https://matduggan.com/if-i-could-make-my-own-github/
2•vinhnx•1h ago•0 comments

Apple Says Mac Studio and Mac Mini Will Be in Short Supply for Months

https://www.macrumors.com/2026/04/30/mac-studio-mac-mini-constrained-months/
31•tosh•1h ago•18 comments

A text editor as a user interface

https://ratfactor.com/cards/text-editor-as-ui
1•vinhnx•1h 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?