frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Anthropic CEO calls OpenAI's messaging around military deal 'straight up lies'

https://techcrunch.com/2026/03/04/anthropic-ceo-dario-amodei-calls-openais-messaging-around-milit...
2•SilverElfin•3m ago•0 comments

Jeffrey Epstein: The Transhumanist Pedophile Who Hoped to Live Forever

https://www.truthdig.com/articles/jeffrey-epstein-the-transhumanist-pedophile-who-hoped-to-live-f...
1•cdrnsf•4m ago•0 comments

Apparently chardet got Claude to rewrite the codebase from LGPL to MIT

https://chaos.social/@Foxboron/116170859737134271
1•gaius_baltar•5m ago•0 comments

Pike – Solving the "should we stop here or gamble on the next exit" problem

https://tomjohnell.com/pike-solving-the-should-we-stop-here-or-gamble-on-the-next-exit-problem/
1•tjohnell•7m ago•1 comments

Gemini 3.1 Flash-Lite

https://twitter.com/GoogleDeepMind/status/2028872381477929185
1•pat2man•9m ago•0 comments

Altman admits OpenAI can't control Pentagon's use of AI

https://www.theguardian.com/technology/2026/mar/04/sam-altman-openai-pentagon
2•albumen•9m ago•0 comments

European pensions are a $30T missed opportunity

https://www.economist.com/finance-and-economics/2026/03/04/european-pensions-are-a-30trn-missed-o...
1•vinni2•12m ago•0 comments

JSE: A Structural Expression Protocol for AI Agents

1•mars_liu•12m ago•0 comments

Unveiling the Weaponized Web Shell EncystPHP

https://www.fortinet.com/blog/threat-research/unveiling-the-weaponized-web-shell-encystphp
1•WeaklingOra•13m ago•0 comments

Extending single-minus amplitudes to gravitons

https://openai.com/index/extending-single-minus-amplitudes-to-gravitons/
2•telotortium•13m ago•0 comments

Show HN: Residuum | Agentic AI with continuous context

https://github.com/Grizzly-Endeavors/residuum
1•BearFlinn•13m ago•0 comments

Platform Designed for Motorists and Law Enforcement for Safety

https://www.traafik.com/
1•fcpguru•14m ago•0 comments

Rules for Pricing Client Engagements

https://b2bs.substack.com/p/op-note-3-rules-for-pricing-client
1•ohjeez•18m ago•0 comments

TakeoutReader – Turn your Google Takeout JSON into a readable report

1•martinZak•19m ago•1 comments

Show HN: One provider starts lying at request 50. The quorum catches it

https://github.com/sbw70/verification-constraints/blob/main/modules/integrated-constraint-demos/t...
1•sbw70•20m ago•0 comments

Roundup of Events for Bootstrappers in March 2026

https://bootstrappersbreakfast.com/2026/02/24/roundup-of-march-bootstrapper-events/
1•skmurphy•22m ago•1 comments

How Jeffrey Epstein Used Reid Hoffman to Court Silicon Valley's Elite

https://www.bloomberg.com/news/articles/2026-03-04/how-jeffrey-epstein-used-reid-hoffman-to-court...
6•petethomas•22m ago•1 comments

Stathat Is Shutting Down

3•jervant•24m ago•0 comments

Show HN: RustyRAG lowest-latency open-source RAG on GitHub

https://github.com/AlphaCorp-AI/RustyRAG
1•zer0tokens•26m ago•0 comments

Senate fails to block US involvement in Iran war

https://www.usatoday.com/story/news/politics/2026/03/04/iran-war-powers-resolution-senate-vote/88...
4•geox•27m ago•0 comments

OpenAI, Anthropic turn to consultants to fight over the enterprise market

https://www.businessinsider.com/openai-and-anthropic-using-consultants-to-fight-enterprise-battle...
1•wavelander•27m ago•0 comments

Wgsl-Rs

https://renderling.xyz/articles/introducing-wgsl-rs.html
3•efnx•28m ago•0 comments

Show HN: MoatRadar – AI investment research through Warren Buffett's principles

https://www.moatradar.com/?promo=HACKERNEWS
1•chodelka•28m ago•0 comments

Show HN: I built CLI for developer docs locally working with any Coding Agent

https://github.com/lifez/docsearch
2•lifez•29m ago•0 comments

Luckin Coffee Backer Centurium in Advanced Talks for Nestle's Blue Bottle

https://www.businesstimes.com.sg/companies-markets/consumer-healthcare/luckin-coffee-backer-centu...
2•doppp•31m ago•0 comments

The Training Data Paradox

https://www.ivanturkovic.com/2026/03/01/training-data-paradox-ai-replacing-engineers-who-trained-it/
1•fmkamchatka•31m ago•0 comments

The US is using repurposed Iranian drone technology to attack Iran

https://theconversation.com/the-us-is-using-repurposed-iranian-drone-technology-to-attack-iran-a-...
2•mosura•33m ago•0 comments

Show HN: Potatoverse, home for your vibecoded apps

https://github.com/blue-monads/potatoverse
5•born-jre•33m ago•1 comments

Determinate is the future of Nix today: Wasm, provenance, and flake schemas

https://determinate.systems/blog/determinate-nix-future/
2•biggestlou•34m ago•0 comments

Neither Android nor iOS: DIY Smartphone Runs on ESP32

https://hackaday.com/2026/03/04/neither-android-nor-ios-diy-smartphone-runs-on-esp32/
3•HardwareLust•35m ago•0 comments
Open in hackernews

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

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