frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Gemini Notebook API

https://developers.google.com/notebook/docs
1•jonbaer•2m ago•0 comments

Colour Malarkey

https://retrorgb.com/colour-malarkey.html
1•bpierre•2m ago•0 comments

Testing without a server: using FakeValkey, the in-memory test double for Valkey

https://valkey.io/blog/testing-without-a-server-fakevalkey/
1•gslin•7m ago•0 comments

Google Disrupts 1.3M Device Botnet, Says TV Box Maker Sold Criminal Access

https://cloud.google.com/blog/topics/threat-intelligence/shutting-the-door-on-the-xcpe-botnet/
1•motionlessveloc•8m ago•0 comments

Taco: The Tensor Algebra Compiler

http://tensor-compiler.org/
1•measurablefunc•9m ago•0 comments

Cat Wu, product lead for Claude Code, has left Anthropic

https://www.businessinsider.com/claude-code-leader-cat-wu-exits-anthropic-before-big-ipo-2026-11
1•aanet•10m ago•1 comments

SpaceX Will Be the Biggest AI Cloud

https://newsletter.semianalysis.com/p/elon-is-doing-it-again-spacex-will
2•nsoonhui•14m ago•1 comments

Nsw Health Breached

https://www.smh.com.au/national/nsw/100-000-documents-stolen-from-isolated-nsw-health-server-2026...
2•technion•16m ago•0 comments

Show HN: Retro: I rebuilt bomberman game, same gameplay, new interface

https://playbomber.com/
2•dutay05•18m ago•0 comments

Revolut switched to GLM. We found hidden risks

https://www.hirundo.io/blog/glm-revolut
1•mattifrank•19m ago•0 comments

Systemd Loves Rust

https://amutable.com/blog/systemd-loves-rust
1•jcgl•20m ago•0 comments

AI Can Read Neural Network Weights. I Wasn't Ready for That. – Arcturus Labs

https://arcturus-labs.com/blog/2026/11/03/ai-can-read-neural-network-weights-i-wasnt-ready-for-that/
1•JohnBerryman•22m ago•0 comments

French blood storage facilities targeted in cyberattack

https://www.aa.com.tr/en/science-technology/french-blood-storage-facilities-targeted-in-cyberatta...
2•Fe2O3•23m ago•0 comments

Ask HN: What is the best non mainstream programming language or stack in 2026?

2•kbrannigan•26m ago•0 comments

Show HN: HackerReels - Short Videos for viral HN posts

https://wile.ai/v/BPOH3BHCRWWCAKU4OVNOTEQ73A
2•alexandroskyr•26m ago•3 comments

Sad Nipple Syndrome

https://en.wikipedia.org/wiki/Sad_nipple_syndrome
2•modzu•29m ago•0 comments

Outer Products: The Dual View of Linear Algebra

https://freddy.us/blog/posts/outer-products/
1•senderista•32m ago•0 comments

Dev-Guard – Defend Against Supply Chain Malware

https://github.com/yeeth-security/dev-guard
1•somerandom1337•33m ago•0 comments

Postgres 19 Repack: Built-In Online Table Bloat Cleanup

https://www.snowflake.com/en/blog/engineering/postgres-19-repack-table-bloat/
1•craigkerstiens•39m ago•0 comments

Not Getting Paid

https://tomaszdziurko1.substack.com/p/not-getting-paid
12•madihaa•42m ago•0 comments

C++26 Disapproved

https://andreasfertig.com/blog/2026/11/cpp26-dis-failed-how-does-cpp-survive/
3•thatxliner•44m ago•0 comments

Recycler: Cost-Free Latent Reasoning via Hidden State Recycling [pdf]

https://lf3-static.bytednsdoc.com/obj/eden-cn/hyvsmeh7uhobf/recycler_arxiv%20%282%29.pdf
1•E-Reverance•44m ago•0 comments

IKEA Turned 8,500 Call Agents into Design Consultants

https://www.pymnts.com/news/artificial-intelligence/2026/ikea-turned-8500-call-agents-into-design...
4•duck•45m ago•0 comments

Caching at Scale in Django: Lessons from Production

https://johnnymetz.com/posts/caching-at-scale-in-django/
2•johnnymetz•46m ago•0 comments

Anti-Oligarchy Activists Plan to Dox Elon Musk and Billionaires

https://www.wired.com/story/anti-oligarchy-activists-plan-to-dox-elon-musk-and-hundreds-of-billio...
7•slowin•46m ago•1 comments

French blood storage facilities targeted in cyberattack

https://twitter.com/etnshow/status/2117728420477936043
3•pixel_popping•50m ago•0 comments

People Against Genocide Smash Military Satellites on Balfour Anniversary

https://aftershock.media/military-satellites-balfour/
3•slowin•51m ago•0 comments

Shay Locomotive

https://en.wikipedia.org/wiki/Shay_locomotive
1•thunderbong•53m ago•0 comments

Tesla allegedly misled South Korean customers about automated-driving tech

https://www.reuters.com/business/autos-transportation/tesla-misled-south-korean-customers-about-a...
5•EA-3167•57m ago•2 comments

Show HN: An interactive map of midterm ads

https://admap.org/
1•Eden09•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?