frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Riemann Hypothesis Catastrophe(2020)

https://www.lesswrong.com/w/riemann-hypothesis-catastrophe
2•num42•6m ago•0 comments

Andrew Sutherland,mathematician Who Verified Claude’s Riemann Proof[video]

https://www.youtube.com/watch?v=DHNFtd0yfds
1•num42•8m ago•0 comments

Featherweight flying microrobot carries its own sensors and computers

https://news.mit.edu/2026/featherweight-flying-robot-carries-its-own-sensors-and-computers-1118
2•bookofjoe•10m ago•0 comments

QBasically – Basically QBasic, in the Browser

https://www.qbasically.com/
1•indigodaddy•10m ago•0 comments

Pier collapses, seawalls breached, homes flooded as high tides hit California

https://www.latimes.com/california/story/2026-11-25/historic-king-tides-come-to-california-coast
2•carabiner•14m ago•0 comments

Will the next big discovery using LLM's solve Fusion Energy?

2•DivingForGold•15m ago•0 comments

Show HN: Run your own Hacker News on Hatamoto (open-source, one binary)

https://news.hatamoto.dev/
2•zenincognito•26m ago•0 comments

You've been lied to about Perl [video]

https://www.youtube.com/watch?v=TDV2ACy-oaU
1•vaporup•29m ago•0 comments

Team-Wrapped – end of the year Slack recognition (no Cloud)

https://teamwrapped.com/
1•mrtblount_•30m ago•1 comments

FastUnlock: Windows Narrator LockScreen Bypass 0day Vulnerability

https://github.com/MSNightmare/FastUnlock
1•nradov•32m ago•0 comments

The State of Agentic AI: Shit with Good Formatting

https://github.com/kbr-/shit-with-good-formatting
1•kbr-•34m ago•2 comments

US approves SpaceX plan to send a million data satellites to space

https://www.bbc.co.uk/news/articles/cwp836l8n1jgo
3•lifeisstillgood•36m ago•3 comments

Eigengrau

https://en.wikipedia.org/wiki/Eigengrau
2•sans_souse•36m ago•0 comments

Show HN: A daily word puzzle where an AI gives the clue and you guess

https://wordspies.com/daily
1•hardicecream•36m ago•1 comments

Shirudo doesn't work, this does

2•ok_major_9889•38m ago•0 comments

Little Free Bakery- come for the pastries and stay for community connection

https://www.npr.org/2026/11/25/nx-s1-6005522/little-free-bakery-austin-community-connection
1•tmseidman•38m ago•0 comments

Brain Hours

https://dianazink.com/brain-hours.html
4•playbooks•39m ago•1 comments

Mayfly Chat: Transient Chat for Agents

https://blog.exe.dev/mayfly-chat
1•hasheddan•40m ago•0 comments

We'll build your company a free, internal benchmark. Seriously.

https://autorouter.com/benchmarks
1•nahollander•44m ago•0 comments

Sydney Fire Ant Infestation

https://www.abc.net.au/news/2026-11-25/nsw-government-ramps-up-efforts-to-respond-to-fire-ants-/1...
3•altilunium•45m ago•2 comments

Human-Model Differentials and Language Hacking

https://www.monke.ie/p/human-model-differentials-and-language-hacking
1•dnw•47m ago•0 comments

GTA VI Ambient Context Monetization Spyware

8•wicket•48m ago•1 comments

Victoria stack – open-source observability stack for metrics, logs, and traces

https://docs.victoriametrics.com/victoriastack/index.html
1•valyala•50m ago•0 comments

The Comprehensive Guide to Encrypted Inference with Tees

https://trynito.ai/blog/encrypted-inference-tees
2•richrines•50m ago•0 comments

Grand Theft World

https://github.com/galatolofederico/gtw
3•mbil•51m ago•1 comments

Brewlet: Manage Golden Images at Platform Speed

https://techcommunity.microsoft.com/blog/appsonazureblog/introducing-brewlet-manage-golden-images...
1•brunoborges•53m ago•0 comments

M Science – AI-Ready Market Intelligence

https://mscience.com/
2•vismit2000•56m ago•0 comments

Why is Apple Mac "Allow X to find devices on local networks" special?

2•owenbrown•56m ago•0 comments

Why OpenAI and Anthropic are holding back their latest models

https://twitter.com/kimmonismus/status/2125602411540566221
6•vismit2000•58m ago•0 comments

Filecabi.net Is Back

https://filecabi.net/forum/t/GIerhjcOUReQ
1•gillytech•59m 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?