frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

IETF draft and Rust POC: NTP for Bitcoin price (no oracles)

https://github.com/CryptoPriceProtocol/BitCoinPriceProtocol
1•usacoder•34s ago•0 comments

UK Parliament e-petition Debate: Do not introduce Digital ID cards

https://hansard.parliament.uk/Commons/2025-12-08/debates/9E01F17C-557A-4D02-8A93-B573721B8B20/a
1•mapleoin•1m ago•0 comments

Former Mozaic Payments CEO arrested, charged with defrauding PE investor

https://www.reuters.com/legal/government/tech-startup-ceo-defrauded-private-equity-firm-out-20-mi...
1•ilamont•2m ago•0 comments

Show HN: Peaktech PSU Control from Emacs

https://github.com/bwachter/peaktech-psu
1•finaard•4m ago•0 comments

BJH OS – Free Open Source Browser OS for Windows, Mac, Linux, Android, iPhone

https://bjhos.unaux.com
1•Haris18•4m ago•0 comments

Fix for Slow Open and Save Dialog on macOS

https://rknight.me/blog/fix-for-slow-open-and-save-dialog-macos/
1•rknightuk•6m ago•0 comments

Steam Workshop Downloader – Fast and Free Tool

https://steamworkshopdownloader.net
2•quchao•10m ago•2 comments

Show HN: A really really simple text-based budget app

https://github.com/alexandreprl/budget-as-a-text
1•Eagle64•11m ago•0 comments

OpenAI, Anthropic, and Block donate agent tools to new 'Agentic AI Foundation'

https://techoreon.com/openai-anthropic-block-agentic-ai-foundation-linux/
1•GeorgeWoff25•15m ago•0 comments

Common Lisp, ASDF, and Quicklisp: packaging explained

https://cdegroot.com/programming/commonlisp/2025/11/26/cl-ql-asdf.html
2•todsacerdoti•15m ago•0 comments

Show HN: Voice and Messaging Agents Using the WhatsApp Calling API

https://www.livetok.ai
1•gustavogb•15m ago•0 comments

Scientists Thought Parkinson's Was in Our Genes. It Might Be in the Water

https://www.wired.com/story/scientists-thought-parkinsons-was-in-our-genes-it-might-be-in-the-water/
2•quapster•18m ago•1 comments

Nissan and Wayve Sign Agreements to Deliver Next-Generation Driver Assistance

https://wayve.ai/press/nissan-wayve-sign-definitive-agreements/
1•anonymooooos•20m ago•0 comments

U.S. plans to ask visitors to disclose 5 years of social media history

https://www.washingtonpost.com/immigration/2025/12/10/esta-social-media-united-states/
3•cm2187•23m ago•0 comments

Health premiums rose nearly 3x rate of worker earnings over the past 25 years

https://theconversation.com/health-insurance-premiums-rose-nearly-3x-the-rate-of-worker-earnings-...
1•pseudolus•26m ago•0 comments

Show HN: Vibecc – Write code in natural language and compile to a C binary

https://github.com/Jacques2Marais/vibecc
1•Jacques2Marais•27m ago•0 comments

"I Wasted 8 Years in Crypto": A Builder's Exit Note Goes Viral Across Asia

https://beincrypto.com/i-wasted-8-years-in-crypto/
1•decimalenough•28m ago•0 comments

E-petition debate relating to digital ID – Monday 8 December 2025

https://news.ycombinator.com/
1•hhdave•30m ago•1 comments

Recent Travel News

https://wowfare.com/en-us/blog/pegasus-airlines-launches-direct-istanbul-bilbao-flights/
1•belatwing•30m ago•0 comments

NPM.watch: Track NPM Downloads, Package Safety and Live Stats

https://www.npm.watch
2•Next-Icons•31m ago•1 comments

Show HN: Deploy Kubernetes apps with RunOS, free to use

https://runos.com/blog/runos-open-to-everyone.html
1•didierbreedt•33m ago•0 comments

OVH Public Cloud Database Outage "resolved"

https://public-cloud.status-ovhcloud.com/incidents/4gd0bgz7zm2j
1•voodooEntity•33m ago•1 comments

Nanoparticles that enhance mRNA delivery could reduce vaccine dosage and costs

https://phys.org/news/2025-11-nanoparticles-mrna-delivery-vaccine-dosage.html
1•PaulHoule•33m ago•0 comments

Letting Nvidia sell H200s to China is closing the door after horse has bolted

https://www.theregister.com/2025/12/09/nvidia_h200s_china_ai/
1•pseudolus•34m ago•0 comments

I built an AI that reads your Git history and writes status reports

1•slmslm•34m ago•1 comments

AI will make formal verification go mainstream

https://martin.kleppmann.com/2025/12/08/ai-formal-verification.html
3•mau•41m ago•0 comments

Webb identifies earliest supernova to date, shows host galaxy

https://esawebb.org/news/weic2523/
1•doener•42m ago•0 comments

Local news organizations discover the value of their own archives

https://www.niemanlab.org/2025/12/local-news-organizations-discover-the-value-of-their-own-archives/
2•giuliomagnifico•44m ago•1 comments

Show HN: Sift – Turning chore into a hyper-personalized, immersive journey

https://sift-11a.pages.dev/
1•paperplaneflyr•44m ago•0 comments

Human art in a post-AI world should be strange

https://www.owlposting.com/p/art-in-a-post-ai-world-should-be
2•sebg•45m 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?