frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Why Inventing Color TV Was So Difficult

https://www.openculture.com/2026/09/why-inventing-color-tv-was-so-difficult.html
1•mdp2021•1m ago•0 comments

Lorenz and Little: How Much Does Your Tail Cost?

https://brooker.co.za/blog/2026/07/29/lorenz-and-little.html
1•halit_okumus•3m ago•0 comments

Built Carvitals for a hackathon, car service and realtime value tracking

https://carvitals.org/
1•andrewsbarbaro•3m ago•1 comments

Show HN: BullSniff – Sniff out bullshit AI sites

https://bullsniff.com
1•steejk•3m ago•1 comments

A flickering light eases pain in mice

https://medium.com/@6thMind/a-flickering-light-eases-pain-in-mice-and-the-reason-also-explains-th...
1•smanuel•5m ago•0 comments

What 119 real expense-splitting groups look like

https://getsplitright.com/what-expense-splitting-groups-look-like.html
1•sleipner42•7m ago•0 comments

OpenWhispr – Open-source, privacy-first voice-to-text with local AI

https://digitalescapetools.com/tools/tool.html?id=openwhispr
1•xabd•7m ago•0 comments

Orange hydrogen, Yilgarn Craton: production with carbon dioxide mineralization

https://www.sciencedirect.com/science/article/pii/S036031992602269X
1•defrost•7m ago•0 comments

Web-based interactive static pattern discovery tool to locate structures

https://github.com/HexLasso/FF-16-Web
1•HexLasso•8m ago•0 comments

Volkswagen says it is cutting 100k jobs by the end of the decade

https://techxplore.com/news/2026-09-volkswagen-jobs-decade.html
3•mdp2021•13m ago•0 comments

Large Blast Radius Coder Registry Hijack

https://www.optimuslabs.io/research/briefings/coder-registry-infrastructure-hijack
1•rickdeaconx•13m ago•1 comments

Where were you when reality died?

https://www.unite.ai/where-were-you-when-reality-died/
1•50kIters•14m ago•0 comments

Norway's Oil Fund Proposes Selling Roughly $80B in U.S. Treasurys

https://www.wsj.com/finance/investing/norways-oil-fund-proposes-cut-to-government-bond-holdings-d...
4•toomuchtodo•15m ago•0 comments

The Life of a Metric

https://victoriametrics.com/blog/the-life-of-a-metric/index.html
1•func25•15m ago•0 comments

AI engineer breaks part of RSA encryption protocol by hand

https://www.scientificamerican.com/article/whats-the-tech-behind-the-record-breaking-rsa-260-crack/
2•chc2889•15m ago•0 comments

ChatGPT now limits prompts per week, even on their most-expensive plans

https://help.openai.com/en/articles/20001354-gpt-56-and-gpt-6-pro-in-chatgpt
1•zof3•15m ago•0 comments

China's Rare Earths Duopoly

https://www.chinatalk.media/p/chinas-rare-earths-duopoly
1•baud147258•18m ago•0 comments

Keepalived Track Scripts for Application-Aware Failover

https://www.virtualizationhowto.com/2026/09/i-thought-keepalived-only-protected-my-home-lab-serve...
1•bleevht•18m ago•1 comments

To do your best work you need to work like a sculptor

https://livingsystems.substack.com/p/to-do-your-best-work-you-need-to
3•samuell•19m ago•0 comments

Dogpark is a message board for a handful of software agents and one human

https://github.com/pjlsergeant/dogpark
2•Bluestein•21m ago•0 comments

Scientists Find Worms in Almost Every Fish in a Tuna Haul – 96% Were Infected

https://www.sciencealert.com/scientists-find-parasites-in-almost-every-fish-from-a-recent-tuna-ha...
4•arto•22m ago•0 comments

The Corruption of Christianity

https://medium.com/freedomofthought/the-corruption-of-christianity-b05b7543baa6
1•raynchad•23m ago•0 comments

Will the AI Boom Price the Rest of the Economy Out of Capital?

https://publicemails.com/blog/display/659255/Will-the-AI-Boom-Price-the-Rest-of-the-Economy-Out-o...
1•arbuge•23m ago•0 comments

Colorlight 5A-75B: A dive into a popular low-cost ECP5 (FPGA) development board

https://blog.yosyshq.com/p/colorlight-part-1/
1•gregsadetsky•25m ago•0 comments

Buried underpants and a new definition of kissing win 2026 Ig Nobel prizes

https://www.nature.com/articles/d41586-026-02650-x
1•jhncls•26m ago•0 comments

Equal Earth (2018)

https://equal-earth.com/
1•turtleyacht•26m ago•0 comments

The Future of Security Compliance Is AI-Native

https://www.pentesty.co/blog/ai-native-compliance-infrastructure-continuous-security
1•josanjohnata•26m ago•0 comments

You Cannot Know the Future. You Can Only Model It

https://www.saul.at/posts/you-cannot-know-the-future
2•Essa•27m ago•0 comments

Tesla Cybercabs Hit Austin Streets in Expansion of Robotaxi Service

https://www.wsj.com/business/autos/tesla-cybercabs-hit-austin-streets-in-expansion-of-robotaxi-se...
2•bookofjoe•27m ago•2 comments

Reverse recruiting and the HR shift: what changes when talent also chooses

https://www.foxapply.com/blog/en/reverse-recruiting-hr-talent-also-chooses
2•johnzoro107•27m 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?