frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

A hacker group is poisoning open source code at an unprecedented scale

https://www.wired.com/story/teampcp-software-supply-chain-attack-spree-github/
1•sbulaev•51s ago•0 comments

Nvidia Vera Rubin Bill of Materials and the Investment Opportunities

https://leoinai.substack.com/p/nvidia-vera-rubin-bill-of-materials-morgan-stanley
1•lboquillon•1m ago•0 comments

Second tranch of UFO files declassified

https://www.war.gov/News/Releases/Release/Article/4499305/department-of-war-publishes-second-rele...
1•pandoro•2m ago•1 comments

Deep Tech Companies Are Built Different

https://www.codingvc.com/p/deep-tech-companies-are-built-different
1•speckx•2m ago•0 comments

Building Agents from First Principles

https://twitter.com/athleticKoder/status/2057091692235481560
1•gmays•4m ago•0 comments

The answer to security-woes, dependecy-complexity and maintenance-burdens is DIY

1•nathansherburn•4m ago•0 comments

Show HN: Origin – Christianity and naturalism as competing worldviews

https://github.com/geoff1111/origin
1•Egret•4m ago•0 comments

Signal – Deleted, but Not Forgotten

https://sintonen.fi/advisories/signal-deleted-but-not-forgotten.txt
1•HotGarbage•13m ago•0 comments

The AI Elephant in the Room

https://www.joshwcomeau.com/email/wham-launch-005-elephant-2-p/
2•moebrowne•15m ago•0 comments

Bitcoin Pizza Day is crypto's longest-running joke

https://muddy.jprs.me/posts/2026-05-22-why-bitcoin-pizza-day-is-crypto-s-longest-running-joke/
1•jprs•16m ago•0 comments

Pub Quiz Flashcards

https://maxhalford.github.io/pub-quiz-flashcards/
1•Lemaxoxo•17m ago•0 comments

Alberta to hold referendum on whether to remain in Canada

https://www.bbc.com/news/articles/cvgze8n5dxko
2•JumpCrisscross•18m ago•0 comments

Swoin.io – Community-driven roadmaps backed by real money

https://www.swoin.io/
1•DenisManig•20m ago•0 comments

Prize-winning story published in Granta was (likely) written by AI

https://lithub.com/a-prize-winning-story-published-in-granta-was-very-likely-written-by-ai/
1•vintagedave•21m ago•0 comments

Largest North American Bitcoin ATM operator, Bitcoin Depot, files for bankruptcy

https://www.web3isgoinggreat.com/single/bitcoin-depot-bankruptcy
1•t-3•22m ago•0 comments

Why I built wrkflw to validate and run GitHub Actions locally

https://blog.gokuls.in/posts/why-i-built-wrkflw.html
2•bahdotshxx•22m ago•0 comments

Housing squeeze in Swiss boom region fuels support for population cap

https://www.reuters.com/world/europe/housing-squeeze-swiss-boom-region-fuels-support-population-c...
1•JumpCrisscross•25m ago•0 comments

Show HN: LocalPanel – Manage any SSH server from Mac/Windows, no server agents

1•nesdzoltd•25m ago•0 comments

Advanced adenomas among young endurance runners: A prospective prevalence study

https://www.sciencedirect.com/science/article/pii/S1877782126001037
2•bookofjoe•27m ago•1 comments

The 8-Bit Guy made an even faster "Random Maze " [video]

https://www.youtube.com/watch?v=cPZdKogq63k
1•Unai•28m ago•0 comments

Fun: macOS Upgrade Notice

https://mastodon.social/@meysam81/116618247498810037
3•meysamazad•29m ago•0 comments

Sam Altman Won in Court Against Elon Musk. But, We All Lost

https://www.newyorker.com/news/letter-from-silicon-valley/sam-altman-won-in-court-against-elon-mu...
8•littlexsparkee•30m ago•2 comments

Is Capability a Liability? More Capable Language Models Make Worse Forecasts

https://arxiv.org/abs/2605.22672
1•sbulaev•30m ago•0 comments

Three Ways to See Distance – Camera in Robotics

https://atomsfrontier.substack.com/p/three-ways-to-see-distance
1•jpatel3•32m ago•0 comments

ExtendDB – open-source DynamoDB-compatible API adapter with pluggable storage

https://github.com/ExtendDB/extenddb
2•akajla•32m ago•0 comments

AutoViz: The last project by Leland Wilkinson

https://github.com/h2oai/autoviz
2•johnygomez•32m ago•1 comments

Beyond Deterministic Surfaces: Uncertainty-Aware Geometry Processing

https://blog.siggraph.org/2026/05/beyond-deterministic-surfaces-uncertainty-aware-geometry-proces...
1•rbanffy•32m ago•0 comments

Crypto industry braces for quantum computing threat

https://www.ft.com/content/99c1c1e7-1a1c-479c-9fc8-e21aea5c3f0e
1•JumpCrisscross•33m ago•0 comments

Department of War Publishes Second Release of UFO Files

https://twitter.com/DeptofWar/status/2057799788003737844
3•keepamovin•34m ago•0 comments

Redframes

https://github.com/maxhumber/redframes
1•tosh•34m 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?