frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Every AI agrees with you. This writes your startup's obituary instead

https://theyfell.com/
2•kyleclouthier•58s ago•1 comments

"Pac-Man" enzyme breaks down bioplastics and penicillin in laboratory tests

https://phys.org/news/2026-09-pac-enzyme-bioplastics-penicillin-laboratory.html
1•mdp2021•4m ago•0 comments

Goroutine Leak Profiles

https://go.dev/blog/goroutine-leak-profiles
2•ingve•7m ago•0 comments

Maybe We Shouldn't Be Reviewing All This Code

https://martinfowler.com/rachels-ramblings/code-review.html
2•ingve•10m ago•0 comments

Launch HN: RonanRX (YC S26) – Personalized Peptides and GLP-1s

https://ronanrx.com/
4•lloydarmbrust•10m ago•2 comments

Acer's DualPlay Mini concept is both gaming handheld and mini-laptop

https://liliputing.com/acers-dualplay-mini-concept-is-both-a-gaming-handheld-and-a-mini-laptop/
2•spankibalt•11m ago•0 comments

Booz Allen Cyber Weapon Index

https://www.boozallen.com/insights/cyber/cyber-weapon-index.html
1•pseudolus•12m ago•0 comments

SDK-free, simple, email-based login/auth provider

1•ameeting•14m ago•0 comments

Lacuna, cryptic protein pocket discovery that runs on a laptop CPU

https://github.com/mooreneural/lacuna
1•ramen0w0•16m ago•0 comments

British Pet Massacre

https://en.wikipedia.org/wiki/British_pet_massacre
2•georgecmu•17m ago•0 comments

With Gemini 3.8 Flash, Google reminds everyone it's still in the race

https://www.theregister.com/ai-and-ml/2026/09/02/with-gemini-38-flash-google-reminds-everyone-its...
1•joebuckwilliams•18m ago•0 comments

Kimi Launches IPO Before Market Stops Pricing Dreams

https://chinaonchina.com/article/kimi-launches-ipo-before-market-stops-pricing-dreams
2•try-working•18m ago•0 comments

Hermes CEO Suddenly Takes Interest in China's Pork Prices?

https://chinaonchina.com/article/hermes-ceo-suddenly-interested-in-china-s-pork-prices
1•try-working•19m ago•0 comments

US Government worried that AI companies can't innovate without legal theft

https://appleinsider.com/articles/26/09/02/us-government-worried-that-ai-companies-cant-innovate-...
3•tabith•23m ago•0 comments

NASA delays Crew-13 launch after leak found on SpaceX Dragon

https://www.sciencedaily.com/releases/2026/09/260901010705.htm
1•bookmtn•24m ago•0 comments

You're Not in the Loop Anymore. You're Running the Loops

https://www.kevinold.com/blog/running-the-loops
1•kevinold•24m ago•3 comments

Snowflake Q2 2027 earnings report

https://investors.snowflake.com/financials/quarterly-results/default.aspx
2•kklisura•26m ago•0 comments

Pushing UberDDR3 Frequency Through RTL Cleanup

https://www.openiphub.com/post/pushing-uberddr3-frequency-through-rtl-cleanup-post-18
1•peter_d_sherman•27m ago•0 comments

Traverse – [Horizontal] OPML Outliner for macOS

https://apps.shakingthehabitual.com/traverse/
1•treetalker•27m ago•1 comments

Bridging Models' Internal States

https://mostik.ai/read-more
1•ashvardanian•28m ago•0 comments

CHC5: Open Camera System – Image Sensor Specification Comparison

https://www.circuitvalley.com/2026/08/chc5-open-camera-sensor-comparison-specification.html
1•devoxel•29m ago•1 comments

Show HN: PuPPT – slide renderer and inline editor for PPT/PPTX (Golang/no deps)

https://github.com/artpar/puppt
1•artpar•30m ago•0 comments

On the Loose

https://www.hyperdimensional.co/p/on-the-loose
1•jdkee•33m ago•0 comments

US judge blocks Trump's newest order limiting birthright citizenship

https://www.reuters.com/world/us-judge-wont-immediately-block-trumps-newest-order-limiting-birthr...
3•tartoran•33m ago•0 comments

US charges two former Linqto CEOs over $450M 'pre-IPO' fraud scheme

https://www.reuters.com/legal/government/us-charges-two-former-linqto-ceos-over-450-million-pre-i...
3•tartoran•35m ago•0 comments

She backed body positivity. He's a scientist. Both are on GLP-1s

https://www.thetimes.com/life-style/health-fitness/article/glp1-jabs-body-positivity-matter-of-fa...
2•paulpauper•36m ago•0 comments

Inference-only expert boost saves 8.5% reasoning tokens in Qwen 35B MoE

https://zenodo.org/records/22255483
2•ConteMascetti71•36m ago•0 comments

Google Engineer Accused of Polymarket Insider Trading Says He Was Just Gambling

https://www.wired.com/story/google-engineer-accused-of-polymarket-insider-trading-says-he-was-jus...
2•paulpauper•37m ago•0 comments

Ask HN: How to get taken seriously while using AI?

2•askHN2026•38m ago•1 comments

Ex-White House teleprompter operator ordered pay $172,000 for Trump speech bets

https://www.bbc.com/news/articles/c4gj2dl4x52o
2•paulpauper•38m 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?