frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Toolchain Horizons: Exploring Rust Dependency-Toolchain Compatibility

https://tigerbeetle.com/blog/2026-04-24-toolchain-horizons/
1•ibobev•6s ago•0 comments

The predictable failure of the QDay Prize

https://algassert.com/post/2601
1•firefly284•12s ago•0 comments

Staying a Spell with the Exidy Sorcerer

https://bumbershootsoft.wordpress.com/2026/04/25/staying-a-spell-with-the-exidy-sorcerer/
1•ibobev•45s ago•0 comments

A weekend with LoRA on Gemma 4 E2B: instrumenting what fine-tuning changes

https://aiexplr.com/post/fine-tuning-5b-code-assistant-three-lessons
1•mailharishin•1m ago•0 comments

New robotic control software avoids jamming their joints

https://arstechnica.com/science/2026/04/kinematic-intelligence-helps-robots-learn-their-limits/
1•Brajeshwar•3m ago•0 comments

The West forgot how to make things, now it's forgetting how to code

https://conduit.arewefriends.org/s/the-west-forgot-how-to-make-things-now-its-forgetting-how-to-8...
1•01-_-•3m ago•0 comments

The Visible Zorker: Zork 1

https://eblong.com/infocom/visi/zork1/
2•PLenz•3m ago•0 comments

One last trip to the internet in 2009 with The Rough Guide 14

https://www.planetjones.net/blog/19-04-2026/one-last-trip-to-the-internet-in-2009-with-the-rough-...
1•planetjones•4m ago•0 comments

I worked just as hard, failed just as hard–then saw it was rigged

https://comuniq.xyz/post?t=996
1•01-_-•5m ago•0 comments

pvlib: Open-source Python library for solar power modeling

https://github.com/pvlib/pvlib-python
1•ep_jhu•7m ago•0 comments

Invincat – terminal AI coding agent with tiered, auditable long-term memory

https://github.com/dog-qiuqiu/invincat
1•qiuqiu123•8m ago•0 comments

MCP Server and CLI for Accessing Work IQ

https://github.com/microsoft/work-iq
2•saikatsg•8m ago•0 comments

IMaySellIt – A marketplace where every listing is offer-only

https://imaysellit.com/
2•imaysellit•12m ago•1 comments

Mali's Tuareg rebels announce deal for Russian Africa Corps withdrawal

https://www.france24.com/en/africa/20260426-new-fighting-erupts-in-north-mali-s-kidal-as-army-cla...
2•mooreds•12m ago•0 comments

Show HN: Jigs-tiny Rust framework for interactive maps of composable pipelines

https://github.com/ValeriaVG/jigs
2•valeriavg_dev•12m ago•0 comments

AI Reverses the Political Logic of the Internet

https://www.techpolicy.press/how-ai-reverses-the-political-logic-of-the-internet/
2•mooreds•12m ago•0 comments

Arctic Temperatures

https://zacklabe.com/arctic-temperatures/
2•mooreds•13m ago•0 comments

LLM Anxiety

https://dheer.co/llm-anxiety/
1•bushido•14m ago•0 comments

Show HN: Kadō – habit tracker app for iOS, open source and privacy-friendly

https://github.com/scastiel/kado
3•scastiel•15m ago•0 comments

An AI agent deleted our production database. The agent's confession is below

https://twitter.com/lifeof_jer/status/2048103471019434248
5•jeremyccrane•18m ago•1 comments

Show HN: I made GAI to have LLM agents in Go without heavy frameworks

https://github.com/lace-ai/gai
2•samuel_kx0•18m ago•0 comments

Tech's richest plan to save themselves after the apocalypse (2018)

https://www.theguardian.com/technology/2018/jul/23/tech-industry-wealth-futurism-transhumanism-si...
2•akyuu•20m ago•0 comments

AI vibe coding vs. AI vibe cracking

https://meshoskey.com/article.html
2•simonjgreen•21m ago•0 comments

The left is missing out on AI

https://www.transformernews.ai/p/the-left-is-missing-out-on-ai-sanders-doctorow-bender-bores
2•peteforde•25m ago•1 comments

Blitting the Night Away: Nichibutsu's Mahjong Koi No Magic Potion

https://nicole.express/2026/more-like-koi-yes-magic-potion.html
2•nicole_express•28m ago•0 comments

Software engineering may no longer be a lifetime career

https://www.seangoedecke.com/software-engineering-may-no-longer-be-a-lifetime-career/
2•lazy-logic•28m ago•0 comments

Europe–not US–first to authorize Moderna's combo mRNA flu-Covid vaccine

https://arstechnica.com/health/2026/04/europe-not-us-first-to-authorize-modernas-combo-mrna-flu-c...
4•akyuu•31m ago•0 comments

Show HN: Store, play and stream your iOS/macOS videos on your smart TV with Kino

https://appwared.com/apps/kino
2•mrtksn•31m ago•0 comments

Show HN: J-RAY PRO – A fast visual JSON profiler in Rust

https://j-ray-pro.com/
2•MauryWebDev•31m ago•0 comments

Sawe breaks two-hour barrier with 1:59:30 world record at London Marathon

https://worldathletics.org/competitions/world-athletics-label-road-races/news/sawe-two-hour-assef...
2•karlding•32m 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?