frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Long-term support for Linux releases gets a new lease on life

https://thenewstack.io/long-term-support-for-linux-releases-gets-a-new-lease-on-life/
1•CrankyBear•15s ago•0 comments

Best API Documentation Tools

https://www.jamdesk.com/blog/best-api-documentation-tools
1•gbourne1•57s ago•0 comments

The UAW Is Leading the Push for Green Jobs in California

https://jacobin.com/2026/02/uaw-green-jobs-california-union/
1•PaulHoule•1m ago•0 comments

Utah's online porn tax proposal poses a major threat to civil liberties

https://www.techdirt.com/2026/03/06/utahs-proposal-to-tax-online-pornography-is-a-civil-liberties...
1•speckx•2m ago•0 comments

Show HN: How to Catch Documentation Drift with Claude Code and GitHub Actions

https://dosu.dev/blog/how-to-catch-documentation-drift-claude-code-github-actions
1•onlydole•3m ago•0 comments

Runtime observability and policy enforcement for AI coding agents

https://www.oculisecurity.com/
1•rellaElla•4m ago•0 comments

Wine 11.4 – Run Windows Applications on Linux, BSD, Solaris and macOS

https://www.winehq.org/announce/11.4
1•neustradamus•4m ago•0 comments

BlackRock $26B Private Credit Fund Limits Withdrawals

https://www.bloomberg.com/news/articles/2026-03-06/blackrock-s-26-billion-private-credit-fund-lim...
1•greesil•5m ago•1 comments

Dracarys

https://dracarys.robertborghesi.is/
1•darmensdf•5m ago•0 comments

Project Operational Autonomy: our agent-to-agent-future

https://pebblebed.com/blog/operational-autonomy
1•kmavm•5m ago•0 comments

China's 792M kWh compressed air energy station now operational

https://interestingengineering.com/energy/china-largest-compressed-air-energy-station-world
1•pseudolus•8m ago•1 comments

Are there any companies who are anti-AI?

1•anti-ai-dev•10m ago•0 comments

The Worst Acquisition in History, Again

https://www.profgmedia.com/p/the-worst-acquisition-in-history
1•JumpCrisscross•10m ago•0 comments

OpenPawz Conductor Protocol

https://github.com/OpenPawz/openpawz/blob/main/reference/conductor-protocol.mdx
1•gotham64•12m ago•1 comments

Show HN: Unread, turns your unread newsletters into a daily podcast

https://app.unread.live
1•benfosterdev•12m ago•0 comments

Show HN: See Your Money in 3D

https://moneyvisualiser.com
1•KhazP•12m ago•0 comments

Show HN: Verified n8n community node for Anytype

https://github.com/splch/n8n-nodes-anytype
1•splch•13m ago•0 comments

Claude Code vs. Codex (Nate B Jones) [video]

https://www.youtube.com/watch?v=09sFAO7pklo
1•JnBrymn•15m ago•0 comments

Show HN: Synclippy – Ephemeral rooms for sharing text or files

https://synclippy.ujjwalvivek.com
1•ujjwalvivek•15m ago•0 comments

PKGSmith

https://pkgsmith.app/
1•Fogh•17m ago•0 comments

Plan 9 from User Space

https://9fans.github.io/plan9port/
1•tosh•19m ago•0 comments

GPT-5.4 code-golfs GPT-2

https://twitter.com/hansonwng/status/2030000810894184808
1•tosh•19m ago•0 comments

Re-creating the complex cuisine of prehistoric Europeans

https://arstechnica.com/science/2026/03/recreating-the-complex-cuisine-of-prehistoric-europeans/
1•apollinaire•20m ago•0 comments

Oracle and OpenAI drop Texas data center expansion plan

https://www.reuters.com/business/oracle-openai-end-plans-expand-texas-data-center-site-bloomberg-...
2•speckx•20m ago•0 comments

Palera1n Jailbreak Compiled and Run on a Samsung Galaxy S3 (PostmarketOS, ARMv7)

https://github.com/noxbitx/s3ra1n/tree/main
2•noxbit•21m ago•0 comments

Eval awareness in Claude Opus 4.6's BrowseComp performance

https://www.anthropic.com/engineering/eval-awareness-browsecomp
1•gcampbell•22m ago•0 comments

Show HN: I built an international calling platform/Android App

https://voklit.app
1•ahmgeek•22m ago•1 comments

If flip-phones can make a comeback, can Flash do the same?

https://disassociated.com/flip-phones-comeback-can-flash/
1•speckx•23m ago•0 comments

An AI disaster is getting ever closer

https://www.economist.com/briefing/2026/03/05/an-ai-disaster-is-getting-ever-closer
3•bookofjoe•25m ago•1 comments

Ecological Imperialism

https://kschroeder.substack.com/p/my-library-ecological-imperialism
1•MaysonL•26m ago•0 comments
Open in hackernews

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

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