frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Hiii

1•sathana•3m ago•0 comments

From Tethered Spinal Cord to C1 Paralysis

https://medium.com/freedomofthought/from-tethered-spinal-cord-to-c1-paralysis-and-five-years-of-b...
1•raynchad•3m ago•0 comments

OpenClaw 2.0, Accidentally

https://openclaw.ai/blog/openclaw-2-accidentally
2•doppp•5m ago•0 comments

Amazon Stonehenge: Parque Arqueológico Do SolstíCIO

https://en.wikipedia.org/wiki/Parque_Arqueol%C3%B3gico_do_Solst%C3%ADcio
1•nycdatasci•6m ago•0 comments

UC Berkeley indefinitely suspends international student work authorizations

https://www.dailycal.org/news/campus/after-second-ice-threat-uc-berkeley-indefinitely-suspends-in...
1•cbzbc•9m ago•0 comments

Harvard Professor on Why You Should Learn C in 2026 [video]

https://www.youtube.com/watch?v=vhgI_F-WMwA
1•rramadass•11m ago•0 comments

Intrusive Linked Lists

https://www.data-structures-in-practice.com/intrusive-linked-lists/
1•tripdout•14m ago•0 comments

Wrapture

https://grahamdumpleton.me/posts/2026/08/introducing-wrapture/
1•simonw•16m ago•0 comments

Engineering a support "teammate" with human memory

https://www.coinbase.com/blog/ceecil-engineering-a-support-teammate-with-human-memory
1•dukebartnik•20m ago•0 comments

P99 0 ms* autocomplete for 240M domain names

https://ruurtjan.com/articles/p99-0ms-autocomplete-for-240-million-domain-names
1•dbalatero•22m ago•0 comments

Transfer files over an Ethernet patch cable

https://maurycyz.com/misc/etherfiles/
2•jllyhill•23m ago•0 comments

Language Trees and Zipping

https://arxiv.org/abs/cond-mat/0108530
1•zainhsn•24m ago•0 comments

Workers Builds Are Degraded – Cloudflare Status

https://www.cloudflarestatus.com/incidents/yj2zk6n6rz1c
1•kyisaiah47•26m ago•0 comments

Not All Optical Interconnect Startups Are Building the Same Thing

https://invisiblelayerhw.substack.com/p/not-all-optical-interconnect-startups
1•missionfission•30m ago•0 comments

Urban Dead is shutting down

https://urbandead.com/shutdown.html
3•potomak•31m ago•1 comments

Salad Theory

https://saladtheory.github.io/
1•colinprince•31m ago•0 comments

Show HN: ScriptSpool – Create code animations in the browser

https://scriptspool.pixzens.com/en
1•MikeLuLu•38m ago•0 comments

Google Maps now shows "Lake America"

https://www.thehindu.com/news/international/google-maps-now-shows-lake-america-in-us-not-lake-ont...
2•tesnorindian•39m ago•1 comments

Hugo Awards

https://www.thehugoawards.org/hugo-history/2026-hugo-awards/
2•demritocracy•42m ago•0 comments

Show HN: Growtics – an AI growth agent that tells you what to do next

https://growtics.io
1•jabed•43m ago•0 comments

Show HN: MaCcyP – coding agents push text to a clipboard manager's Agents view

https://github.com/harleensahni/MaCcyP
1•hstun•45m ago•0 comments

On Inevitability

https://borretti.me/article/on-inevitability
2•nozzlegear•48m ago•0 comments

Implicit Function Theorem (IFT)

https://en.wikipedia.org/wiki/Implicit_function_theorem
1•peter_d_sherman•48m ago•1 comments

SolarWindow launches 0.85 mm-thick, self-adhesive solar film

https://www.pv-magazine.com/2026/08/27/https-www-pv-magazine-com-2026-08-27-solarwindow-launches-...
12•thelastgallon•53m ago•5 comments

Enormous 12TB Steam leak includes abandoned Half-Life 2: Episode 3 assets

https://www.theverge.com/games/986552/12tb-steam-leak-half-life-2-episode-3
4•droidjj•56m ago•1 comments

The Deadline Dividend

https://deadline-dividend.onrender.com
3•gmays•57m ago•0 comments

Show HN: Prove your code produced your claims without making reviewers rerun it

https://github.com/27-GROUP/kveritas-go/
2•Mkld27•58m ago•0 comments

Flock Safety's controversial CEO just got a taste of his own medicine

https://www.neowin.net/news/the-ceo-of-americas-biggest-surveillance-network-just-got-a-taste-of-...
23•devonnull•58m ago•2 comments

The Verification Gap: Who Audits the Agents?

https://gist.github.com/ecksbe/c48919c653ec2fba4b9ee17eb534efc3
3•evidence-lab•59m ago•0 comments

Mark Zuckerberg sends message to Meta employees

https://www.thestreet.com/technology/mark-zuckerberg-shocking-message-meta-employee-layoffs-artif...
3•georgecmu•59m 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?