frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The Penicillin Myth

https://www.asimov.press/p/penicillin-myth
1•devonnull•40s ago•0 comments

Ghostty on macOS now has search

https://twitter.com/mitchellh/status/1993728538344906978
1•sulkie•53s ago•1 comments

Investors expect AI use to soar. That's not happening

https://www.economist.com/finance-and-economics/2025/11/26/investors-expect-ai-use-to-soar-thats-...
2•gaius_baltar•4m ago•1 comments

I forced 4 Big AI to admit structural failure in complex coding. Here is the fix

https://github.com/robertomisuraca-blip/LLM-Entropy-Fix-Protocol
1•robertomisuraca•4m ago•0 comments

iOS Web Browser Latency

https://dbushell.com/2025/11/27/ios-web-browser-latency/
1•speckx•6m ago•0 comments

The Codebase Is Decadent and Depraved

https://gonzo.engineer/posts/the-codebase-is-decadent-and-depraved/
1•Dowwie•7m ago•0 comments

The Doom Spenders

https://macleans.ca/longforms/the-doom-spenders/
1•johnshades•8m ago•0 comments

The exascale offensive: America's race to rule AI HPC

https://www.theregister.com/2025/11/26/the_exascale_offensive/
2•johnshades•10m ago•0 comments

ArkRegex: RegExp with TypeScript Types

https://nitter.tiekoetter.com/arktypeio/status/1983236507507777926#m
1•encroach•12m ago•0 comments

Bamboo Scaffolding in Hong Kong

https://multimedia.scmp.com/infographics/culture/article/3183200/bamboo-scaffolding/index.html
3•ksec•13m ago•0 comments

Show HN: Trinity – A self-healing static site generator that fixes its own CSS

https://github.com/fabriziosalmi/trinity
1•fab_space•13m ago•0 comments

Four Product Discovery Models: A Practical Map

https://itamargilad.com/product-discovery-models/
1•vinhnx•14m ago•0 comments

At least 36 killed in Hong Kong fire with 279 still missing, authorities say

https://www.bbc.com/news/live/c2emg1kj1klt
3•ksec•14m ago•0 comments

Chat Control is not dead, it is just being privatized

https://www.patrick-breyer.de/en/reality-check-eu-council-chat-control-vote-is-not-a-retreat-but-...
3•latexr•15m ago•2 comments

Show HN: I built an MCP server to connect AI agents to your DWH

1•karakanb•15m ago•0 comments

I tried to build a WhatsApp bot. Meta banned me before it left the drawing board

https://manualdousuario.net/en/whatsaa-meta-developer-banned/
1•rpgbr•16m ago•2 comments

AI Just Took My Product Photographer's Job

https://theautomatedoperator.substack.com/p/ai-just-took-my-product-photographers
2•awillen•17m ago•0 comments

We Ran Agent User Research with Agents (It Worked)

https://image-mcp.com/posts/we-ran-agent-user-research-with-agents-it-worked-01kb0m230k8r972e8413...
1•the_danny_g•17m ago•0 comments

Scaleway turns Mac minis into high‑density, Raspberry Pi–managed servers

https://www.scaleway.com/en/blog/how-we-turn-apples-mac-mini-into-high-performance-dedicated-serv...
14•Lwrless•21m ago•2 comments

Effective harnesses for long-running agents

https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents
1•aratahikaru5•23m ago•0 comments

Show HN: Ghostty-Web – Ghostty in the Browser

https://github.com/coder/ghostty-web
5•jonayers_•24m ago•2 comments

The Moron Filter Effect

https://moonbearmusings.com/the-moron-filter-effect/
1•ronsor•25m ago•0 comments

The Griswold Effect: How the Holiday Economy Makes Joy Expensive

https://indieinvestor.substack.com/p/the-griswold-effect-how-the-holiday
1•IndieInvestor•27m ago•0 comments

AgentLens: The Future of Evaluation Is Agentic

https://contextual.ai/blog/agentlens-the-future-of-evaluation-is-agentic
5•shikib•29m ago•2 comments

Chinese researchers simulate large-scale electronic warfare against Starlink

https://www.scmp.com/news/china/science/article/3333523/chinese-researchers-simulate-large-scale-...
3•2OEH8eoCRo0•29m ago•0 comments

Is it disruption, or is it theft?

https://www.chrbutler.com/disruption-or-theft
6•delaugust•30m ago•0 comments

Show HN: We built a free tool to help game devs better set Steam regional prices

https://hushcrasher.com/tools/steam-regional-pricing/
1•juliebelz•30m ago•1 comments

One mile on bike is a 42¢ economic gain to society, a mile driving is a 20¢ loss

https://grist.org/biking/one-mile-on-a-bike-is-a-42-economic-gain-to-society-one-mile-driving-is-...
2•voxadam•32m ago•2 comments

Why Content Is King in Tech Events

https://substack.com/inbox/post/179317312
3•Lindsayterra•32m ago•0 comments

NASA Rover Makes a 'Shocking' Discovery: Lightning on Mars

https://www.nytimes.com/2025/11/26/science/mars-lightning-nasa.html
3•gnabgib•32m 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?