frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: Free, serverless Redis clone backed by Durable Objects

https://github.com/zion-off/meowdis
1•ajz317•49s ago•0 comments

UK Cryptography Developer claims IP to protect UK National Security was stolen

https://lists.libre-soc.org/pipermail/libre-soc-dev/2026-March/007164.html
1•initramfs•51s ago•1 comments

Show HN: Tmuzika – terminal music player written in C (ncurses and GStreamer)

https://github.com/ivanjeka/tmuzika
1•ivanjeka•1m ago•0 comments

We open sourced a rite of passage for the permanent underclass problem

https://github.com/MichaelAPerry/Open-Ritual-1.0/
1•ffsoftboiled•2m ago•1 comments

Impressions from Mozilla 1.2B (2002)

https://movq.de/blog/postings/2026-03-08/0/POSTING-en.html
1•birdculture•3m ago•0 comments

When is AI coming to CAD design?

1•travisgriggs•3m ago•0 comments

Separation of direct and globalscvene components using HF illumination

https://dl.acm.org/doi/10.1145/1141911.1141977
1•PaulHoule•4m ago•0 comments

Learnings from Building an AI Root Cause Analysis Agent

https://www.checklyhq.com/blog/building-an-ai-agent/
1•tnolet•5m ago•0 comments

An Open Source SDK and Runtime for Building Agents

https://agent-air.ai/
1•mdani•5m ago•0 comments

Apple Blocks US Users from Downloading ByteDance's Chinese Apps

https://www.wired.com/story/bytedance-apps-are-no-longer-available-in-us-app-stores/
3•mikhael•6m ago•0 comments

Unstract: Open-source platform to ship document extraction APIs in minutes

https://github.com/Zipstack/unstract
1•naren87•7m ago•0 comments

Meta's Renewed Commitment to Jemalloc

https://engineering.fb.com/2026/03/02/data-infrastructure/investing-in-infrastructure-metas-renew...
1•gaffneyc•7m ago•0 comments

Ignoring the Wisdom of Crowds

https://longform.asmartbear.com/wisdom-of-crowds/
1•djrhails•9m ago•0 comments

If photons have no mass, how can they have momentum?

https://physics.stackexchange.com/questions/2229/if-photons-have-no-mass-how-can-they-have-momentum
1•thunderbong•9m ago•0 comments

Uber is letting women avoid male drivers and riders in the US

https://www.dexerto.com/entertainment/uber-is-letting-women-avoid-male-drivers-and-riders-in-the-...
3•randycupertino•10m ago•0 comments

Deterministic metrics for requirements quality (IEEE 830, no LLM)

https://github.com/Testimonial/understanding
1•lbihari•11m ago•1 comments

Show HN: MessyData – Synthetic dirty data generator

https://github.com/sodadata/messydata
1•santiviquez•12m ago•0 comments

Tanker War

https://en.wikipedia.org/wiki/Tanker_war
1•softwaredoug•12m ago•0 comments

Helix 02 Living Room Tidy [video]

https://www.youtube.com/watch?v=CAdTjePDBfc
1•sgt•12m ago•1 comments

Un hack me now mate

1•Zelcius•12m ago•0 comments

Show HN: The Mog Programming Language

https://moglang.org
5•belisarius222•12m ago•0 comments

Show HN: OpenClix, Agent friendly, open-source retention tooling

https://github.com/openclix/openclix
3•jace_yoo•12m ago•0 comments

eInk wall remote for HomeAssistant – fed up with tablets and hacked Kindles

https://www.muros.ink/
3•prathammehta•12m ago•1 comments

Show HN: DocTracker – track client documents and send reminders

https://doctracker.app/en
1•bakabegemot•12m ago•0 comments

Models have some pretty funny attractor states

https://www.lesswrong.com/posts/mgjtEHeLgkhZZ3cEx/models-have-some-pretty-funny-attractor-states
2•semiquaver•13m ago•0 comments

Show HN: We built an MCP server so LLMs can self-correct against business rules

https://www.rynko.dev/mcp
1•ksrijith•14m ago•0 comments

Seldom: An Anonymity Network with Selective Deanonymization

https://dl.acm.org/doi/full/10.1145/3794848?af=R
2•maxrmk•14m ago•0 comments

Use /loop to run Claude Code on a Schedule

https://code.claude.com/docs/en/scheduled-tasks
1•thomascountz•15m ago•1 comments

AI agents are coming for government. How one big city is letting them in

https://www.fastcompany.com/91504876/boston-cio-santi-garces-on-ai-agents-mcp-open-data
1•johnshades•15m ago•0 comments

The Government Told Courts It Could Easily Refund Tariffs. Now It Says It Can't

https://www.techdirt.com/2026/03/09/the-government-told-courts-it-could-easily-refund-unlawful-ta...
6•cdrnsf•15m 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?