frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

American Medical Association Backs Classification of Nearsightedness as Disease

https://www.aao.org/newsroom/news-releases/detail/ama-backs-formal-classification-nearsightedness
3•plun9•4m ago•0 comments

A remote island, these GPS hackers are preparing for an invisible war

https://www.bbc.com/future/article/20260908-inside-the-fight-to-protect-the-worlds-satellite-signals
1•rayhaanj•5m ago•0 comments

AI staff 'genuinely frightened' for humanity's future

https://www.bbc.com/news/articles/c1kx0gyje9wo
1•dabinat•5m ago•0 comments

Africa's Airliner Fleet May More Than Double by 2045

https://humanprogress.org/africas-commercial-fleet-to-more-than-double-by-2045/
1•andsoitis•9m ago•0 comments

Generating running routes with GPT-6 Astra and ChatGPT Work

https://simonwillison.net/2026/Sep/12/astra-running-routes/
1•tosh•11m ago•0 comments

A metaphorical "Royal Road" in famous quotations

https://en.wikipedia.org/wiki/Royal_Road
1•Bluestein•11m ago•0 comments

Life in Numbers

https://humanprogress.org/ylin/
1•andsoitis•11m ago•0 comments

Huawei Mate XT 2 hands on ($3000 trifold) [video]

https://www.youtube.com/watch?v=FRrS54oHqlw
1•djfergus•11m ago•0 comments

AI agents tested by OpenAI involved in cyber-attack on service, say researchers

https://www.theguardian.com/technology/2026/sep/11/openai-agents-rubygems-malicious-packages
2•nobody9999•13m ago•0 comments

Life Options Are Expanding

https://humanprogress.org/trends/life-options-are-expanding/
1•andsoitis•14m ago•0 comments

New Science Says Scrapping a Working Gas Car for an EV Is Usually Greener

https://cleantechnica.com/2026/08/16/scrapping-working-gas-car-for-ev-can-be-greener/
1•xbmcuser•19m ago•0 comments

Chimps beat people in memory task (2007)

https://www.theguardian.com/science/2007/dec/04/animalbehaviour.evolution
1•mellosouls•19m ago•0 comments

Remove the need for planning permission for external shutters on properties (UK)

https://petition.parliament.uk/petitions/778193
1•DamonHD•22m ago•0 comments

I rebuilt iMessage line for line. Nobody wanted it

https://sage.me/imessage
2•blsage•24m ago•0 comments

The News Tonight Is AI Danger

https://cmart.blog/the-news-tonight-is-ai-danger/
3•chrismartin•25m ago•0 comments

Designing Cycle-Exact Delays on Several 8-Bit CPUs

https://bumbershootsoft.wordpress.com/2026/09/12/designing-cycle-exact-delays-on-several-8-bit-cpus/
1•ibobev•27m ago•0 comments

Nanite Cluster Memory

https://real-mrbeam.github.io/2026/09/12/Nanite-Cluster-Memory.html
2•ibobev•27m ago•0 comments

Sierra digital cameras on the Apple II

https://www.colino.net/wordpress/archives/2026/09/11/sierra-digital-cameras-on-the-apple-ii/
2•ibobev•28m ago•0 comments

TuragaLab/flybody: MuJoCo fruit fly body model and locomotion RL tasks

https://github.com/TuragaLab/flybody
1•olalonde•29m ago•0 comments

View-Dependent Proxy

https://armandsumo.com/posts/view-dependent-proxy/
2•rslice•31m ago•0 comments

Find investors for your startup – Investor Match Guaranteed

https://leadagentx.ai
1•liranbr•34m ago•0 comments

Why So Many AI Researchers Think the Machines Could Kill Everyone

https://www.wired.com/story/why-so-many-ai-researchers-think-the-machines-could-kill-everyone/
3•joozio•36m ago•0 comments

Guidance on Using CC Licenses in an AI Ecosystem

https://creativecommons.org/2026/09/03/guidance-on-using-cc-licenses-in-an-ai-ecosystem/
1•Tomte•42m ago•0 comments

Created a local AI to save data

https://github.com/just-not-google/BiNeuron
1•BiNeuron•54m ago•0 comments

Petroleum Refining

https://courses.ems.psu.edu/fsc432/node/2
2•pmontra•55m ago•0 comments

Faulty reward functions in the wild (2016)

https://openai.com/index/faulty-reward-functions/
1•tosh•58m ago•0 comments

MetaPost library for black and white illustrations

https://github.com/jemmybutton/fiziko
2•mjmas•59m ago•0 comments

Actuali: free Actual Budget client for iOS

https://actuali.mfazz.com/
1•itchingsphynx•1h ago•0 comments

Selling Out

https://www.seangoedecke.com/selling-out/
2•ckardaris•1h ago•0 comments

The Coxon psyop was a decade and more than a billion dollars in the making

https://xcancel.com/antibot/captcha
3•thelastgallon•1h ago•5 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?