frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Three friends on their student debt: paid off, chipping away and one creeping up

https://www.bbc.com/news/articles/c9rk3k25vmxko
1•theanonymousone•56s ago•0 comments

Collected Vehicle Registration Data

https://robbieandrew.github.io/carsales/?lang=en&freq=monthly&type=relative&sort=alphabetical&cou...
1•mariuz•1m ago•0 comments

What Is DKIM?

https://dmarcguard.io/learn/dkim/
1•meysamazad•3m ago•0 comments

A metaphorical tale of a castle with a moat and a drawbridge

https://jva.lol/weblog/the-castle-moat-and-drawbridge/
1•meysamazad•4m ago•0 comments

Host Quartz Static Site on Bunny.net with Middleware Script

https://burgeonlab.com/blog/how-to-use-bunnycdn-for-quartz-ssg/
1•meysamazad•4m ago•0 comments

Show HN: Pi-Loop (Prototype) – A CLI for Reference Intake loop on DGX Spark

https://github.com/donutloop/donutloop-genesis/tree/main/tools/pi-loop
1•donutloop•6m ago•0 comments

The Fetish Map

https://thefetishmap.com/map/
1•hunglee2•6m ago•0 comments

The BM25 Weighting Scheme

https://xapian.org/docs/bm25.html
1•ankitg12•7m ago•0 comments

Hello World, AI Doompop

https://radimentary.wordpress.com/2026/10/10/hello-world-ai-doompop/
1•6bitquant•11m ago•0 comments

What Is Umami?

https://theconversation.com/what-is-umami-293748
2•rdmuser•12m ago•0 comments

Recoll – A powerful tool to find your lost documents

https://korben.info/en/recoll-powerful-tool-find-lost-documents.html
1•ankitg12•12m ago•0 comments

Show HN: Four Questions to stop AI-gen PRs from DDoSing your GitHub repository

https://github.com/ktwu01/agent-pr-gate
1•ktwu01•12m ago•0 comments

Science Explorer

https://scienceexplorer.org/
1•cppcrunch•14m ago•0 comments

ISAC; Security, Privacy, Trustworthiness and Sustainability [pdf]

https://www.etsi.org/deliver/etsi_gr/ISC/001_099/004/01.01.01_60/gr_ISC004v010101p.pdf
1•hasley•16m ago•1 comments

What if AI prefers CVS written by AI?

https://www.ft.com/content/b7671d34-878e-45ae-ba6e-fd83dfcdd46c
1•sbulaev•17m ago•0 comments

Show HN: The Finder alternative you've been looking for

https://tryhomy.app
1•mohitvaswani•18m ago•0 comments

My Love Letter to Sam Cooke and the Soul Stirrers' 'Nearer to Thee'

https://www.metrotimes.com/music-2/my-love-letter-to-sam-cooke-and-the-soul-stirrers-nearer-to-th...
1•stareatgoats•21m ago•0 comments

A simpler way to organize your work – Workflowy

https://workflowy.com/
1•Tomte•27m ago•0 comments

I wish you the best in the Offline

https://daverupert.com/2026/09/i-wish-you-the-best-in-the-offline/
2•birdculture•31m ago•0 comments

The problem is noise, not N: why increasing the sample size isn't all that

https://statmodeling.stat.columbia.edu/2026/10/10/the-problem-is-noise-not-n-why-increasing-the-s...
1•Tomte•32m ago•0 comments

Token Meter

https://splunk.github.io/token-meter/
1•saikatsg•33m ago•0 comments

Audit the Market Before Building the Page

https://notemplate.online/?lang=en
1•andruskoch•36m ago•0 comments

Vow: Declare the packages and dotfiles your machines should have (without Nix)

https://github.com/Houdiee/vow
1•Houdiee•38m ago•0 comments

Stump the Chump with Adam Savage [video]

https://www.youtube.com/watch?v=_wGk4kFX_IA
1•skibz•45m ago•0 comments

3rd Yandex Cloud Data Center Was Hit

https://status.yandex.cloud/en/incidents/2136
62•defly•49m ago•46 comments

Wealth Inequality

https://garyseconomics.org/introduction/
2•haizhung•51m ago•0 comments

Show HN: RemoveMacAI 1.0, a Mac app to turn off Apple Intelligence on macOS 27

https://omlahore.github.io/RemoveMacAI/
1•onyx47•55m ago•0 comments

Show HN: Modelship – an open source ray backed model cluster

https://github.com/modelship-ai/modelship
1•Alez007•56m ago•0 comments

Hibana-QUIC: QUIC in Rust using choreographic programming, no_std and no_alloc

https://github.com/hibanaworks/hibana-quic
1•o8vm•56m ago•0 comments

Optogenetics wins the Nobel – breakthrough helping map and control the brain

https://theconversation.com/optogenetics-wins-the-nobel-one-neuroscience-breakthrough-in-a-line-o...
1•bryanrasmussen•1h ago•1 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?