frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Storing Solar Energy as Ice for Air Conditioning

https://hackaday.com/2026/03/22/storing-solar-energy-as-ice-for-air-conditioning/
3•lxm•11m ago•0 comments

A short history of the Web – CERN

https://home.cern/science/computing/birth-web/short-history-web
1•imwally•12m ago•1 comments

Trivy Supply Chain Attack Expands to Compromised Docker Images

https://socket.dev/blog/trivy-docker-images-compromised
2•feross•16m ago•1 comments

The Entropy of the Soul: Why AI Quotas Are the Ultimate Bot-Detection Filter

https://medium.com/@pierreneter/the-quota-paradox-why-ai-limits-are-making-us-smarter-fa7f8ff909bd
1•pierreneter•16m ago•0 comments

eBay Kitchen Beta (home made food ordering)

https://twitter.com/rats7/status/2035845616190787644
1•raybb•18m ago•0 comments

Socialist Emmanuel Gregoire wins Paris mayoral race

https://www.aljazeera.com/news/2026/3/22/socialist-emmanuel-gregoire-wins-paris-mayoral-race
1•mikhael•20m ago•0 comments

Samsung brings AirDrop support to Galaxy S26 series in select regions

https://www.neowin.net/news/good-news-for-samsung-users-airdrop-support-is-finally-here/
1•bundie•21m ago•0 comments

Show HN: CodexKit – Build agent-powered iOS apps (threads, tools, memory)

https://github.com/timazed/CodexKit
1•timazed•23m ago•0 comments

Show HN: NoProcrast – A browser extension modeled on HN's noprocrast feature

https://addons.mozilla.org/en-US/firefox/addon/noprocrast/
1•xanthine•32m ago•0 comments

Zmx: Session Persistence for Terminal Processes

https://zmx.sh/
1•sgloutnikov•32m ago•0 comments

Hardest Hard Drive Commercial [video]

https://www.youtube.com/watch?v=ZXs_9OXRnQo
2•ketchup32613•34m ago•1 comments

Show HN: Sandbox-policy-builder, helper for Vercel Sandbox credentials brokering

https://github.com/giselles-ai/sandbox-policy-builder
1•toyamarinyon•36m ago•0 comments

FIRST Robotics founder Dean Kamen resigns because of Epstein files

https://www.nhpr.org/nh-news/2026-03-12/dean-kamen-resigns-first-epstein-nh-newhampshire
2•benwen•39m ago•0 comments

My DIY FPGA board can run Quake II

https://blog.mikhe.ch/quake2-on-fpga/
2•tapoxi•40m ago•0 comments

Bug Mentor – Mentoring developers with Q&A during software bug resolution

https://raisedal.substack.com/p/bug-mentor-mentoring-developers-with
1•masud2336•45m ago•0 comments

Show HN: Lula – multi-agent coding assistant with sandboxed Rust exec engine

https://github.com/christianmeurer/Lula
1•chrismeurer•52m ago•0 comments

AI ends online anonymity: the ease of unmasking pseudonymous accounts

https://english.elpais.com/technology/2026-03-12/ai-ends-online-anonymity-the-ease-of-unmasking-p...
6•1vuio0pswjnm7•52m ago•1 comments

[Product Launch] Synapse: Define your signals and we'll monitor for them

https://synapsesignal.net/
1•atakaboudi•53m ago•1 comments

【Open Source and Free】a macOS Menu Bar Cryptocurrency Price Monitor

https://twitter.com/realedgelab/status/2035902084244291964
1•mylxsw•56m ago•0 comments

LLMs can't reason and never will

https://pablomarino.com/research_blog/2026/03/23/research5.html
3•pablonm•1h ago•3 comments

Simulation Theory Misses the Point

https://simontlbt.substack.com/p/simulation-theory-misses-the-point
4•simontlbt•1h ago•0 comments

The First Pancake Principle. How to Get Started

https://medium.com/weirdo-poetry/the-first-pancake-principle-a67e374bceea
1•puttycat•1h ago•0 comments

Tesla faces wider probe of self-driving feature

https://apnews.com/article/tesla-selfdriving-musk-regulators-7edce5705e93775e1b8bb77b5dd54007
2•1vuio0pswjnm7•1h ago•0 comments

AI is making the hard choice between consumer safety and privacy even trickier

https://nypost.com/2026/03/22/tech/as-ai-takes-over-consumers-face-a-hard-choice-between-safety-a...
1•1vuio0pswjnm7•1h ago•0 comments

Pandora's Bog: the global energy shock of 2026 [pdf]

https://assets.jpmprivatebank.com/content/dam/jpm-pb-aem/global/en/documents/eotm/pandoras-bog.pdf
2•gwintrob•1h ago•0 comments

Zunbook.com: 48k AI Agents Turn Live News into Podcasts and Music

https://zunvra.com
1•aerosol•1h ago•0 comments

OpenAI to double workforce as business push intensifies

https://www.ft.com/content/7ffea5b4-e8bc-47cd-adb4-257f84c8028b
5•gnabgib•1h ago•2 comments

OpenAI to nearly double headcount this year

https://www.semafor.com/article/03/22/2026/openai-to-double-headcount
5•kieto•1h ago•1 comments

Show HN: AgentVerse – Open social network for AI agents (Mar 2026)

https://nickakre.github.io/agentverse-social/
3•nickakre•1h ago•1 comments

"Collaboration" Is Bullshit

https://www.joanwestenberg.com/collaboration-is-bullshit/
24•mitchbob•1h ago•2 comments
Open in hackernews

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

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