frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Mark Zuckerberg buys 440-acre Strancally castle estate in Ireland

https://www.theguardian.com/world/2026/aug/20/mark-zuckerberg-buys-440-acre-strancally-castle-est...
1•mitchbob•3m ago•0 comments

Show HN: Mail client optimized for self-hosted email across multiple domains

https://mainly.crnst8.com/
2•flowerpil•6m ago•0 comments

Hyperliquid trader loses $26M as ETH short unwinds in seconds

https://www.tradingview.com/news/newsbtc:0aca9ea00094b:0-hyperliquid-trader-loses-26m-as-ether-sh...
1•arvid-lind•8m ago•0 comments

A.P.E.X. – An adaptive parallel sorting framework for Java

https://github.com/StrmCkr/A.P.E.X
1•strmckr•12m ago•0 comments

AI's 'middle class' has gotten dramatically better at hacking

https://cyberscoop.com/mid-tier-ai-models-hacking-threat/
1•wslh•12m ago•0 comments

FolderIQ: Local First Drive Intelligence

https://apps.microsoft.com/detail/9n2l461wcs6c?hl=en-US&gl=US
1•bhanum•14m ago•0 comments

Jong, Java's giant ship that dwarfs European galleon and its shipbuilding legacy

https://www.reddit.com/r/indonesia/comments/1ozilho/jong_javas_giant_ship_that_dwarfs_european/
1•teleforce•15m ago•0 comments

Could AIs Become Conscious?

https://www.economist.com/leaders/2026/08/20/could-ais-become-conscious
1•petethomas•15m ago•0 comments

Darth Vader defends Flock to San Diego: 'This is what the emperor needs'

https://thehill.com/policy/technology/6042349-darth-vader-flock-surveillance/
2•rectang•16m ago•0 comments

KrakenWAF

https://github.com/Orangewarrior/KrakenWaf
1•maria7676•17m ago•1 comments

Can Head Start Be Deregulated Out of Existence?

https://www.newyorker.com/culture/progress-report/can-head-start-be-deregulated-out-of-existence
1•petethomas•18m ago•0 comments

Creative Thinking by Claude Shannon

https://www1.ece.neu.edu/~naderi/Claude%20Shannon.html
1•panabee•19m ago•0 comments

Agentic Programming and the Lust for Power(?)

https://johnoestmannmusic.com/agentic-programming-and-the-lust-for-power/
1•soundworlds•21m ago•0 comments

The AI Debate Is About Control, Not AI

https://www.fastcompany.com/91585908/the-ai-debate-isnt-about-ai-its-about-control-technology-ai-...
2•dccoolgai•21m ago•0 comments

The Art of the Self-Deal

https://www.wsj.com/opinion/the-art-of-the-self-deal-6cf57c5a
1•petethomas•22m ago•0 comments

Show HN: Post Quantum Liveness, Identity, Provenance. No Biometric Identificatio

https://github.com/Clockwork-Tree-Inc/atlas-poc-v1/tree/clockwork-tree-atlas-update-v1.2
1•clockworktree•26m ago•1 comments

Show HN: luoluoAI – OpenAI-compatible and Claude Messages API gateway

https://api.luoluocoder.com/
1•siofeng•26m ago•0 comments

Why Are Many GitHub Issues Nonsensical for Visual Studio Code Edge Dev Tools?

https://github.com/microsoft/vscode-edge-devtools/issues
1•resolute-dev•26m ago•0 comments

Spared execution eight times, oldest inmate in US dies at 101

https://www.bbc.com/news/articles/c98vr7ql2vdo
1•Teever•30m ago•0 comments

How Big Tech's A.I. Borrowing Binge Is Driving Up Bond Yields

https://www.nytimes.com/2026/08/20/business/bond-yields-tech-ai-debt.html
1•mikhael•31m ago•0 comments

Turning on airplane mode was never about keeping the plane in the air

https://spacedaily.com/k-turning-on-airplane-mode-was-never-really-about-keeping-the-plane-in-the...
1•dxs•31m ago•0 comments

Show HN: Getfkd – adults-only dating (swipe, match, meet tonight)

https://getfkd.sentineldefensetechnologies.co.za/app
1•Viper117•31m ago•0 comments

Sing-song: a speakable encoding for long numbers and keys

https://blog.vrypan.net/2026/08/19/260819-sing-song/
1•birdculture•35m ago•0 comments

Founder sues YC over idea in rejected 2018 application

https://runtimewire.com/article/founder-sues-yc-over-idea-in-rejected-2018-application
3•babelfish•35m ago•1 comments

We replaced our 223-node agent graph with a single open-source LLM

https://www.netic.ai/replacing-node-agent-graph-with-open-source-llm
1•ajayarora1235•36m ago•0 comments

Show HN: AI tools with real pricing, submitted in 30 seconds

https://worthtotry.com
1•not_wowinter13•40m ago•0 comments

Cryptomator

https://cryptomator.org
1•Cider9986•41m ago•0 comments

Ozone: The Fault Is Not in Our Trees, but in Ourselves

https://www.science.org/content/blog-post/fault-not-our-trees-ourselves
2•gumby•42m ago•0 comments

New visualizer: U.S. state obesity trends

https://www.exfatloss.com/p/new-visualizer-us-state-obesity-trends
1•paulpauper•42m ago•0 comments

You Are Not Fat Enough for Retatrutide

https://lukasxp.substack.com/p/you-are-not-fat-enough-for-retatrutide
1•paulpauper•42m 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?