frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

I Am Not a Functional Programmer

https://blog.daniel-beskin.com/2026-01-28-i-am-not-a-functional-programmer
1•birdculture•2m ago•0 comments

Sam Altman: I wonder why Anthropic would go for something so clearly dishonest

https://twitter.com/sama/status/2019139174339928189
1•doener•3m ago•1 comments

METR estimates that GPT-5.2 has a 50%-time-horizon of around 6.6 hrs

https://twitter.com/METR_Evals/status/2019169900317798857
1•tedsanders•3m ago•0 comments

Epistemological Fault Lines Between Human and Artificial Intelligence

https://arxiv.org/abs/2512.19466
1•DyslexicAtheist•5m ago•0 comments

Debian's Challenge When Its Developers Drift Away

https://www.phoronix.com/news/Debian-Developers-Quiet-Away
2•cuechan•7m ago•0 comments

I was just laid off by The Washington Post in the middle of a warzone

https://twitter.com/lizziejohnsonnn/status/2019083204133609846
3•doener•8m ago•0 comments

Anthropic Ad

https://twitter.com/Grantblocmates/status/2019093077936497031
2•doener•9m ago•1 comments

Building Reliable AI Infrastructure: What We Learned Scaling AI Visibility

https://amplitude.com/blog/scaling-ai-visibility
1•linksku•9m ago•0 comments

Show HN: Cradle Log – Free offline baby tracker with voice logging, AI insights

https://www.getcradlelog.com/
1•jack_burrr•10m ago•0 comments

An FPS built with Svelte, Threlte and Claude Opus built in just 2 hours

https://www.mr-spankys-meatballs.com
1•paulbjensen•11m ago•0 comments

Pinterest sacks two engineers for creating software to identify fired workers

https://www.theguardian.com/technology/2026/feb/04/pinterest-sacks-two-engineers-for-software-ide...
2•erehweb•13m ago•0 comments

Show HN: Cohesix 0.4.0-alpha, a no-std control-plane OS

https://github.com/lukeb-aidev/cohesix
2•Cohesix•15m ago•0 comments

Show HN: We simulated 10K freelancers deciding to work for AI agents

1•Mert_Predicts•16m ago•0 comments

Open-source AI tool beats LLMs in literature reviews – and gets citations right

https://www.nature.com/articles/d41586-026-00347-9
2•sohkamyung•17m ago•0 comments

Former Prime Ministers Harper and Chrétien Discuss Canada and the World [video]

https://www.youtube.com/watch?v=jhCacENdj7U
1•thomassmith65•18m ago•0 comments

Japan's Tourism Challenges: Declining Visitors and Shifting Trends in 2026

https://www.travelandtourworld.com/news/article/japans-tourism-challenges-declining-visitors-and-...
2•mikhael•19m ago•0 comments

AI and Higher Ed: An Impending Collapse

https://www.insidehighered.com/opinion/views/2025/07/24/ai-and-higher-ed-impending-collapse-opinion
1•talon8635•20m ago•0 comments

Ask HN: Where does operational truth live before it reaches "systems of record"?

2•former-aws•20m ago•0 comments

Show HN: LayerClaw – Observability tool for PyTorch training

2•prabhavsanga•20m ago•0 comments

"Grok, Is This True?" Analyzing LLM-Powered Fact-Checking on Social Media

https://osf.io/preprints/psyarxiv/85quw_v2
2•ytpete•22m ago•1 comments

Fast Autoscheduling for Sparse ML Frameworks

https://ajroot.pl/cgo2026scorch.html
1•matt_d•23m ago•0 comments

Show HN: WhookTown – Visualize your infrastructure as a 3D cyberpunk city

https://www.whook.town/
1•fralix•23m ago•0 comments

You don't want a faster Notion

https://outcrop.app/blog/speed
1•imedadel•24m ago•0 comments

AWS says you're on your own if media codec patent owners come knocking

https://www.theregister.com/2026/02/04/aws_codec_patent_holders/
2•ffworld•24m ago•1 comments

Show HN: BederSnake Revolution: Snake+Sokoban+Match3 puzzle with MLsolvable lvls

https://bedersnake.itch.io/bedersnake-revolution
2•avtomatron•25m ago•0 comments

Why Most of America Is Terrible at Making Biscuits (2018)

https://www.theatlantic.com/health/archive/2018/11/better-biscuits-south-thanksgiving/576526/
3•Mernit•26m ago•1 comments

Everything We Teach at Y Combinator in 10 Minutes [video]

https://www.youtube.com/watch?v=Pg72m3CjuK4
2•Brysonbw•29m ago•0 comments

Apple Beats Tech Stocks by Most in a Year as It Avoids AI Panic

https://finance.yahoo.com/news/apple-beats-tech-stocks-most-174832890.html
1•wslh•31m ago•0 comments

Show HN: I stopped trying to sleep on long-haul flights

https://www.flight-ready.online/
1•Zaleo•32m ago•2 comments

Portugal ruling party MPs seek social media ban for teens

https://macaubusiness.com/portugal-ruling-party-mps-seek-social-media-ban-for-teens/
1•belter•33m 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?