frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Army cooks are now 'tactical field feeding specialists'

https://taskandpurpose.com/news/army-92g-tactical-feeding-specialists-cooks/
1•ilamont•1m ago•0 comments

A Farewell to Hubs

https://arcan-fe.com/2026/10/23/a-farewell-to-hubs/
1•steve-chavez•2m ago•0 comments

A new cardiovascular drug lowered Lp(a) by 78%. Why didn't heart events fall?

https://www.empirical.health/blog/pelacarsen-lpa-horizon-results/
1•brandonb•2m ago•0 comments

Croft – A VSCode-style TUI text editor

https://terminaltrove.com/croft/
1•vitali87•4m ago•0 comments

Show HN: A medieval world where growth and citizens are pure functions of time

https://github.com/retrogames23/samenland
1•doener•6m ago•0 comments

0: An open-source multi-model harness for security research

https://0.security/
2•bartonaut•7m ago•1 comments

Show HN: Minimalistic roguelike game about hiking in Clojure

https://github.com/postboy/roguehike
1•postboy•10m ago•0 comments

New method Binance and Crypto Drainer, +$70k a week

1•jambini•10m ago•0 comments

Bloomington, Indiana Bans Artificial Intelligence: Ordinance 2026-29 Explained

https://explainx.ai/blog/bloomington-indiana-superintelligence-ban-ordinance-2026-29-2026
3•extraextra•11m ago•0 comments

Starship Flight 15 on 11/13 plans to catch both booster and ship

https://www.spacex.com/launches/starship-flight-15
2•spikels•12m ago•0 comments

Show HN: Vynyo – AI creative studio for hairstyle, image and video

https://vynyo.com
1•zhoouweiyuan51•12m ago•0 comments

The Web Is More Than Enough, by Paul Ford

https://ftrain.com/aboard-the-web-is-more-than-enough
2•edward•14m ago•0 comments

Stanford Paper Could Make Nvidia's Memory Chips Unnecessary [video]

https://www.youtube.com/watch?v=nv5_PH2uPVI
1•da02•14m ago•0 comments

Smart Soil Sensors Tested and Compared

https://smarthomescene.com/reviews/smart-soil-sensors-tested/
1•kiselio•15m ago•0 comments

Correctness of Automatic Differentiation via Diffeologies and Categorical Gluing

https://arxiv.org/abs/2001.02209
1•measurablefunc•15m ago•0 comments

Threat of air strikes: US looks to bolster base infrastructure with 3D printing

https://www.airforcetimes.com/news/2026/11/04/under-threat-of-air-strikes-us-looks-to-bolster-bas...
1•everybodyknows•16m ago•0 comments

NCM: Next-Concept Modeling: Fast, Parallel Coarse-to-Fine Text Generation

https://arxiv.org/abs/2610.14162
2•based2•21m ago•0 comments

Systemd Loves Rust

https://amutable.com/blog/systemd-loves-rust
3•birdculture•22m ago•0 comments

Optimizing Reference Deletions in Git

https://nayak.im/posts/optimizing-reference-deletion/
2•nayak•24m ago•0 comments

How I Fight AI Brain Fry

https://sergeykuhne.com/blog/fighting-ai-brain-fry
5•kyunez•24m ago•0 comments

PDP-8/E Restoration Log

https://www.ricomputermuseum.org/collections-gallery/equipment/dec-pdp-8e/pdp-8e-restoration-log
3•andrewstuart•31m ago•0 comments

Quotes and Dashes for Typography Novices

https://arturdryomov.dev/posts/typography-marks/
2•ming13•31m ago•0 comments

Fishermen find Royal Caribbean cruise ship employee in water 20 miles off coast

https://www.cbsnews.com/losangeles/news/newport-beach-fishermen-find-man-treading-water-royal-car...
5•tosh•33m ago•0 comments

Show HN: Tab-league – archive Chrome tabs locally so closing them feels safe

https://github.com/Shann5/tab-league
1•shanni_hacks•34m ago•0 comments

AI detection trap: When machines put human creativity on trial

https://www.newindianexpress.com/explainers/2026/Nov/06/ai-detection-trap-when-machines-put-human...
1•paulpauper•37m ago•0 comments

The Costs of Federal Permitting [pdf]

https://nicholasbagley.com/assets/papers/costs-of-federal-permitting.pdf
1•paulpauper•40m ago•0 comments

Buying Computers at Costco

https://jlellis.net/blog/why-i-buy-my-computers-at-costco/
2•succinct_ideas•40m ago•2 comments

Pork Roll vs. Taylor Ham?

https://primitivepines.com/pork-roll-vs-taylor-ham/
1•paulpauper•41m ago•0 comments

Outlook.com Is Quietly Rejecting Email from Domains Without DMARC

https://mailroute.net/blog/outlook-rejecting-email-without-dmarc
30•xmddmx•42m ago•16 comments

When the Kubernetes API went silent: A three-layer networking mystery

https://cloud.google.com/blog/products/networking/the-three-layer-gke-network-mystery
2•miladibra•46m 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?