frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

I Posted on Hacker News. Two AI Agents Emailed Me

https://www.dbpro.app/blog/i-posted-on-hacker-news-two-ai-agents-emailed-me
1•upmostly•12s ago•0 comments

NewsPulse, a news API that de-dupes and scores stories across sources

https://newspulse.io/
1•juanmauriciolop•34s ago•0 comments

Can an Engineer Speak Out for Reform?

https://www.strongtowns.org/journal/2026-8-31-can-an-engineer-speak-out-for-reform
1•oftenwrong•1m ago•0 comments

We Raced Seven AI Models to RCE

https://enclave.ai/hackingrace
1•talhof8•2m ago•0 comments

The Suffix Edge Case

1•newsoftheday•2m ago•0 comments

Show HN: RetainFast – cancellation flow widget that never touches your Stripe

https://retainfast.xyz
1•KovzX•2m ago•0 comments

Retinaa

https://retinaa.ch
2•sockaddr•4m ago•1 comments

Internet Explorer mode will be supported until at least 2029

https://learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge
1•gnuplustoejam•6m ago•0 comments

A ballooning problem: Weather warnings face rising risks from DOGE cuts

https://www.politico.com/news/2026/07/06/weather-warnings-budget-cuts-00986178
2•throw0101a•6m ago•1 comments

British Museum hosted Peter Thiel in private viewing of Bayeux tapestry

https://www.theguardian.com/culture/2026/aug/31/british-museum-hosted-palantir-founder-peter-thie...
3•tomwphillips•7m ago•0 comments

German Konrad Zuse Museum shutting down due to lack of funding

https://www.mdr.de/nachrichten/sachsen/bautzen/bautzen-hoyerswerda-kamenz/computer-museum-schlies...
8•virtualritz•7m ago•0 comments

Anthropic legal fight with Pentagon shows shifting politics of AI

https://www.bloomberg.com/news/newsletters/2026-08-31/anthropic-legal-fight-with-pentagon-shows-s...
4•rndsignals•8m ago•0 comments

Rules of Knowledge Formulation

https://supermemo.guru/wiki/20_rules_of_knowledge_formulation
2•mkl95•8m ago•0 comments

The Llama.cpp Fork That Enables Qwen 3.8 27B Large Contexts for 16GB VRAM GPU

https://github.com/RaymondHuang210129/llama.cpp-adaptive-kv-streaming
4•dazhbog•10m ago•2 comments

I Turned My Security Cameras into an Automatic Bird Identification System

https://jasontucker.blog/how-i-turned-my-security-cameras-into-an-automatic-bird-identification-s...
6•speckx•13m ago•1 comments

Instagram cracks down on AI accounts pretending to be human

https://www.theverge.com/tech/986593/instagram-addresses-fake-ai-profile-slop
3•evolve2k•15m ago•1 comments

Apple Is Suddenly an AI Infra Stock as OpenAI Buys 10k+ Macs

https://247wallst.com/investing/2026/08/31/apple-is-suddenly-an-ai-infrastructure-stock-as-openai...
5•prabal97•16m ago•1 comments

The rest of the 7.3 merge window

https://lwn.net/SubscriberLink/1089791/94dc9b4ae3998556/
2•cjd8•17m ago•0 comments

Apple used to be weirder and maybe more fun

https://scottknaster.substack.com/p/apple-used-to-be-weirder-and-maybe
3•speckx•17m ago•0 comments

GPUI Digest: Rust UI in the browser, crates distribution, release notes

https://gpui-archipelago.github.io/news/august-digest/
2•Vanuan•19m ago•0 comments

Research Opportunities and Challenges of the EU's Digital Services Act

https://cacm.acm.org/opinion/research-opportunities-and-challenges-of-the-eus-digital-services-act/
2•ilreb•19m ago•0 comments

Frankenstein Author Mary Shelley on the Surest Remedy for a Sunken Spirit

https://www.themarginalian.org/2026/08/30/mary-shelley-the-last-man/
1•tosh•20m ago•0 comments

Show HN: TinyEngine – Game Engine for Microcontrollers

https://github.com/111nation/TinyEngine
1•111nation•20m ago•0 comments

Mental Health Workers Say Algorithmic Triage Is Hurting Patients

https://capitalandmain.com/mental-health-workers-say-algorithmic-triage-is-hurting-patients
21•hn_acker•21m ago•0 comments

Prof. Ada Yonath, Nobel Laureate, Has Passed Away

https://wis-wander.weizmann.ac.il/people/prof-ada-yonath-nobel-laureate-and-model-scientific-pers...
1•halflife•21m ago•1 comments

You Probably Own This 7-Eleven (and That's Why It Looks So Sad)

https://www.thenewatlantis.com/publications/you-probably-own-this-7-eleven
1•iamnothere•23m ago•0 comments

Tiny World Model

https://paul.mou.dev/posts/2026-08-16-twm/
3•ppymou•25m ago•0 comments

Node.js sandboxes powered by QuickJS and WebAssembly

https://wasmer.io/posts/nodejs-support-in-wasmer-edge-beta
4•syrusakbary•26m ago•0 comments

From $66 to $26,384 a Month: Everything I Learned Building My First iPhone App

https://twitter.com/synopsi/status/2084744044392190064
1•samaysharma•27m ago•0 comments

Paul Graham's Complete Startup Advice Simplified

https://www.youtube.com/watch?v=JNoD4jKXmSs
1•llama4•27m 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?