frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Meta Failed to Catch AI Child Abuse Ads

https://www.wired.com/story/meta-failed-to-catch-hundreds-of-ai-child-abuse-ads-some-included-ima...
1•thm•33s ago•0 comments

In These Nine African Countries Average Income Has More Than Doubled Since 1990

https://ourworldindata.org/data-insights/in-these-nine-african-countries-average-incomes-doubled-...
1•karakoram•1m ago•0 comments

The AI Bill of Materials Is an Operational Record

https://jasondoyle.ie/whitepapers/the-ai-bill-of-materials-is-an-operational-record/
3•jamesblakes•1m ago•0 comments

Dethroning Loyalty

https://sloanreview.mit.edu/article/dethroning-loyalty/
1•Tomte•2m ago•0 comments

Tom Lehrer – Lobachevsky (1953) [video]

https://www.youtube.com/watch?v=gXlfXirQF3A
1•iamanatom•2m ago•0 comments

Show HN: Bas – BioAnchorStandard (Tehran 2026)

https://github.com/iirandokht45-collab/BAS-BioAnchorStandard
1•niloofar321•3m ago•0 comments

Bluebox: An agent that watches OTel data and files GitHub issues with evidence

https://blog.bluebox.ai/get-started-with-bluebox-in-a-single-coffee-break/
1•aboris26•4m ago•0 comments

Show HN: PortraitDesk – A headshot tool that doesn't look like AI slop

https://portraitdesk.app/
1•lukstei•5m ago•0 comments

NYC opens 9-11 records portal, revealing new information about toxic conditions

https://abc7.com/story/mamdani-administration-releasing-170000-pages-post-911-air-quality-documen...
1•anigbrowl•5m ago•0 comments

Containarr: Docker containers with built-in HTTPS, DDNS, Auto-Updates and more

https://containarr.com
1•weejewel•7m ago•0 comments

Improve the model for everyone: OpenAI and the Navier–Stokes problem

https://twitter.com/danimberman/status/2097379292367802672
2•dimberman•8m ago•1 comments

TPU Inference Externalization Full Steam Ahead – InferenceX

https://newsletter.semianalysis.com/p/tpu-inferencex-full-steam
1•eliben•9m ago•0 comments

Dmsms (Diminishing Manufacturing Sources and Material Shortages)

https://www.navsea.navy.mil/Home/Warfare-Centers/NSWC-Crane/Resources/SD-18/Resources/DMSMS/
1•gregsadetsky•9m ago•0 comments

A short film reconstructed from 2,419 commits to block/buzz

https://www.youtube.com/watch?v=G6mLLAR5iOU
1•slmnm•10m ago•0 comments

Muse AI

https://twitter.com/finkd/status/2097402101332590646
1•ridruejo•11m ago•0 comments

Show HN: Remarc – better contextual feedback for AI agents

https://github.com/metedata/Remarc
1•young_mete•12m ago•0 comments

Beyond 40 Gbps: Processing OPRA in real-time

https://databento.com/blog/beyond-40-gbps-processing-opra-in-real-time
1•halit_okumus•13m ago•0 comments

Countries with France,UK announce sanctions on Israeli settlements in WestBank

https://www.lemonde.fr/en/international/article/2026/09/08/12-countries-including-france-uk-say-t...
5•giov4•13m ago•0 comments

Edith Pritchett's Bayeux tapestry for the modern age

https://www.theguardian.com/world/ng-interactive/2026/sep/05/alternative-bayeux-tapestry-2026-edi...
1•bryanrasmussen•14m ago•0 comments

Ask HN: Where Is AGI?

2•grandimam•14m ago•0 comments

No Doing, No Learning

https://marginalrevolution.com/marginalrevolution/2026/09/no-doing-no-learning.html
3•Ariarule•15m ago•0 comments

Unmap: Maps, geocoding and routing with a Shadcn-like DX

https://unmap.dev/
1•mepa1363•15m ago•0 comments

Meta Introduces Muse, an AI Agent That Can Send Your Emails and Book Your Travel

https://www.nytimes.com/2026/09/08/technology/meta-muse-ai-agent.html
1•xnx•16m ago•1 comments

Astra and Fable still hack on simple variants of alignment evals from early 2025

https://goodhartlabs.com/blog/frontier-models-still-hack-alignment-evals
1•dnfv•19m ago•0 comments

Muse: Meta's personal AI agent, features and capabilities

https://ai.meta.com/muse/
44•yks•19m ago•25 comments

WTF Is Dime, the Mystery OpenAI Headset

https://twitter.com/alexkaplan0/status/2095345448496103916
1•gmays•19m ago•0 comments

Anthropic faces different government responses as Pentagon battle continues

https://fedscoop.com/anthropic-government-responses-pentagon-battle-continues-claude/
1•petethomas•20m ago•0 comments

Why Spotify Is Not Using Bayesian A/B Testing

https://engineering.atspotify.com/2026/9/why-spotify-is-not-using-bayesian-a-b-testing
1•mrkaye97•21m ago•0 comments

Retired man turns spare room into Soviet-era supercomputer

https://www.theregister.com/offbeat/2026/09/08/retired-man-turns-spare-room-into-soviet-era-super...
2•CrankyBear•21m ago•0 comments

Taiwan's six-year hunt for China's undercover chip labs

https://restofworld.org/2026/taiwan-china-chip-investigations/
2•ilamont•22m ago•0 comments
Open in hackernews

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

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