frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

AWS Lambda Web Functions

https://aws.amazon.com/blogs/aws/announcing-aws-lambda-web-functions-for-fast-consistent-web-app-...
1•squiwardStan5•4m ago•0 comments

The First Social Network

https://www.newyorker.com/magazine/2026/10/19/the-first-social-network
1•tintinnabula•6m ago•0 comments

They War-Gamed Dimming the Sun. It Went Worse Than You Think

https://web.archive.org/web/20261012120609/https://www.wired.com/story/they-war-gamed-dimming-the...
1•bcaulfield•6m ago•0 comments

NASA may have proof life once existed on Mars

https://www.cnn.com/2026/10/12/science/nasa-mars-sample-return-sapphire-canyon-china
2•alcover•10m ago•1 comments

Lever House

https://en.wikipedia.org/wiki/Lever_House
1•brudgers•12m ago•0 comments

Voyager Earth – animated travel route maps rendered in the browser

https://www.nassau.se/voyager_earth
1•Duckish•12m ago•0 comments

The Tetrad Tour, Part III: Why AI Needs Its Linnaeus

https://samirvarma.substack.com/p/the-tetrad-tour-part-iii-why-ai-needs
1•paulpauper•12m ago•0 comments

An Industrial Policy for Drones

https://thedispatch.com/newsletter/dispatch-markets/industrial-policy-drones-economics-national-s...
1•paulpauper•12m ago•0 comments

Neocloud Endgame

https://www.banyanlaneresearch.com/p/neocloud-endgame
1•paulpauper•13m ago•0 comments

Empirical Computation: Prompting versus Programming [pdf]

https://mboehme.github.io/paper/ASE26-empirical.pdf
1•matt_d•13m ago•0 comments

Japan declares a "state of emergency in cyberspace" as cyberattacks surge

https://twitter.com/Polymarket/status/2109748239931150347
1•jaekwon•13m ago•0 comments

Claude Notify – Desktop Notifications for Claude Code on Windows

https://github.com/YairDaniel11/claude-notify
1•YairDaniel11•14m ago•0 comments

Portless: Vercel Labs Replaces Localhost Ports with Named URLs

https://themenonlab.blog/blog/portless-vercel-named-localhost-urls
1•olalonde•18m ago•0 comments

Ukraine strikes didn't blow up Russian disinformation on social

https://www.machinesociety.ai/p/no-ukraine-strikes-didnt-blow-up
3•mikelgan•24m ago•2 comments

Breaking Bad star RJ Mitte dies aged 34

https://news.sky.com/story/breaking-bad-star-rj-mitte-dies-aged-34-13598332
8•austinallegro•26m ago•2 comments

RenkuOS (A Fork of Haiku)

https://renkuos.org/
1•airhangerf15•28m ago•0 comments

What I've been seeing lately

https://mei.puppycat.house/w/seeing-261010
1•wrxd•29m ago•0 comments

Adm Programming Language

https://github.com/admlang
3•cthackers•31m ago•0 comments

Patching Zig's Std

https://marler8997.github.io/blog/zig-patch/
2•ingve•32m ago•0 comments

UK data centre giant removed evidence of China deal ahead of $35B listing

https://www.telegraph.co.uk/business/2026/10/10/uk-data-centre-giant-removed-evidence-of-china-de...
2•ilamont•32m ago•0 comments

What the Greeks Would Call Our Government [video]

https://www.youtube.com/watch?v=205IdzGJMJs
1•verdverm•33m ago•0 comments

Orion2re: A restoration effort for the Master of Orion II game engine

https://github.com/orion2re/orion2re/
3•JohnHammersley•34m ago•0 comments

AI's mathematics blitz pushes science into new territory

https://www.economist.com/science-and-technology/2026/10/12/ais-mathematics-blitz-pushes-science-...
2•sbulaev•34m ago•0 comments

Agentic BSS Explained: AI-Native Model, Architecture and Use Cases [pdf]

https://framerusercontent.com/assets/PKpdXtv0xAf0e4W4M53D2pUDpzg.pdf
2•y2so•35m ago•0 comments

Janas: Run LLMs larger than RAM by streaming experts from SSD

https://github.com/prabanta-dev/janas
1•khalidkhair•36m ago•0 comments

The CEO's of Broadcom and Intel Say the Quiet Part Out Loud about AI and ROI

https://wolfstreet.com/2026/10/12/ceos-of-broadcom-intel-say-the-quiet-part-out-loud-about-ai-and...
6•metadat•36m ago•0 comments

Making DNA: The Quest for Synthetic Life (2023)

https://www.asimov.press/p/dna
1•Eridanus2•39m ago•0 comments

Mozilla Welcomes Raffi Krikorian as Chief Technology Officer

https://blog.mozilla.org/en/mozilla/leadership/mozilla-welcomes-raffi-krikorian-chief-technology-...
2•greatgib•39m ago•1 comments

Artificial Intelligence in the Firm: Bottlenecks in Software Production [pdf]

https://fion.ac/jellyfish.pdf
2•EA-3167•40m ago•0 comments

Using Jev to make your agents write the code and design the app the way you do

https://blog.a7ul.com/agents-code-your-way.html
3•atulfiled•42m 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?