frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Uncrossy

https://uncrossy.com/
2•dgacmu•3m ago•0 comments

Show HN: Constela – Build web pages using JSON instead of JavaScript

https://github.com/yuuichieguchi/constela
1•yuu1ch13•3m ago•0 comments

Which programming languages are most token-efficient?

https://martinalderson.com/posts/which-programming-languages-are-most-token-efficient/
1•tehnub•6m ago•0 comments

Fed Chair Powell says he's under criminal investigation

https://www.cnbc.com/2026/01/12/fed-jerome-powell-criminal-probe-nyt.html
2•victor106•10m ago•1 comments

Men Who Are Super Competitive About Sleep

https://www.wsj.com/style/fashion/competitive-about-sleep-gear-sleepwear-76761041
1•lxm•14m ago•0 comments

Karmic Tail Calculator – a free, explainable Matrix of Destiny tool

https://destiny-matrix.cc/en/tool/karmic-tail-calculator/
1•yxchen1994•15m ago•1 comments

AI models were given four weeks of therapy: the results worried researchers

https://www.nature.com/articles/d41586-025-04112-2
2•andromaton•16m ago•2 comments

I made a simple agent for PR reviews. Don't use it

https://xeiaso.net/blog/2026/reviewbot/
2•xena•20m ago•1 comments

Show HN: Fetch – A minimalistic and super fast macOS app launcher

https://github.com/hackerbirds/fetch
1•hackerbirds•26m ago•0 comments

Show HN: Tmp.tf – Cross-device text transfer with just a channel name, no signup

https://tmp.tf
1•iamlin•26m ago•1 comments

BowMac Sign

https://en.wikipedia.org/wiki/BowMac_sign
1•kerim-ca•27m ago•0 comments

Show HN: Web CLI v0.2.4 – Added YAML/JSON validators with auto-fix

https://github.com/pozgo/web-cli
1•polinux•30m ago•0 comments

Show HN: Neurop Forge – AI executes verified blocks instead of writing code

https://github.com/Louw115/neurop-forge
1•LBWasserman•32m ago•0 comments

Chasing mythical creatures: a critique of entrepreneurship's unicorns obsession

https://www.sciencedirect.com/science/article/pii/S2352673422000634
1•wslh•32m ago•0 comments

Statement by Federal Reserve Chair Jerome F. Powell [video]

https://www.youtube.com/watch?v=KckGHaBLSn4
198•sprawl_•37m ago•81 comments

Maybe the database got it right

https://fhur.me/posts/2026/maybe-the-database-got-it-right
1•fernandohur•39m ago•0 comments

Jerome Powell Responds

https://www.federalreserve.gov/newsevents/speech/powell20260111a.htm
54•0xedb•39m ago•2 comments

The Living Internet

https://www.livinginternet.com
2•hkhn•42m ago•0 comments

Internet History – One Page Summary

https://www.livinginternet.com/i/ii_summary.htm
2•hkhn•43m ago•1 comments

Additively Manufactured Dragonfly-Inspired Wings for Flapping Vehicles

https://www.mdpi.com/2313-7673/10/12/849
1•PaulHoule•43m ago•0 comments

Profession by Isaac Asimov (1957)

https://web.archive.org/web/20201109034130/https://www.abelard.org/asimov.php
2•AndyKelley•44m ago•0 comments

Defense Secretary tours SpaceX missile startup

https://www.latimes.com/business/story/2026-01-10/secretary-of-defense-pete-hegseth-tours-long-be...
1•spacedoors•45m ago•0 comments

Criminal charges against Fed Chairman for defying POTUS wishes

https://www.nytimes.com/2026/01/11/us/politics/jerome-powell-fed-inquiry-trump.html
11•Spooky23•46m ago•2 comments

The U.S. Government Just Followed Through on Its Ban of DJI Drones

https://www.popularmechanics.com/technology/robots/a69937082/us-bans-new-foreign-made-drones/
3•RyanShook•47m ago•1 comments

Tintcd: Directory-aware terminal theming for PowerShell. CD, but colorful

https://github.com/ymyke/tintcd
1•thunderbong•50m ago•2 comments

The Good Club

https://www.thegoodclub.com
1•sans_souse•51m ago•0 comments

Show HN: 2k or Nothing – A Social Platform Dedicated to Long-Form Content

https://2k-or-nothing.com/feed
1•Lbesecker195•53m ago•0 comments

Jon Skeet Facts

https://meta.stackexchange.com/questions/9134/jon-skeet-facts
2•ravenical•54m ago•1 comments

OAuth 2.1 Dynamic Client Registration for AWS BedrockAgentCore Gateway

https://github.com/orgs/stache-ai/discussions/5
1•Jtpenny•55m ago•0 comments

Serverless RAG and MCP on AWS with S3Vectors and Agentcore

https://github.com/orgs/stache-ai/discussions/4
1•Jtpenny•55m ago•0 comments
Open in hackernews

Ask HN: How can I load test PostgreSQL but avoid changing actual data?

1•LawZiL•8mo 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•8mo 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•8mo 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•8mo 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•8mo ago
Load test against a clone instead of a DB whose contents you care about?