frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The average cost for a new vehicle in the U.S. hits a record high: over $51,000

https://www.npr.org/2026/11/10/nx-s1-6026659/average-vehicle-price-record-high
1•blinding-streak•2m ago•0 comments

JSQLite: Browser-safe TypeScript version of SQLite's read-only implementation

https://github.com/salva/jsqlite
1•thunderbong•3m ago•0 comments

Microsoft Outlook/365 still down after 12 hours

https://twitter.com/MSFT365Status/status/2121079061774491735
1•player85•4m ago•0 comments

Show HN: PharmA2A, an open protocol for pharmacy-to-supplier orders on A2A

https://github.com/pharma2a/pharma2a
2•eliefo•13m ago•0 comments

Michelangelo AI

https://michelangelo-ai.org/
1•trekhleb•15m ago•0 comments

IceWM

https://ice-wm.org/
2•inatreecrown2•17m ago•0 comments

Agent Skills

https://vercel.com/docs/agent-resources/skills
1•trekhleb•18m ago•0 comments

Feather (Codevember)

https://ttillberg.github.io/codevember-2026/12/
1•markdog12•18m ago•0 comments

Copyright-Strike-for-Hire: Lawsuit Targets Service over Fake Meta Takedowns

https://torrentfreak.com/copyright-strike-for-hire-lawsuit-targets-service-over-fake-meta-takedowns/
1•gslin•20m ago•0 comments

Shutting the Door on the XCPE Botnet (Threat Intelligence)

https://lwn.net/Articles/1104847/
1•noorsimar•20m ago•0 comments

Show HN: My Script to Diff iTerm Configs

https://gist.github.com/hagemt121/14caecfd23dc14b97e0d2eaec01ab3a4
1•hagemt•22m ago•0 comments

Show HN: Vending machine uses words, not money

https://cultivatedcorpora.com/
1•avibagla1•22m ago•0 comments

Why Does Pitching Integrators Feel Like a One-Way Street?

https://deploy95.substack.com/p/why-does-pitching-integrators-feel
1•dddddaviddddd•23m ago•0 comments

US Justice Department has not concluded Alice Huang was Chinese spy

https://www.reuters.com/world/china/us-justice-department-has-not-concluded-alice-huang-was-chine...
1•madars•26m ago•0 comments

Hacker New Link Extractor

https://hn-links.netlify.app/
1•rammy1234•27m ago•0 comments

Fake Shemp

https://en.wikipedia.org/wiki/Fake_Shemp
1•gregsadetsky•28m ago•0 comments

Proof Assistant as Platform: Building the Next Generation of Verifiers [pdf]

https://pirlea.net/papers/thesis-draft.pdf
1•matt_d•30m ago•0 comments

NASA's Escapade Completes Powered Earth Flybys, Now En Route to Mars

https://science.nasa.gov/science-research/heliophysics/nasas-escapade-completes-powered-earth-fly...
2•gmays•31m ago•0 comments

The Scandal Is Bigger Than Jensen Huang

https://www.theatlantic.com/international/2026/11/nvidia-china-ai-regulation/689387/
4•paulpauper•34m ago•0 comments

Open Source AI Salons: Shaping the Osaid, Together

https://opensource.org/blog/open-source-ai-salons-shaping-the-osaid-together
1•gslin•37m ago•0 comments

Microsoft struggling to restore service as global outage affects services

https://www.bbc.com/news/articles/c5gm3g9ldz8xo
7•aussieguy1234•39m ago•4 comments

Are universities on the brink of an Uber-like revolution?

https://www.optimallyirrational.com/p/are-universities-on-the-brink-of
1•paulpauper•39m ago•0 comments

The Lost World of Aquaterra

https://www.theatlantic.com/magazine/2026/12/aquaterra-ancient-human-migration/689029/
1•paulpauper•40m ago•0 comments

Outlook still down for anyone else?

3•rsoto2•40m ago•4 comments

Show HN: I built a numbers game for my kids, with no tracking in the app

https://playhellobeam.com/beta
1•Mefillo•44m ago•0 comments

Jensen Huang's Downfall Is a Sign of Silicon Valley's Power Drain

https://www.wsj.com/tech/jensen-huang-nvidia-silicon-valley-ce74b63f
4•JumpCrisscross•47m ago•0 comments

Huang's fall is an indictment of founder mode at Big Tech

https://www.ft.com/content/83051c3a-cab4-4c66-89fc-ae7149047a25
3•JumpCrisscross•51m ago•0 comments

Rocket.Chat ABAC Structure

https://kevinaleman.com/how-abac-works-in-rocketchat/
1•window1protec•56m ago•0 comments

When Belonging Means Believing, Even Preschoolers Resist Changing Their Minds

https://psychandneuro.duke.edu/news/when-belonging-means-believing-even-preschoolers-resist-chang...
1•rohanm93•57m ago•0 comments

Glue work is still harmful in the age of AI

https://www.seangoedecke.com/glue-work-is-still-harmful-in-the-age-of-ai/
1•gpi•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?