frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Internal Changelogs unlock autonomous coding agents

https://rallywith.ai/blog/internal-changelogs/
1•ajuhasz•1m ago•0 comments

I'm not excited about tech anymore

https://www.coryd.dev/posts/2026/im-not-excited-about-tech-anymore
1•cdrnsf•3m ago•0 comments

Train or fine-tune large models on your own devices, no expensive GPUs

https://github.com/abdallah-swe/layerpool
2•sonic26•3m ago•0 comments

The computer age took fifteen years to show up

https://hrih.si/articles/the-computer-age-took-fifteen-years-to-show-up/
1•DonAtimator•4m ago•0 comments

Show HN: My computer was too slow to run this Flash game, so I decompiled it

https://anduil.neocities.org/n/
1•andai•5m ago•1 comments

Show HN: I built EERankings, a CSRankings style site for Electrical Engineering

https://eerankings.org
1•engineerhead•6m ago•0 comments

Self-Improving Skills

https://www.perplexity.ai/hub/blog/self-improving-skills
1•gmays•8m ago•0 comments

GPT-6.1 Terra circumvents restrictions in a controlled evaluation

https://www.crawlspider.com/pages/ai-agents-gone-rogue/
1•njx•8m ago•0 comments

16-Year-Old Founded an AI Missile Startup. He's Targeting 'Cost per Kill'

https://www.wired.com/story/henrijs-dandzbergs-polemos-missiles-ai-warfare/
1•hettygreen•10m ago•0 comments

Netflix's 'The Altruists' sparks FTX portrayal debate among crypto bigwigs

https://www.cnbc.com/2026/11/23/netflix-the-altruists-crypto-ftx-collapse.html
2•Betelbuddy•10m ago•0 comments

Kīlauea's 57 Lava Fountaining Episodes Visualized

https://turingregistry.net/doc/kilauea-lava-fountain-episodes-time-of-day
1•tracerbulletx•12m ago•1 comments

EU Commission confirms personal data leak after cyberattack

https://www.politico.eu/article/european-commission-personal-data-leak-cyberattack-disruption/
2•HelloUsername•12m ago•0 comments

Show HN: Splunkr-TV AppleTV App

https://github.com/fragmede/spelunkr-tv
1•fragmede•12m ago•1 comments

Trump postpones planned detonation of toxic drums at Iowa army facility

https://www.nbcnews.com/science/environment/trump-postpones-planned-detonation-toxic-drums-iowa-a...
1•mikhael•14m ago•0 comments

'A wake-up call': Experts raise alarm over drone incursions at military bases

https://www.ctvnews.ca/canada/article/a-wake-up-call-experts-raise-alarm-over-drone-incursions-at...
1•ClearwayLaw•14m ago•1 comments

Emma AI by NuanceLabs [video]

https://app.nuancelabs.ai/try
1•rudy6912•16m ago•0 comments

Steven Pinker responds to Scott Alexender contra AI doomerism

https://quillette.com/2026/11/23/will-we-all-go-together-when-we-go-ai-alignment-scott-alexander-...
1•ForHackernews•16m ago•0 comments

Mathematics, artificial intelligence and the opportunities ahead

https://www.acadmathsci.org.uk/perspectives-on-ai/mathematics-artificial-intelligence-and-the-opp...
1•JohnHammersley•16m ago•0 comments

Datasette-Arrows 0.1a0

https://simonwillison.net/2026/Nov/18/datasette-arrows/
1•floornext•16m ago•0 comments

Building a Software Factory

https://runway.com/news/engineering/building-a-software-factory
2•gavinballard•17m ago•0 comments

Machine-Gun-Armed Robot Dogs Appear in El Salvador's Haiti Offensive

https://www.newsweek.com/machine-gun-dog-robots-haiti-el-salvador-12712398
3•debo_•19m ago•0 comments

The AI conversation we're not having

https://www.gnanaguru.com/blog/things-two-years-in-ai-taught-me/
2•gnanaguru16•20m ago•0 comments

Show HN: Lode Runner 2099

https://loderunner2099.exe.xyz
1•indigodaddy•20m ago•2 comments

Please make the pay button blue

1•absoluteleyyes•21m ago•0 comments

Waymo Recalls Robotaxis After They Drove into Closed Freeway Lanes

https://www.engadget.com/2324099/waymo-recalls-robotaxis-after-they-drove-into-closed-freeway-lanes/
2•gmays•23m ago•0 comments

1Lab: A formalised, explorable online resource for homotopy type theory

https://1lab.dev/
1•solomonb•23m ago•1 comments

Ask HN: Can an actual dev make an equivalent of Life360?

https://openfamily.app/#top
1•gigafly•25m ago•1 comments

Show HN: Budget – an open-source private budgeting app for Mac and Windows

https://github.com/hendrikdemir/budget
2•hendriknl•26m ago•0 comments

Google Gemini decouples chat history from AI training

https://blog.google/innovation-and-ai/products/gemini-app/updated-controls/
1•eneveu•28m ago•1 comments

Boundless Plans:Pay $199, get $500 of inference. Every month. ZDR

https://boundless.network
3•emilianobonassi•29m ago•3 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?