frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Strategic Planning at the PSF

https://pyfound.blogspot.com/2026/05/strategic-planning-at-psf.html
1•lumpa•38s ago•0 comments

Shrinking the OxCaml JS_of_OCaml bundle: 285 MB to 4 MB

https://kcsrk.info/ocaml/oxcaml/modes/2026/05/10/shrinking-the-oxcaml-bundle/
1•ibobev•39s ago•0 comments

The Anti-Singularity

https://www.lesswrong.com/posts/k3XHZ4DjykLSfsnks/the-anti-singularity
1•gmays•44s ago•0 comments

Consensus on a MOQ Media Layer Player Framework Should Speed Market Adoption

https://www.red5.net/blog/consensus-on-a-moq-media-layer-player-framework/
1•mondainx•1m ago•0 comments

Why Deadlines Explode Stress

https://thegoodbusy.substack.com/p/why-deadlines-explode-stress
1•mooreds•1m ago•0 comments

Chrome's Silent Gemini Nano Download Has a Consent Problem

https://www.kylereddoch.me/blog/chromes-silent-gemini-nano-download-has-a-consent-problem/
1•speckx•2m ago•0 comments

First Impressions: NetBird

https://janlukas.blog/thoughts/2026/05/netbird
1•jlelse•3m ago•0 comments

GhostLock – Lockout Without Encryption

https://ghostlock.io/
1•happyopossum•3m ago•0 comments

The Cost of Overfitting the Harness

https://www.dbreunig.com/2026/05/10/overfitting-the-harness.html
1•Brajeshwar•6m ago•0 comments

Building AI skills like checklists

https://blog.lawrencejones.dev/building-ai-skills-like-checklists/
1•lawrjone•6m ago•0 comments

Texas sues Netflix for advertising 'bait and switch' and spying

https://www.theverge.com/streaming/928071/texas-netflix-lawsuit-privacy
1•droidjj•7m ago•0 comments

Pure Borrow: Linear Haskell Meets Rust-Style Borrowing

https://discourse.haskell.org/t/pure-borrow-linear-haskell-meets-rust-style-borrowing/13975
1•PaulHoule•7m ago•0 comments

Despite rise of AI is there still hope for EE's translators?

https://www.theguardian.com/technology/2026/may/08/being-human-helps-despite-rise-of-ai-is-there-...
1•speckx•9m ago•0 comments

Freeman Dyson's Model of a Cell

https://chillphysicsenjoyer.substack.com/p/freeman-dysons-model-of-a-cell
1•crescit_eundo•9m ago•0 comments

The Highest-Flying Repo Men Are Collecting Spirit Airlines' Jets

https://www.wsj.com/business/airlines/spirit-airlines-jets-liquidation-repo-men-5c44a46f
1•jbredeche•10m ago•0 comments

Why MistralAI Grows Faster Than OpenAI/Anthropic

https://productify.substack.com/p/why-mistralai-grows-faster-than-openaianthropic
1•gmays•11m ago•0 comments

Contra Kotler and Friston on 'the body keeps the score'

https://essays.debugyourpain.com/p/contra-kotler-friston-et-al-on-the
1•yichab0d•11m ago•0 comments

Podatek od narzędzi. Dlaczego serwery MCP pożerają Twój budżet na AI

https://jakubpradzynski.substack.com/p/podatek-od-narzedzi-dlaczego-serwery
1•jakubpradzynski•12m ago•0 comments

Rassvet, Russia's Answer to Starlink

https://www.wired.com/story/meet-rassvet-russias-answer-to-starlink/
1•smurda•12m ago•0 comments

Are old Java Developer Journals or Dr. Dobbs mags worth anything?

https://old.reddit.com/r/java/comments/1t3uqc7/are_old_java_developer_journals_or_dr_dobbs_mags/
1•theanonymousone•12m ago•0 comments

Wordle to Become Prime-Time TV Show, with Savannah Guthrie as Host

https://www.nytimes.com/2026/05/11/business/media/wordle-nbc-savannah-guthrie.html
1•apparent•12m ago•1 comments

The left-wing case for AI

https://www.seangoedecke.com/the-left-wing-case-for-ai/
1•rhazn•14m ago•0 comments

State of the Map 2027 – Call for Venues

https://blog.openstreetmap.org/2026/05/11/state-of-the-map-2027-call-for-venues-is-now-open/
1•rhazn•14m ago•0 comments

Build a Basic AI Agent from Scratch

https://www.ruxu.dev/articles/ai/build-a-basic-ai-agent/
1•ruxudev•16m ago•0 comments

Microsoft Israel chief leaves amid ethical controversy

https://en.globes.co.il/en/article-microsoft-israel-chief-leaves-amid-ethical-controversy-1001542602
1•bhouston•17m ago•0 comments

Porting 3D Movie Maker to Linux

https://benstoneonline.com/posts/porting-3d-movie-maker-to-linux/
2•speckx•18m ago•0 comments

AIQ Rank – a score for how AI-native your workflow is

https://www.aiqrank.com
2•grahac•18m ago•0 comments

Pull Request: Java language implementation of value classes and objects

https://github.com/openjdk/jdk/pull/31120
2•munksbeer•20m ago•0 comments

Ask HN: Agents for coding feels like a L2 automation system. Yay/Nay?

1•ak681443•20m ago•0 comments

PaidSync, Run Google/Meta/LinkedIn/TikTok Ads from Claude or ChatGPT

https://paidsync.ai/
1•ahmedashrav•23m ago•0 comments
Open in hackernews

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

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