frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Three Sketches of ASL-4 Safety Case Components

https://alignment.anthropic.com/2024/safety-cases/
1•consumer451•2m ago•0 comments

Use skills smarter with SkillDock's CLI manager

https://skilldock.io/skill/skilldock/skilldock-cli-usage
1•eugeneevstafev•2m ago•0 comments

Index, Count, Offset, Size

https://tigerbeetle.com/blog/2026-02-16-index-count-offset-size/
1•cyndunlop•3m ago•0 comments

I taught LLMs to play Magic: The Gathering against each other

https://mage-bench.com/
1•GregorStocks•3m ago•1 comments

Gentoo Takes the First Step to Ditch Microsoft Copilot-Infested GitHub

https://itsfoss.com/news/gentoo-github-switch-begins/
1•abdelhousni•3m ago•0 comments

I've Created Modular Open Source Shelters

https://thios.co/en/
1•pete-thios•3m ago•1 comments

StewReads – Turn Claude chats into Kindle ebooks

https://ankitgupta.dev/blog/building-stewreads
1•rajma•4m ago•1 comments

The Cloud Above the Clouds

https://subreply.com/reply/30957
1•lucianmarin•6m ago•0 comments

Metadata Is Not Understanding: Knowledge Graph Version Control for AI Code

https://hub.controlvector.io/blog/metadata-is-not-understanding
1•jwschmo218•7m ago•1 comments

Show HN: Deathwink – Send messages to people after you die

https://deathwink.com
1•randallme•8m ago•0 comments

Mac is now a gaming PC

https://xcancel.com/mygamesir/status/2022959064632938560
1•frizlab•8m ago•1 comments

Why Europe doesn't have a Tesla

https://worksinprogress.co/issue/why-europe-doesnt-have-a-tesla/
1•ortegaygasset•9m ago•0 comments

Baking Custom Images for AI Agents

https://olegselajev.substack.com/p/building-custom-docker-sandboxes
3•xenoscopic•9m ago•0 comments

AI Agent swarm for Stock trading simulation

https://github.com/dakshjain-1616/Stock-trading-Agent-Swarm---BY-NEO
1•gauravvij137•10m ago•1 comments

Show HN: Google rejected my privacy app for "low engagement"

1•safestream•10m ago•0 comments

Show HN: Mirroir – MCP server that gives AI agents a real iPhone to control

https://mirroir.dev
1•jfarcand•11m ago•0 comments

Molecular solar thermal energy storage in Dewar pyrimidone beyond 1.6 MJ/kg

https://www.science.org/doi/10.1126/science.aec6413
1•Forbo•11m ago•0 comments

Level of Detail

https://phinze.com/writing/level-of-detail
1•zdw•11m ago•0 comments

Dev implements HDMI FRL in AMDGPU, hence HDMI 2.1 on AMD Linux driver

https://github.com/mkopec/linux/tree/hdmi_frl_amd_staging
1•gbil•13m ago•0 comments

Logic MSO – Oscilloscope with Python Support

https://saleae.com/logic-mso
1•manchoz•13m ago•0 comments

Why AI writing is so generic, boring, and dangerous: Semantic ablation

https://www.theregister.com/2026/02/16/semantic_ablation_ai_writing/
2•benji8000•14m ago•0 comments

Show HN: Wit-ts – A type-level WIT parser for TypeScript

https://github.com/mattmarcello/wit-ts
1•mattmarcello•14m ago•0 comments

Where Does Gold Come From?

https://connordempsey.substack.com/p/where-does-gold-actually-come-from
4•cdempsey44•14m ago•0 comments

Show HN: My 16MB vibe-coded voice cloning app

https://github.com/blackboardsh/audio-tts
1•yoav•14m ago•0 comments

Intelligent AI Delegation

https://arxiv.org/abs/2602.11865
2•gmays•18m ago•0 comments

Show HN: Boolean-query-parser – From a 4-hour hack to 3k downloads

https://github.com/Piergiuseppe/boolean-query-parser
1•TheBuc•19m ago•1 comments

RCT: Vaporized cannabis versus placebo for acute migraine

https://headachejournal.onlinelibrary.wiley.com/doi/10.1111/head.70025
1•PaulHoule•19m ago•0 comments

Show HN: Local Voice Assistant

2•armcat•19m ago•0 comments

Sentinel – watch over your Tailscale network and notify of changes

https://github.com/jaxxstorm/sentinel
1•jaxxstorm•19m ago•0 comments

Temporal Raises $300M Series D to Make Agentic AI Real for Companies

https://temporal.io/news/temporal-raises-300M-to-make-agentic-ai-real-for-companies
3•eatonphil•19m 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?