frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

'Unignorable' flying billboards are slated to come to California

https://www.sfgate.com/bayarea/article/unignorable-flying-billboards-arrive-california-21209969.php
1•fcpguru•1m ago•0 comments

Computer animation in 1961: the Stanford card stunt program. (YouTube) [video]

https://www.youtube.com/watch?v=wN1opFMXJbY
1•fanf2•2m ago•0 comments

A Remarkable Assertion from A16Z

https://nealstephenson.substack.com/p/a-remarkable-assertion-from-a16z
1•boplicity•2m ago•0 comments

Two Conquerors, Two Kinds of Men (1940)

https://nytimes.com/1940/07/21/archives/two-conquerors-two-kinds-of-men-hitler-and-napoleon-are-a...
1•thomassmith65•5m ago•0 comments

Anthropic CEO called to testify on Chinese AI cyberattack

https://www.axios.com/2025/11/26/anthropic-google-cloud-quantum-xchange-house-homeland-hearing
1•_____k•10m ago•0 comments

Ask HN: Jews in Computer Science

1•not-so-darkstar•11m ago•2 comments

Let the Rabbi Split the Pie (1998)

https://slate.com/culture/1998/04/let-the-rabbi-split-the-pie.html
1•amai•11m ago•1 comments

Lovable Is Down

https://status.lovable.dev
1•dominikposmyk•14m ago•0 comments

Show HN: OgBlocks – Animated React UI Library Built with Motion and Tailwind CSS

https://ogblocks.dev/
2•thekarank•14m ago•0 comments

Ask HN: Use case diagram, how to do better?

1•shivajikobardan•15m ago•0 comments

OpenAI won't make money by 2030 and needs another $207B, HSBC estimates

https://fortune.com/2025/11/26/is-openai-profitable-forecast-data-center-200-billion-shortfall-hsbc/
2•TMWNN•16m ago•1 comments

SQL Still Wins: Why It's Not Going Anywhere

1•browsejobs5•17m ago•0 comments

Show HN: Simple xbox360 inspired CSS library: 360CSS

https://github.com/tarmo1/360css
2•Tarmo362•23m ago•2 comments

Is anyone using Project Hummingbird?

https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux/hummingbird
1•todsacerdoti•26m ago•0 comments

The mysterious black fungus from Chernobyl that may eat radiation

https://www.bbc.com/future/article/20251125-the-mysterious-black-fungus-from-chernobyl-that-appea...
6•bookmtn•27m ago•0 comments

Joe Duffyging about Midori (2015)

https://joeduffyblog.com/2015/11/03/blogging-about-midori/
1•keyle•28m ago•0 comments

Data center 'cooling issue' continues to halt CME stock futures trading

https://www.cnbc.com/2025/11/28/cme-halts-fx-commodities-futures-trading-after-data-center-issue....
1•bluedino•29m ago•0 comments

World's first global open database on transmission line length

https://MapYourGrid.org/blog/20251128-LineLength/
3•andreashd11•30m ago•0 comments

A Tale of Four Fuzzers

https://tigerbeetle.com/blog/2025-11-28-tale-of-four-fuzzers/
12•jorangreef•32m ago•0 comments

VC Taxi – random founders pitch a VC in a taxi

https://youtu.be/4PvIr_bADCg?si=atKCNX6vmOL95eY2
1•jarodreyes•33m ago•0 comments

Toon vs. JSON: Byte-Level Efficiency Model

https://toonformat.dev/reference/efficiency-formalization.html
2•lafalce•33m ago•1 comments

Everyday Systems

https://everydaysystems.com/
1•r4um•35m ago•0 comments

Show HN: Redesigned the old any mighty percentage calculator

https://percentset.com
1•qxsp•37m ago•1 comments

Kavin: The generic Node.js process watcher written in C and Assembly

https://github.com/Peakk2011/Kavin
1•thunderbong•37m ago•0 comments

Napoleon and Hitler (1942)

https://www.foreignaffairs.com/articles/germany/1942-01-01/napoleon-and-hitler
1•thomassmith65•38m ago•1 comments

Scaling the Memory Wall: The Rise and Roadmap of HBM

https://newsletter.semianalysis.com/p/scaling-the-memory-wall-the-rise-and-roadmap-of-hbm
1•kristianp•42m ago•0 comments

Switzerland: Data Protection Officers Impose Broad Cloud Ban for Authorities

https://www.heise.de/en/news/Switzerland-Data-Protection-Officers-Impose-Broad-Cloud-Ban-for-Auth...
11•TechTechTech•43m ago•2 comments

Interfaces should make understanding opt-out, not opt-in

https://www.amantulsyan.com/interfaces-should-make-understanding-opt-out-not-opt-in/
2•amantulsyan35•44m ago•0 comments

Show HN: I made a browser tab management extension

https://www.tagmytab.com/
2•Tafita•46m ago•0 comments

Is AI Eating the World? AGI, Network Effects, Value Capture [2/2]

https://philippdubach.com/2025/11/24/is-ai-really-eating-the-world-agi-networks-value-2/2/
2•7777777phil•50m ago•0 comments
Open in hackernews

Ask HN: How can I load test PostgreSQL but avoid changing actual data?

1•LawZiL•6mo 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•6mo 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•6mo 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•6mo 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•6mo ago
Load test against a clone instead of a DB whose contents you care about?