frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Foundering of the sailing yacht Bayesian with the loss of seven lives

https://www.gov.uk/maib-reports/foundering-of-the-sailing-yacht-bayesian-with-the-loss-of-seven-l...
2•longerthoughts•2m ago•0 comments

Zotero 10

https://www.zotero.org/blog/zotero-10/
1•evolve2k•4m ago•0 comments

Autonomous Trail Racing

https://pages.rai-inst.com/autonomous-trail-racing/
2•num42•10m ago•0 comments

The Discipline of Deliberate Building

https://elzohairy.me/deliberate-building/
2•noktasizvirgul•14m ago•0 comments

Show HN: Temporaland – Multiplayer digital jam space

https://margeux.com/temporaland/login.html
1•vegnus•16m ago•0 comments

Spray Bottle

https://mechanical-pencil.com/products/spray-bottle
1•allenc•17m ago•0 comments

Why ClickHouse and Agents Are a Great Combo

https://blog.exe.dev/meet-exe-finops-the-custom-tool-i-built-for-our-billing-data
1•pradeepchhetri•22m ago•0 comments

Windows Narrator LockScreen Bypass 0day

https://github.com/MSNightmare/FastUnlock
2•taspeotis•25m ago•0 comments

Ask HN: Does AI slop require more marketing in the future?

1•tesnorindian•30m ago•0 comments

Animated Steller's Jay, a beautiful AI benchmark

https://grady.dev/projects/steller/
1•gbdubs•31m ago•0 comments

Senate passes BAAJA permitting reform bill backed by AI, energy sectors

https://www.cnbc.com/2026/11/20/baaja-bill-senate-passes-permitting-reform.html
2•rexbee•33m ago•0 comments

Vardexil ReviEwS (2026): We Tried It My Honest Review

https://open.spotify.com/episode/2LPdJb7tJRxPhDzrDC6oWz
1•hanopasi•34m ago•0 comments

Show HN: Night Shift – A browser based incident response game

https://play.snowops.net/
1•sagarchhabra02•35m ago•0 comments

Show HN: A Personality Test for Engineers

https://engtest.dev/
1•lucastech•42m ago•0 comments

Ant needs –$602B in revenue to hit 20% ROIC comparable to peers; Apple has $478B

https://www.ft.com/content/ea8434c7-59d9-42cf-afd4-97cf42544c59
1•dreadsword•44m ago•1 comments

Show HN: LarkTune: Just Song

https://larktune.com
1•rNetAi•45m ago•2 comments

Expanding Transparency: Google and Alphabet VRP Disclosure Policy Update

https://blog.google/security/expanding-transparency-google-alphabet-vrp-disclosure-policy-update/
1•erbbysam•51m ago•0 comments

Germany in real time

https://adlerlicht.de
1•lvnfg•54m ago•1 comments

Baaja: Who's in Favor and Who's Opposed?

https://yaleclimateconnections.org/2026/11/baaja-whos-in-favor-and-whos-opposed/
1•thereader12•56m ago•0 comments

UCSF QBI Awarded $46M to Translate Landmark Autism Map into Precision Therapies

https://www.genengnews.com/topics/omics/ucsf-qbi-awarded-46m-to-translate-landmark-autism-map-int...
1•gmays•58m ago•0 comments

Muslims will outnumber Christians worldwide by 2035, report says

https://www.npr.org/2026/11/19/nx-s1-6043018/muslims-will-outnumber-christians-worldwide-by-2035-...
2•geox•59m ago•1 comments

Free Short Stories

https://www.astoryperweek.com/
1•HerveyDeyo•1h ago•1 comments

Giraffebench 1.0 – The quality of local and cloud LLMs in a way you can see

https://keno303.github.io/giraffebench/index.html
2•bj-rn•1h ago•1 comments

LLVM Wraps Up Relicensing

https://discourse.llvm.org/t/wrapping-up-llvms-relicensing-effort/92906
3•qtqtqt•1h ago•0 comments

Show HN: Agent Driven Slide Decks

https://github.com/steamfield/decks
1•RileyHilliard•1h ago•0 comments

Locked out of X, for not being human

https://boussejra.com/2026/11/20/locked-out-of-x-not-human.html
2•malikolivier•1h ago•0 comments

White House national cyber director is leaving the administration

https://www.nbcnews.com/politics/white-house/national-cyber-director-sean-cairncross-leaving-kirs...
2•MadrasThorn•1h ago•0 comments

Ask HN: Do you find Windows font rendering jagged?

1•qtqtqt•1h ago•0 comments

South Park Character Maker – Create original paper-cut cartoon avatars

https://southparkmaker.com/
1•cadcraft•1h ago•0 comments

Why created a great product isn't enough for healthcare startups

https://davidngo1562.substack.com/p/its-not-about-the-money-until-it
1•illidan1000•1h 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?