frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Coding Agents Are Outliers

https://vivekhaldar.com/articles/coding-agents-are-outliers/
1•gandalfgeek•34s ago•0 comments

Negotiation Skills Training for Adolescent Girls in Zambia

https://www.nber.org/papers/w34339
1•mohi-kalantari•55s ago•0 comments

Ya no vendo informacion fiscal

1•Ocymandiasxd•1m ago•0 comments

I Don't Want to Be a Ping-Pong Ball Anymore

https://www.tristanisham.com/blog/i-dont-want-to-be-a-ping-pong-ball-anymore/
1•Atalocke•2m ago•0 comments

InovaTrust – Help a Brother Out

https://www.inovatrust.net/i/2cb3njjta6mdc1zizu8jq
1•investmentpro•2m ago•1 comments

We Built FridayAI: Founders Need Their Time Back

https://www.forcivate.com/blog/why-we-built-fridayai
1•nairabatoyan•2m ago•1 comments

Show HN: My small tool blew up unexpectedly

https://kaicbento.substack.com/p/what-happens-when-your-open-source
1•kaicbento•2m ago•0 comments

Tremulous an open source quake3 based RTS/FPS game ported to the web

https://www.tremulous.online
1•justinl1996•3m ago•0 comments

How to Guess a Gradient

https://arxiv.org/abs/2312.04709
1•tbruckner•5m ago•0 comments

Built a LangChain App for a Startup, Here's What Mattered

https://old.reddit.com/r/LangChain/comments/1pgyc1t/built_a_langchain_app_for_a_startup_heres_what/
1•ethanpil•7m ago•0 comments

Show HN: Monetizing an API using private keys

https://img.arible.co
1•sim04ful•8m ago•0 comments

A welcome pit stop: the US college using parking lots to help unhoused students

https://www.theguardian.com/education/2025/dec/09/us-university-student-homelessness-solutions
1•mitchbob•13m ago•0 comments

Show HN: DocNode, A TypeScript OT library for local-first apps

https://github.com/docnode/docnode
1•GermanJablo•13m ago•0 comments

FDA to probe whether adult deaths linked to coronavirus vaccine

https://www.washingtonpost.com/health/2025/12/09/vaccine-covid-coronavirus-safety-fda/
2•bookofjoe•16m ago•1 comments

Whatever Happened to NFTs?

https://ritholtz.com/2025/12/what-happened-nfts/
4•zdw•18m ago•0 comments

Show HN: We built a no-logs cloud provider where users are just a 32-char token

https://servury.com/blog/behind-the-firewall-our-journey-to-a-no-logs-no-compromise-platform/
2•ybceo•20m ago•0 comments

Binary Range Expressions

https://www.proxylity.com/docs/destinations/brex-syntax.html
2•mlhpdx•24m ago•0 comments

The Politics of Superintelligence

https://www.noemamag.com/the-politics-of-superintelligence/
1•runningmike•25m ago•0 comments

Running boosts dopamine,coordination in aging mice, poss relevance to Parkinsons

https://medicalxpress.com/news/2025-12-boosts-dopamine-aging-mice-potential.html
3•bikenaga•27m ago•1 comments

America Has Become a Digital Narco-State - Paul Krugman

https://paulkrugman.substack.com/p/america-has-become-a-digital-narco_id
5•nemoniac•28m ago•1 comments

A Simple Proof of the Riemann Hypothesis

https://arxiv.org/abs/2209.01890
1•thatxliner•31m ago•0 comments

Don't Trust, Verify: Building End-to-End Confidential Applications on GCP

https://developers.googleblog.com/dont-trust-verify-building-end-to-end-confidential-applications...
2•tiziano88•31m ago•0 comments

Americans are holding onto devices longer than ever and it's costing the economy

https://www.cnbc.com/2025/11/23/how-device-hoarding-by-americans-is-costing-economy.html
2•pickledonions49•34m ago•5 comments

Operating System AI Agent versus Foundation Model AI Agent

https://www.wreflection.com/p/software-gets-a-new-layer
1•nowflux•34m ago•0 comments

10 Years of Let's Encrypt Certificates

https://letsencrypt.org/2025/12/09/10-years.html
2•todsacerdoti•35m ago•1 comments

Kent L Beck: You're Ignoring Optionality and Paying for It [audio]

https://maintainable.fm/episodes/kent-l-beck-youre-ignoring-optionality-and-paying-for-it
1•mooreds•39m ago•0 comments

Playing Santa Does Strange Things to a Man

https://www.esquire.com/lifestyle/a69597294/santaland-bob-rutan/
1•NaOH•40m ago•0 comments

NeurIPS 2025 Top Paper Breakdown: LLMs Are Collapsing into Artificial Hivemind

https://interviewready.io/blog/neurips-2025-top-paper-breakdown-llms-are-collapsing-into-an-artif...
3•smurda•40m ago•0 comments

RAM Is Ruining Everything

https://www.theverge.com/report/839506/ram-shortage-price-increases-pc-gaming-smartphones
3•ajdude•41m ago•1 comments

No more tokens Locking down NPM Publish Workflows

https://www.zachleat.com/web/npm-security/
1•gregwolanski•42m ago•0 comments
Open in hackernews

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

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