frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

How to Be Sovereign

1•At1C•2m ago•0 comments

Post-Quantum OpenID Connect

https://openid.net/post-quantum-openid-connect/
1•EthanHeilman•3m ago•0 comments

Geatsc – TypeScript-to-C++ Compiler

https://github.com/geastack/compiler
1•arbayi•4m ago•0 comments

One model writes the code, a different model reviews it

https://github.com/WDahah/portable-dsh-multi-agent-plugin
1•WDahah•6m ago•0 comments

Show HN: SubCrisp, a free subscription tracker that shows what cancelling saves

https://subcrisp.com/
1•dablity•7m ago•0 comments

What Is It Like to Be a Cat Tail? (2021)

https://gwern.net/blog/2021/cat-tail
1•1317•8m ago•0 comments

Planetary Boundaries Laser Talk Booklet

https://docs.google.com/document/d/1K7O1Aq2EXhZ2AJhJunAwuZ8B41nZFfGufFRJDe92jdA/edit?tab=t.0
1•debo_•10m ago•1 comments

Claude skill and Obsidian plugin to proofread your English writing

https://codomaniac.com/claude-skill-and-obsidian-plugin-to-proofread-your-english-writing/
1•piorus•11m ago•0 comments

Show HN: NiceTryGPT and CTF and riduzione degli shortcut LLM

https://github.com/aleff-github/NiceTryGPT
2•aleff•13m ago•0 comments

NodeX – Serverless P2P E2EE Messenger in Rus

https://github.com/NetGadz/NodeX
1•gadz•13m ago•0 comments

QLoRA Explained – How 4 Bit Quantization Unlocks Frontier Models

https://theneuralmaze.substack.com/p/qlora-explained-how-4-bit-quantization
1•peter_d_sherman•13m ago•0 comments

From MySQL to PostgreSQL: a much lighter server

https://ozkanpakdil.github.io/posts/my_collections/2026/2026-09-18-mysql-to-postgresql-migration/
1•ejboy•15m ago•0 comments

Show HN: Agentic OS: one Rust Linux binary, one SQLite and sandbox per actor

https://github.com/mmeyerlein/meclaw/
1•mmeyerlein•18m ago•1 comments

Eigenism

https://eigenism.org/
1•supermdguy•18m ago•0 comments

Building an Agentic Coding Server in Go

https://prakhargurunani.com/blog/building-an-agentic-coding-server-in-go/
1•prakhargurunani•20m ago•0 comments

AI Journal 1: The Slow Surrender to AI

https://devshrine.net/blog/ai-journal-1/
1•renehsz•22m ago•0 comments

Domain sellers try to scam me

https://devshrine.net/blog/blog-domain-scams/
1•renehsz•25m ago•0 comments

What were Roman dodecahedrons used for?

https://twelve-faces-one-mystery.borisxp.chatgpt.site/
1•MrBuddyCasino•28m ago•0 comments

Agents are replacing pull requests, Playwright, and chip design tools

https://fromtheterminal.substack.com/p/the-land-grab-isnt-for-your-code-its-for-everything-around-it
1•oldfamily•28m ago•0 comments

'Anti-vampiric' grave used two strategies to stop the undead

https://www.sciencenews.org/article/ancient-anti-vampire-grave-undead
3•billybuckwheat•28m ago•0 comments

The Overhang

https://www.oneusefulthing.org/p/the-overhang
2•saikatsg•29m ago•0 comments

MNIST64: Interactive speed 6502 implementation on the Commodore 64 [pdf]

https://jarnoh.github.io/mnist64/paper.pdf
1•roopekangas•30m ago•0 comments

HN: MacDown SE, the Native Apple Silicon Continuation of MacDown with MCP

https://github.com/eldris-io/macdown-se
1•jeff-oomu•32m ago•0 comments

Natural General Intelligence

https://naturalgeneralintelligence.ai/
1•gmays•34m ago•0 comments

Steppy Fox, a one-tap browser game

https://steppyfox.com/
1•fadilbeg•37m ago•0 comments

The Proof in the Code: How a Truth Machine Is Transforming Math and AI

https://www.publishersweekly.com:443/9780374620059
1•abiro•42m ago•0 comments

Software Sandboxing: The Basics

https://blog.emilua.org/2025/01/12/software-sandboxing-basics/
2•mococa•42m ago•0 comments

Sorry, Webster. Most People Don't Want Internet Slang in the Dictionary

https://www.nytimes.com/2026/09/17/magazine/dictionary-internet-slang.html
3•ChrisArchitect•43m ago•1 comments

I Stole RRR from Elon Musk and SpaceX

https://github.com/MLSystemsRI/ml-systems-public/blob/main/why/articles/i-stole-rrr-from-elon-mus...
1•Salparvezml•43m ago•0 comments

Anthropic is cutting Claude Code's current weekly limits by 17%

https://www.bleepingcomputer.com/news/artificial-intelligence/anthropic-is-cutting-claude-codes-c...
5•shepherdjerred•44m ago•4 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?