frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

OpenCode 2.0

https://anoma.ly/notes/opencode-2-0/
1•bodash•49s ago•0 comments

Ask HN: Have you ever spoken truth to power?

1•taxicabjesus•1m ago•0 comments

Show HN: Proc-stats – a task manager for Claude Code sessions

https://github.com/DragosMocrii/proc-stats
1•dragosmocrii•2m ago•0 comments

Build your founders' agreement before things get complicated

https://founderagreement.com/
1•cs1996•3m ago•0 comments

Driving directions from LLM memory

https://fig.blue/posts/directions-from-memory/
1•nathanfig•9m ago•1 comments

Fetching AMD SEV Reports (With Zig)

https://bschaatsbergen.com/posts/zig-sev-guest/
2•peterpanhead•9m ago•0 comments

What happens inside AI Chip when you ask a question

https://www.youtube.com/watch?v=oBKrR3i6jWM
1•tamirdresher1•12m ago•0 comments

Turning IDN edge cases into typosquats

https://haveibeensquatted.com/blog/turning-idn-edge-cases-into-typosquats
1•josephcsible•14m ago•1 comments

Cognitive Decline or Sanity Incline?

https://mdelcaro.substack.com/p/cognitive-decline-or-sanity-incline
5•fathermarz•15m ago•2 comments

Creative plugins for your agent wrapping Artcraft

https://github.com/prajvis/creative-plugins
1•argssh•17m ago•1 comments

The Apollo 11 Code Is Open Source (and it's hilarious) [video]

https://www.youtube.com/watch?v=ACAd_w3D-io
2•gcanyon•19m ago•1 comments

Spot SponsorBlock: automatically skip sponsor segments in Spotify podcasts

https://spotsponsorblock.org/
1•ProxyTracer•20m ago•0 comments

Talking to /Dev/Sev-Guest

https://bschaatsbergen.com/posts/zig-sev-guest/
2•bschaatsbergen•20m ago•0 comments

Ask HN: How do swarms of AI agents work?

5•dsrtslnd23•22m ago•1 comments

Barnette's Conjecture proof AI explained

https://www.youtube.com/watch?v=mtU4op2kMWI
1•figure8•24m ago•0 comments

ninjatracing – convert .ninja_log files to Chrome's about:tracing format

https://github.com/nico/ninjatracing
2•gjvc•25m ago•0 comments

Why are my posts banned?

1•colwont•25m ago•0 comments

Flights for Agents

https://www.flyskye.ai/partners
1•sakshamkapur•26m ago•0 comments

Why we turn Left

https://www.odt.co.nz/life-and-style/the-mix/the-unexplained-mystery-of-why-we-turn-left-dxl8nz80
1•worik•30m ago•1 comments

USDCraft: Programmatic Modeling of Articulated 3D Assets for Simulation

https://xingyoujun.github.io/usdcraft/
2•msadowski•30m ago•0 comments

HyperNormalisation (2016)

https://www.imdb.com/title/tt6156350/
2•beepdyboop•32m ago•0 comments

The probability of data loss in large clusters (2017)

https://martin.kleppmann.com/2017/01/26/data-loss-in-large-clusters.html
1•mdspan•33m ago•0 comments

Cartographers of North Korea

https://cartographers-nk.wonyoung.so/
4•edent•33m ago•0 comments

Yandex: Ukraine strikes data centre in third attack on Russian tech giant

https://www.bbc.com/news/articles/cw0k0g57mk3zo
7•kristianp•34m ago•1 comments

Taskmaster as a Thermodynamic System

https://jasmcole.com/2026/10/06/all-the-information-theory-is-on-the-task/
2•jasmcole•34m ago•0 comments

Artificial Insanity

https://richwhitehouse.com/index.php?postid=78
2•leglock•35m ago•0 comments

Inside the mind of Solveig Lovseth, the world’s fittest woman

https://www.nytimes.com/athletic/7671570/2026/10/09/solveig-lovseth-ironman-world-championship/
1•mooreds•36m ago•0 comments

Be The Onion's Hero for Once

https://mailchi.mp/email.theonion.com/archivehunt
55•mooreds•36m ago•0 comments

Scoop: AI companies plot "day after" scenarios for public revolt

https://www.yahoo.com/news/politics/articles/scoop-ai-companies-plot-day-093011371.html
3•pluc•37m ago•0 comments

Qwen 3.8 27B: Taiwan Pilled

https://huggingface.co/noisebridge/qwen3.8-27b-taiwan-pilled
1•teaearlgraycold•37m 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?