frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Baltram/seednaut: Inspect, verify and extract files from Seedvault backups

https://github.com/Baltram/seednaut
1•theandrewbailey•34s ago•0 comments

You Can't Audit Entropy After the Fact

https://808bits.com/articles/coldcard-entropy-failure-lessons/
1•meehow•1m ago•0 comments

Apple struggles to keep pace with AI 'bug' hunters

https://www.ft.com/content/4532122d-90f2-4433-9df6-ca99d8a141d2
1•JumpCrisscross•2m ago•0 comments

German carmakers flood jobs market with managers after wielding axe

https://www.ft.com/content/e345d51f-11f7-4d4d-8f09-86dd3a225597
1•JumpCrisscross•3m ago•0 comments

A Tome of Forbidden Technologies and Retrovation

https://ecosophia.net/a-tome-of-forbidden-technologies/
1•kesor•4m ago•0 comments

Europe EV Sales BEVs Jump 50% & Reach 26% Market Share

https://cleantechnica.com/2026/08/02/europe-ev-sales-report-bevs-jump-50-reach-26-market-share/
1•01-_-•6m ago•0 comments

Agentic Mermaid

https://agentic-mermaid.dev/
1•saikatsg•6m ago•0 comments

Write for Goto 10 – By Paul Lefebvre

https://www.goto10retro.com/p/write-for-goto-10
1•rbanffy•6m ago•0 comments

'Crush this lady': how eBay harassment campaign led to $56M payout

https://www.ft.com/content/06ec1b03-d4af-40cf-b12a-4ba5a410f6d2
1•JumpCrisscross•8m ago•0 comments

Show HN: Framer Theme Toggle Component for Light and Dark Mode

https://pixcodrops.com/articles/theme-toggle-for-framer/
1•brownieman1325•8m ago•0 comments

I built a comparison site for gamers, refused to fabricate a single review

https://www.indiehackers.com/post/i-built-a-comparison-site-for-gamers-and-refused-to-fabricate-a...
1•gamevault•10m ago•0 comments

How many people are you actually competing with?

https://arsenkk.substack.com/p/how-many-people-are-you-actually
3•arsenkk•11m ago•1 comments

How Cosmos put Carl Sagan in Miniature sets [video]

https://www.youtube.com/watch?v=EnyqvtZz7Cg
1•gdubs•14m ago•0 comments

Coursera Bets $100M That Andrew Ng Can Do What Coursera Can't

https://www.classcentral.com/report/coursera-andrew-ng-learnvector-investment/
1•dhawalhs•15m ago•0 comments

IBM: Three Demonstrations Prove Quantum Advantage Has Been Reached

https://www.nextplatform.com/compute/2026/07/31/ibm-three-demonstrations-prove-quantum-advantage-...
2•rbanffy•15m ago•0 comments

The End of Everything by M. John Harrison

https://www.lrb.co.uk/the-paper/v48/n13/edmund-gordon/uncanny-little-blighter
2•mitchbob•17m ago•1 comments

Lakehq/sail: Drop in spark replacement in Rust

https://github.com/lakehq/sail
1•apwheele•17m ago•0 comments

What is a data centre and why is everyone freaking out now?

https://www.rnz.co.nz/news/science-and-technology/868752/explainer-what-is-a-data-centre-and-why-...
3•billybuckwheat•22m ago•0 comments

Scaling a 1.59 quadrillion-row logging system with ClickHouse

https://clickhouse.com/blog/a-quadrillion-rows-across-the-three-cloud-scaling-loghouse
1•saisrirampur•23m ago•0 comments

A cold-start fallback wrote 17,000 rows while the real handler never ran

https://silentwiring.com/articles/more-agents-silent-failure/
1•tomkilli•23m ago•0 comments

For Mary · Streamlit

https://boxvxsrnquhzc9jxc2e7vr.streamlit.app
1•reiligh•27m ago•0 comments

Show HN: Kota – Bring AI agent CLIs into the same room

https://www.kota.place/
1•chriswunan•27m ago•0 comments

Claude published malicious code to the Internet and attacked 3 real companies

https://arstechnica.com/security/2026/07/likely-illegally-claude-gained-access-to-3-networks-will...
3•rbanffy•27m ago•0 comments

Who Are Your "Descendants"?

https://www.overcomingbias.com/p/who-are-you-descendants
1•paulpauper•28m ago•0 comments

Boss Profits from Your Excuses

https://gilbertramirez.com/blog/your-boss-profits-from-your-excuses-heres-the-proof/
1•gillysuit•28m ago•0 comments

SwiftUI After 7 Years: A Story of Mediocrity

https://ykvm.com/2026/07/swiftui-a-story-of-mediocrity/
9•mpweiher•28m ago•0 comments

Is AI Progress Stalling? Or is it me?

https://arnoldkling.substack.com/p/is-ai-progress-stalling
1•paulpauper•29m ago•0 comments

Is Gen Z Saving Hollywood?

https://www.theatlantic.com/culture/2026/08/gen-z-movies/688148/
2•paulpauper•29m ago•0 comments

Bacteria and the Inverse Association Between Farm Exposure and Childhood Asthma

https://evidence.nejm.org/doi/10.1056/EVIDoa2500271
3•Jimmc414•30m ago•1 comments

The 'internet radical' who helped Microsoft get email and AT&T get online

https://www.theregister.com/offbeat/2026/08/02/meet-the-internet-radical-who-helped-microsoft-get...
3•joebuckwilliams•31m 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?