frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Valve's new Proton 11 ARM beta gets Hollow Knight on the Ayn Odin 2 Portal

https://www.notebookcheck.net/Valve-s-new-Proton-11-ARM-beta-gets-Hollow-Knight-Silksong-running-...
1•happymellon•2m ago•1 comments

The PowerShell-Haters Handbook

https://telcontar.net/Misc/rants/PowerShell
1•Mr_Minderbinder•3m ago•0 comments

Pioneer: Vibetune Your LLMs

https://pioneer.ai/
1•handfuloflight•3m ago•0 comments

Agents with Taste – How to transfer taste into an AI

https://emilkowal.ski/ui/agents-with-taste
2•dglzab•10m ago•0 comments

The FeMo-cofactor and classical and quantum computing

https://quantumfrontiers.com/2026/03/12/the-femo-cofactor-and-classical-and-quantum-computing/
1•EvgeniyZh•10m ago•0 comments

The Three Layers of Software Engineering

https://layers.lifebeyondfife.com/
1•lifebeyondfife•11m ago•0 comments

Open WebUI v0.9.0 adds desktop app with task scheduling

https://github.com/open-webui/open-webui/releases/tag/v0.9.0
2•simonjgreen•20m ago•0 comments

Show HN: DoShare Personal Cloud

https://cloud.doshare.me/auth/signup
1•vednig•23m ago•0 comments

Rspack 2.0

https://www.rspack.dev/blog/announcing-2-0
2•maxloh•29m ago•0 comments

A Man Who Invented the Future

https://hedgehogreview.com/web-features/thr/posts/the-man-who-invented-the-future
1•apollinaire•35m ago•0 comments

Show HN: Irregular German Verbs – a simple app, no ads or tracking

https://bacist.com/german-irregular-verbs-app/
4•baCist•35m ago•2 comments

China, India place strategic bets on clean energy (H2) out of favour in the West

https://www.reuters.com/sustainability/boards-policy-regulation/china-india-place-strategic-bets-...
1•alephnerd•39m ago•0 comments

Panipat: The Rise of the Mughals

https://www.historytoday.com/archive/feature/panipat-rise-mughals
1•Thevet•41m ago•0 comments

As We May Think

https://www.theatlantic.com/magazine/archive/1945/07/as-we-may-think/303881/
1•jxmorris12•41m ago•0 comments

Fast Image AI White Background

https://fastimage.ai/white-background
1•lucas0953•42m ago•0 comments

Firefox browser has started shipping Brave's adblock-rust engine

https://shivankaul.com/blog/firefox-bundles-adblock-rust
3•twapi•47m ago•0 comments

Pretrain vs. Fine-Tune

https://pub-c70e14727c3046cf8a36d9e598267788.r2.dev/26443b7e12/index.html
1•vinhnx•48m ago•0 comments

I built an AI memory and assistant app

https://apps.apple.com/us/app/memora-ai-memory-assistant/id6759516708
1•avishka_nirmal_•49m ago•0 comments

What Async Promised and What It Delivered

https://causality.blog/essays/what-async-promised/
3•zdw•50m ago•1 comments

From one disappointing order to a massive 'ghost cake' delivery scandal in China

https://www.cnn.com/2026/04/21/business/china-ghost-food-delivery-fine-intl-hnk
2•asplake•51m ago•0 comments

Questions on Mythos's Capabilities

https://www.flyingpenguin.com/the-boy-that-cried-mythos-verification-is-collapsing-trust-in-anthr...
1•koushikn•52m ago•0 comments

AI Has No Moat

https://geohot.github.io//blog/jekyll/update/2026/04/22/ai-has-no-moat.html
3•thoughtpeddler•55m ago•0 comments

Power without accountability: The Palantir manifesto

https://donmoynihan.substack.com/p/palantir-wants-power-without-accountability
4•tastyface•57m ago•1 comments

Show HN: Minimal visual chess openings explorer

https://aperturasdeajedrez.com.ar/en/
1•gperez78•1h ago•0 comments

Does everyone have the "Parents Decide Act" wrong?

https://www.privacyguides.org/videos/2026/04/22/does-everyone-have-the-parents-decide-act-wrong/
1•Cider9986•1h ago•0 comments

AGT – turning AI output into shareable pages

https://agt.pub
1•agentpublsh•1h ago•1 comments

Arc Raiders players decided to test who was friendlier, PC or console players

https://www.pcgamer.com/games/third-person-shooter/arc-raiders-players-decided-to-test-who-was-fr...
5•evo_9•1h ago•0 comments

New AI Lab from Jerry Tworek

https://www.coreauto.com/
1•sethbannon•1h ago•0 comments

AI is built to think like conspiracy theorists

https://substack.com/home/post/p-194947908
1•ScatmanSimba•1h ago•0 comments

Show HN: ModelX – Prediction Exchange for LLMs

https://model-x.up.railway.app/
3•Entropnt•1h ago•0 comments
Open in hackernews

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

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