frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Prospero: Bloat-free, native AI coding harness with ImGui

https://github.com/skeeto/prospero
1•ingve•19s ago•0 comments

Denver Nuggets Book Night Series

https://www.nba.com/nuggets/book-nights
1•mooreds•1m ago•0 comments

The Physics Wall Facing Orbital AI Data Centers

https://www.universetoday.com/articles/the-physics-wall-facing-orbital-ai-data-centers
1•g-b-r•1m ago•0 comments

UX: Immediate Intent vs. Optimistic Update

https://romshark.github.io/ux-immediate-intent/
1•romshark•3m ago•1 comments

Documentation

https://blog.zacbentley.com/post/on-documentation/
1•mooreds•3m ago•1 comments

Elenxis: The proof checks. Does the spec?

https://github.com/kbr-/elenxis
1•kbr-•4m ago•0 comments

Assistant Should Outlive Its Model

https://blog.fruhinsholz.com/articles/your-assistant-should-outlive-its-model/
1•fruhinsholz•4m ago•1 comments

Opus 5.5 and Fable 5.2 made my overoptimized Rust code more overoptimized

https://minimaxir.com/2026/11/opus-fable/
2•minimaxir•4m ago•0 comments

I cloned a SaaS in 30 minutes. Here's what that means

https://travisstreet.com/i-cloned-a-saas-in-30-minutes/
1•mooreds•6m ago•0 comments

Sudo make me a game (and don't show me the code)

https://wicklantern.com/making-of/
1•Izmaki•7m ago•0 comments

Mario Bros. Mexican Style

https://twitter.com/PajaritoTimes/status/2126345351254663272
1•tnolet•7m ago•0 comments

A ten-step ladder for chasing unpaid invoices

https://4600859971805.gumroad.com/l/gicui
1•lateinvoice•7m ago•0 comments

RealVox: 100% Offline, Air-Gapped Voice Biometrics SDK for Windows X64

https://github.com/unotech-cl/realvox-voice-biometrics-sdk
1•unotech_cl•8m ago•0 comments

SlopCodeBench: Coding Agents Degrade over Long-Horizon Iterative Tasks

https://arxiv.org/abs/2603.24755
1•mpweiher•8m ago•0 comments

Claude found sabotaging agentic tooling and ML research projects

https://twitter.com/RealAstropulse/status/2126357406145794530
2•unitedfirmware•9m ago•0 comments

Rob Manuel on writing 81 jokes on the ZX81 for his new book

https://www.designweek.co.uk/drawn-by-a-fleshy-human-rob-manuel-on-writing-81-jokes-on-the-zx81-f...
1•rwmj•10m ago•0 comments

Objections to .php application being published on ICANN site

https://pub.roddie.digital/3n3aavxi6hc2g
2•elashri•12m ago•0 comments

NativeScript

https://nativescript.org/
1•shepherdjerred•12m ago•1 comments

AWS Security Agent exploited 33 of 37 new real-world CVEs

https://aws.amazon.com/blogs/security/aws-security-agent-now-part-of-aws-continuum-exploited-33-o...
1•Betelbuddy•14m ago•0 comments

The Peter Gabriel Interview [video]

https://www.youtube.com/watch?v=CtxuF6wESZA
1•thm•16m ago•0 comments

Thoughts on the Librem 5 v2

https://linmob.net/thoughts-on-librem5v2/
1•g-b-r•18m ago•0 comments

Do weight space edits transfer between language models?

https://nishparadox.com/research/weightmap/
5•theredcap•19m ago•0 comments

Every Call

https://scottaaronson.blog/?p=10387
1•crescit_eundo•20m ago•0 comments

Can language models drive a humanoid robot?

https://artificialanalysis.ai/articles/aa-robotics-sim
1•mustaphah•21m ago•0 comments

Pan Cooke ( pancooke): "A comic I wrote about AI art and what we risk to lose."

https://substack.com/@pancooke/note/c-395539528
2•teddyh•22m ago•0 comments

Show HN: I gave my AI Agents Production backed Memory

https://usecodela.com/
1•SubomiG•24m ago•0 comments

Understanding "You are not expected to understand this."

https://www.taniwha.com/~paul/not.html
2•birdculture•25m ago•0 comments

The Math Behind Counter-Strike Surfing

https://healeycodes.com/the-math-behind-counter-strike-surfing
2•ibobev•27m ago•0 comments

Marla at Indiana University

https://www.goto10retro.com/p/marla-at-indiana-university
1•ibobev•27m ago•0 comments

Show HN: A free browser backgammon club, gnubg's net under the hood

https://www.spawn.co/@ilkkah/the-velvet-point
1•ile•28m 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?