frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: ChexHQ – Financial decision intelligence for finance teams

https://chexhq.com/
1•DhirajKadam27•3m ago•0 comments

Helion Achieves New Fusion Energy Milestones

https://www.helionenergy.com/articles/helion-achieves-new-fusion-energy-milestones/
1•bezbac•12m ago•0 comments

Reproducible Python with Uv and Pixi

https://pydissem.rgoswami.me/
1•HaoZeke•12m ago•0 comments

Show HN: A personal, open-source web runtime

https://github.com/pinkhairs/cutemagick
2•pixelswithin•13m ago•0 comments

Ask HN: Do you think humanoid robots will outnumber humans by 2035?

1•p2pai•17m ago•0 comments

How China Built a Chip Industry, and why it is still not enough

https://www.nytimes.com/2026/02/14/business/china-chips-nvidia-huawei.html
1•jimnotgym•17m ago•2 comments

Show HN: Parrot– AI Transcription & Translation - 11+ Indian languages + codemix

https://parrotapp.in/
1•sayantanc•19m ago•0 comments

From flattery to debate: Training AI to mirror human reasoning

https://techxplore.com/news/2026-02-flattery-debate-ai-mirror-human.html
1•netfortius•23m ago•0 comments

Show HN: cgrep – local, code-aware search for AI coding agents

https://github.com/meghendra6/cgrep
2•meghendra•23m ago•0 comments

Ars Technica makes up quotes from Matplotlib maintainer; pulls story

https://infosec.exchange/@mttaggart/116065340523529645
3•robin_reala•25m ago•0 comments

OpenBIOS

https://www.openfirmware.info/
1•tosh•27m ago•0 comments

Showcasing my Git repositories on the web

https://cybrkyd.com/post/showcasing-my-git-repositories-on-the-web/
1•londonanon•28m ago•0 comments

Recovered 1973 diving decompression algorithm

https://github.com/edelprino/DCIEM
1•birdculture•30m ago•0 comments

Mathematicians issue a major challenge to AI

https://www.scientificamerican.com/article/mathematicians-launch-first-proof-a-first-of-its-kind-...
1•dheerajmp•35m ago•1 comments

Show HN: HRML – A compiled web language. Three symbols, zero dependencies

https://hrml.dev
1•mendexio•35m ago•1 comments

Show HN: Neohabit – habit-tracker with adjustable habit frequencies (X / Y days)

https://github.com/Vsein/Neohabit
1•Vsein•39m ago•0 comments

Show HN: Agent Hypervisor – Reality Virtualization for AI Agents

https://github.com/sv-pro/agent-hypervisor
1•sv-pro•43m ago•0 comments

YouTube as Storage

https://github.com/PulseBeat02/yt-media-storage
7•saswatms•43m ago•6 comments

Offline ElevenLabs alternative for macOS – one-time purchase, runs locally

https://apps.apple.com/sg/app/potato-labs/id6758903660?mt=12
1•jantheman•47m ago•1 comments

Critical Logic Bypass "Intended Behavior" Full System Access

1•CorporationHit•53m ago•0 comments

Rendering the Visible Spectrum

https://brandonli.net/spectra/doc/
1•signa11•57m ago•0 comments

How to Vulkan in 2026

https://www.howtovulkan.com/
1•signa11•59m ago•0 comments

GitHub Innovation Graph: EU is catching up

https://github.blog/news-insights/policy-news-and-insights/year-recap-and-future-goals-for-the-gi...
1•muzzy19•1h ago•0 comments

AI Agent Lands PRs in Major OSS Projects

https://socket.dev/blog/ai-agent-lands-prs-in-major-oss-projects-targets-maintainers-via-cold-out...
1•junon•1h ago•0 comments

Agentic Experience for Publishers

https://www.gendiscover.com/publisher
1•transfon•1h ago•0 comments

Simplifier

https://simplifier.neocities.org/
1•tosh•1h ago•0 comments

When Helm and Argo Is Not Enough

https://kubekattle.github.io/ktl/blog/ktl-stack-dag-vs-argo.html
2•KyleVlaros•1h ago•0 comments

Berlin Lights Brandenburg Gate with 'Freedom for Iran' Message

https://www.iranintl.com/en/202602144731
2•ukblewis•1h ago•0 comments

Ads are coming to AI, but not to Claude [video]

https://www.youtube.com/watch?v=FBSam25u8O4
1•nojs•1h ago•1 comments

Life at the Frontlines of Demographic Collapse

https://www.250bpm.com/p/life-at-the-frontlines-of-demographic
5•msustrik•1h ago•1 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?