frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Free Dictionary API – Wiktionary data, no API key required

https://api.suvankar.cc/docs/dictionary
1•suvankar_m•2m ago•0 comments

Twelve Principles of Documentation

https://vurt.org/articles/principles-documentation/
1•ankitg12•3m ago•0 comments

Illiac IV

https://en.wikipedia.org/wiki/ILLIAC_IV
1•num42•3m ago•0 comments

Not Everything Needs an LLM

https://posthog.com/newsletter/decision-models
2•eigenBasis•8m ago•1 comments

The social fallout of working alongside an office workaholic

https://www.psypost.org/the-social-fallout-of-working-alongside-an-office-workaholic/
1•rohanm93•10m ago•0 comments

The Global Interface of Connectivity: How Connection Became an Interface

https://medium.com/@smoking2man/the-global-interface-of-connectivity-how-connection-became-an-int...
1•Aldus551•10m ago•0 comments

A 27-byte telemetry response nobody reads freezes Claude Desktop every two days

https://blog.dfb.sh/blog/claude-desktop-freeze/
1•brandon_bot•12m ago•0 comments

AI Productivity Gains Mainly Benefit People at the Top

https://nelson.cloud/ai-productivity-gains-mainly-benefit-people-at-the-top/
1•nelsonfigueroa•13m ago•0 comments

Every Flight Is Grounded on Day Trump Admin Installed AI Controls

https://www.thedailybeast.com/faa-abruptly-grounds-all-flights-for-first-time-since-911
2•madihaa•14m ago•0 comments

After 26 years, the US has lost its measles elimination status

https://www.cnn.com/2026/11/13/health/us-measles-elimination-status
1•madihaa•16m ago•0 comments

Why C# over C for Systems Programming

https://github.com/OnurGumus/bflat_test
1•reverseblade2•17m ago•0 comments

Windows 11's modern Run box arrives in December. Nobody clicked Browse button

https://www.windowslatest.com/2026/11/14/windows-11s-modern-run-box-arrives-for-everyone-in-decem...
1•thunderbong•22m ago•0 comments

Borland C++ 2.0 Compiler Source Reconstructed

https://hackaday.com/2026/11/13/borland-c-2-0-compiler-source-reconstructed/
1•fork-bomber•23m ago•0 comments

Show HN: VPN Manager

https://github.com/DennySORA/vpn-manager
1•dennysora-main•25m ago•0 comments

Anatomy of a Git pre-commit Hook

https://georgestocker.com/2019/10/31/anatomy-of-a-git-pre-commit-hook/
1•ankitg12•27m ago•0 comments

Firefox Focus

https://www.firefox.com/en-US/mobile/focus/
1•appwiz•38m ago•0 comments

Ode for Trump

https://salmagundi.skidmore.edu/articles/2034-ode-for-trump
2•classified•42m ago•0 comments

FAA TDM-to-IP Migration (2015) [pdf]

https://www.faa.gov/sites/faa.gov/files/air_traffic/technology/cinp/fens/tdm-to-ip_migration_2015...
1•gr33nq•45m ago•0 comments

Old tech blamed for the ground stop that caused flight chaos: It got overloaded

https://www.npr.org/2026/11/13/nx-s1-6040403/faa-nationwide-groundstop-airports
3•geox•46m ago•0 comments

ShieldFont – Protect human muffins by poisoning unauthorized AI starfish

https://shieldfont.org/
2•negura•50m ago•0 comments

Will Anthropic Grow into Its Compute Bill?

https://twitter.com/OrnnExchange/status/2119839768355778637
1•gmays•50m ago•0 comments

Businesses suffering a loss from Microsoft outage could make insurance claim

https://www.rnz.co.nz/news/business/2593252/businesses-suffering-a-loss-from-microsoft-outage-cou...
3•billybuckwheat•51m ago•0 comments

Formal Verification Is Not Verifiable: Bouba and Kiki Software

https://alperenkeles.com/posts/formal-verification-is-not-verifiable/
1•matt_d•56m ago•1 comments

Kim, Claude and Yaht-C

https://www.engineersneedart.com/blog/yahtc/yahtc.html
1•chmaynard•56m ago•0 comments

Israeli airstrike on Nasser hospital in Gaza killed surgeon and others

https://www.theguardian.com/world/2026/nov/12/israeli-airstrike-nasser-hospital-gaza-kills-surgeon
4•0x54MUR41•1h ago•0 comments

Need a guy to make short form videos

https://www.facebook.com/p/Alina-James-61593204405007/
1•yoursocialguyra•1h ago•0 comments

Air traffic control modernization effort needs (Sep 14, 2026)

https://files.gao.gov/reports/GAO-26-107992/index.html?pubDate=20260922&utm_source=chatgpt.com
2•giuliomagnifico•1h ago•0 comments

Workday Down for thousands of Companies

https://www.sfchronicle.com/tech/article/workday-outage-employees-accounts-22529939.php
4•Madmallard•1h ago•1 comments

Transforming Ripgrep's Documentation with AI Automation and MkDocs

https://entropicdrift.com/blog/mkdocs-drift-automation/
2•ankitg12•1h ago•0 comments

I Built a $300 Robot Hand With 18 Motors [video]

https://www.youtube.com/watch?v=Sk0x-xMNQks
4•olalonde•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?