frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

SDCC – Small Device C Compiler

https://sdcc.sourceforge.net/
1•lioeters•4m ago•0 comments

Swarm_ethics.txt

https://www.guidavid.com/writing/autopoietic-ethics-constitution.txt
1•gdss•6m ago•0 comments

Managers Are Catalysts

https://laughingmeme.org/2026/09/14/managers-are-catalysts.html
1•mavelikara•8m ago•0 comments

Opus 5 has a Noun Problem

https://www.reddit.com/r/ClaudeCode/comments/1wk0s2i/opus_5_has_a_noun_problem/
1•nonethewiser•11m ago•1 comments

Science Is Open Software

https://jepedersen.dk/blog/202505_research/
6•jegp•15m ago•2 comments

Show HN: LaTeX to Image Converter – Free PNG, SVG and JPG

https://latextoimg.com
1•light001•18m ago•0 comments

Let's Fix Bug Bounty

https://fixbugbounty.com/
2•nwang783•21m ago•0 comments

The Rise of Parasite Authors

https://www.theatlantic.com/technology/2026/09/ai-authors-impersonating-writers-amazon/688709/
3•pseudolus•21m ago•1 comments

Show HN: Swormhörn a one-of-one cicada synthesizer [video]

https://www.youtube.com/watch?v=GHiStriaaso
2•zorlack•24m ago•0 comments

Elon Musk and Tesla Forged a New EV Path

https://spectrum.ieee.org/elon-musk-tesla
4•vinhnx•28m ago•0 comments

Einstein on the Atomic Bomb (1945)

https://www.theatlantic.com/magazine/archive/1945/11/einstein-on-the-atomic-bomb/656626/
3•cisc•31m ago•0 comments

Official mold linker rewrite in Rust

https://github.com/rui314/mold
2•adamnemecek•33m ago•0 comments

I found love at an Irish matchmaking festival – and I want others to do the same

https://www.bbc.com/news/articles/cw5y4jz6k2p3o
1•rmason•35m ago•1 comments

The Contract on America

https://3quarksdaily.com/3quarksdaily/2026/09/the-contract-on-america.html
4•hkhn•36m ago•2 comments

Plotly for Highly Customizable and Non-Interactive Data Visualization

https://chris-parmer.com/plotly-for-highly-customizable-and-non-interactive-data-visualization/
1•chriddyp•39m ago•0 comments

Master of Malt Hacked, User Data Compromised

https://www.masterofmalt.com/sorry/
1•Naracion•39m ago•0 comments

Prompts Aren't Real

https://evaluation.club
1•mcfunley•41m ago•1 comments

Kev – A Jev-Compatible API on top of DiffusionGemma running on Workers AI

https://kev.workers-ai-mle.workers.dev/
1•kflansburg•44m ago•1 comments

Gemini hacked three companies in first known breakout by Google's AI

https://www.reuters.com/business/gemini-hacked-three-companies-first-known-breakout-by-google-ai-...
6•usernomdeguerre•56m ago•2 comments

Nuclear tests at Mt. Mantap have reactivated intraplate faults

https://www.science.org/doi/10.1126/science.adx5917
1•geox•1h ago•0 comments

NIST Elliptic Curves Seeds Bounty (2023)

https://words.filippo.io/seeds-bounty/
1•greyface-•1h ago•0 comments

Google's Gemini becomes latest AI model to break out and hack computer systems

https://www.cnbc.com/2026/09/18/googles-gemini-becomes-latest-ai-model-to-break-out-and-hack-comp...
5•ahmedhossamdev•1h ago•1 comments

Australian government considers ban on smart glasses in public buildings

https://www.theguardian.com/technology/2026/sep/17/albanese-government-considers-world-leading-ba...
2•dabinat•1h ago•0 comments

Muse gets all your unclaimed money back!

https://auth.muse.ai/aymh/?origin=https%3A%2F%2Fmuse.ai
1•mayahalp•1h ago•0 comments

Show HN: Typesafe Java SDK (Unofficial)

https://github.com/QAInsights/typesafe-java-sdk
1•qainsights•1h ago•1 comments

The Race for 1000 Goals

https://1k.football/
1•anydigital•1h ago•0 comments

Rare Gene Drastically Raises Lung Cancer Risk in People Who Never Smoked

https://www.nytimes.com/2026/09/17/science/lung-cancer-gene-mutation-risk.html
2•bookofjoe•1h ago•1 comments

macOS Liquid Glass in VS Code: Cursed or Blursed?

https://alec.is/posts/macos-liquid-glass-and-vscode/
1•arm32•1h ago•0 comments

Federated Learning Is Not Private for Google GBoard Next Word Prediction [pdf]

https://arxiv.org/abs/2210.16947
1•thunderbong•1h ago•0 comments

Trump deal keeps Greenland Danish while expanding U.S. military presence

https://apnews.com/article/trump-greenland-military-denmark-4cf77cb4608b685a70410bd679479193
4•aoli-al•1h ago•0 comments
Open in hackernews

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

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