frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The Security of Ephemeral Pages

https://schalkneethling.com/posts/the-security-of-ephemeral-pages/
1•speckx•1m ago•0 comments

StepStone: LLM-Based GPU Kernel Driver Fuzzing via User-Space Libraries [pdf]

https://www.cs.ucr.edu/%7Ezhiyunq/pub/oakland26_gpu_fuzzing.pdf
1•matt_d•1m ago•0 comments

GitHub Says 3,800 Repositories Breached

https://www.forbes.com/sites/daveywinder/2026/05/20/github-says-3800-repositories-breached-teampc...
1•sholas•2m ago•0 comments

2026 Layoffs Tracker (WSJ)

https://www.wsj.com/economy/jobs/layoffs-2026-tracker-784ea69f
1•cwwc•2m ago•0 comments

Tor v3 .onion addresses are the same Ed25519 pubkey as Solana wallets

https://ouija.social/directory
1•notstacc•5m ago•0 comments

The Book of Mozilla

https://en.wikipedia.org/wiki/The_Book_of_Mozilla
1•TheSilva•5m ago•0 comments

The Internet can't stop watching Figure AI's humanoid robots handling packages

https://arstechnica.com/ai/2026/05/the-internet-cant-stop-watching-figure-ais-humanoid-robots-han...
1•Brajeshwar•5m ago•0 comments

The Hardware Lottery

https://hardwarelottery.github.io/
1•intelkishan•7m ago•0 comments

Show HN: We wrote forensic intelligence reports on 20 open-source codebases

https://github.com/zero-intelligence/zero-intel
1•DhruvKumarJha•7m ago•0 comments

The surprising story behind the first British person in space

https://www.bbc.com/culture/article/20260518-helen-sharman-the-story-behind-the-first-british-per...
2•xoxxala•8m ago•0 comments

Newborns' cry melody is shaped by their native language

https://pubmed.ncbi.nlm.nih.gov/19896378/
1•thunderbong•10m ago•0 comments

My Hermes and Obsidian Setup and Use Cases

https://metedata.substack.com/p/013-my-hermes-and-obsidian-set-up
1•young_mete•10m ago•0 comments

Show HN: Lance – image/video generation and understanding in one model

https://github.com/bytedance/Lance
2•cleardusk•10m ago•0 comments

You never learned to delegate. AI just made it obvious

https://jeroensangers.com/2026/05/18/you-never-learned-to-delegate.html
1•speckx•10m ago•1 comments

What do you think of my new website?

https://www.movingcompared.co.uk
1•ty00001•11m ago•0 comments

I built 2k badges for Replay and I'm not sure I've slept since December

https://temporal.io/blog/badges-for-replay-and-i-havent-slept-since-december
1•raybb•12m ago•1 comments

LightSolver Partners with Boeing

https://www.photonics.com/Articles/LightSolver-Partners-with-Boeing/a72200
1•ramon156•12m ago•0 comments

Show HN: Zero Protocol – A personal context file for AI

https://github.com/zero-intelligence/zero-protocol
2•DhruvKumarJha•13m ago•0 comments

U.S. PV manufacturing capex could reach $7B in 2027 in breakout year

https://www.pv-magazine.com/2026/05/20/u-s-pv-manufacturing-capex-could-reach-7-billion-in-2027-i...
2•ndr42•14m ago•0 comments

Show HN: Chatroom with curl command (requires IPv6)

https://chat.est.im/ai/hackernews
1•est•15m ago•0 comments

Career coach based on psychological tests (desktop,BYOK)

https://yggdra.garden/
1•teslavr•15m ago•0 comments

SBCL: The Assembly Code Breadboard (2014)

https://pvk.ca/Blog/2014/03/15/sbcl-the-ultimate-assembly-code-breadboard/
1•yacin•16m ago•0 comments

From Skills Back to Tools: Why Our Dashboard Assistant Moved Off the Claude Code

https://blog.promptlayer.com/from-skills-back-to-tools-why-our-dashboard-assistant-moved-off-the-...
1•jonpon•16m ago•0 comments

StrangerLoops

https://strangerloops.com
1•alanbotts•16m ago•0 comments

The brain's code seems to be in constant flux. Neuroscientists are baffled

https://www.nature.com/articles/d41586-026-01554-0
3•Brajeshwar•19m ago•0 comments

AI-generated abandonware is hollowing out open source

https://leaddev.com/software-quality/ai-generated-abandonware-is-hollowing-out-open-source
2•chhum•21m ago•0 comments

Chat client for Meshtastic LoRa mesh networks in Emacs

https://git.andros.dev/andros/meshtastic.el
2•andros•22m ago•0 comments

Localgcp: LocalStack for GCP, emulating 14 Google Cloud services locally

https://github.com/slokam-ai/localgcp
1•linkdd•22m ago•0 comments

How much should we worry about secretly loyal AIs?

https://www.the-substrate.net/p/how-much-should-we-worry-about-secretly
2•erwald•27m ago•0 comments

Digitally stuck on an island with 30 people

https://isle31.com/
1•vincentlenoach•27m ago•0 comments
Open in hackernews

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

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