frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: When did Spotify become YouTube/TikTok?

1•binarypixel•44s ago•0 comments

The Paradox of Karl Popper

https://www.scientificamerican.com/blog/cross-check/the-paradox-of-karl-popper/
1•baxtr•2m ago•0 comments

I factored the number RSA1024-1 using my home-built QPU stack

https://twitter.com/veorq/status/2048320115075137864
1•keepamovin•3m ago•0 comments

Craving work-life balance is a red flag, says Fortune 500 Europe CEO

https://fortune.com/2026/04/22/work-life-balance-bupa-fortune-500-ceo-barack-obama-work-weekend/
1•thisislife2•4m ago•0 comments

Car Dependency in Urban Accessibility

https://arxiv.org/abs/2604.01019
1•Anon84•8m ago•0 comments

What Made Lisp Different (2002)

https://paulgraham.com/diff.html
1•tosh•14m ago•0 comments

Magnet with near-zero external field could reshape future electronics

https://phys.org/news/2026-04-magnet-external-field-reshape-future.html
1•rbanffy•16m ago•0 comments

Web UI in Go? Nothing Can Stop Me

https://medium.com/@mailbox.sq7/web-ui-in-go-nothing-can-stop-me-60d75c4cd4f0
1•alzhi7•20m ago•1 comments

Show HN: Axle – a11y/WCAG CI that proposes real source-code fixes via Claude

https://axle-iota.vercel.app
1•swapvideo•21m ago•0 comments

The Podcast Where You Can Eavesdrop on the A.I. Elite

https://www.nytimes.com/2026/04/26/business/dwarkesh-patel-podcast-ai.html
3•pilooch•24m ago•0 comments

Telegram Launches Managed Bots

https://twitter.com/telegram/status/2048098691391852966
1•hestefisk•25m ago•0 comments

The incredible double life of a spyware salesman turned spy

https://www.ft.com/content/fef3bc59-358a-4e43-aef1-e61194d8b908
1•Anon84•31m ago•1 comments

Designing for Agents

https://twitter.com/teddy_riker/status/2047312986696454584
1•talboren•31m ago•0 comments

It's OK to Use Floating Point for Money

https://suricrasia.online/blog/its-ok-to-use/
1•edent•33m ago•0 comments

The slow death of purposeless walking (2014)

https://www.bbc.com/news/magazine-27186709
1•downbad_•34m ago•1 comments

'Athens cannot operate as a hotel':mayor vows to rescue capital from overtourism

https://www.theguardian.com/world/2026/apr/25/athens-cannot-operate-as-a-giant-hotel-mayor-vows-t...
2•mschuster91•42m ago•0 comments

Show HN: A free ESG stock screener that publishes its losses and methodology

https://jumpstartsignal.com/
1•irldexter•44m ago•0 comments

Could creativy in LLM emerge by reframing language?

1•nopelican•54m ago•0 comments

21-year-old Polish Woman Fixed a 20-year-old Linux Bug

https://itsfoss.com/news/kamila-enlightenment-e16-bug/
1•stared•56m ago•2 comments

Show HN: DSS, a lightweight TUI spreadsheet editor and dashboard in Go

https://github.com/VincenzoManto/DSSGo
5•databasa•1h ago•0 comments

Statecharts: hierarchical state machines

https://statecharts.dev/
9•sph•1h ago•0 comments

Nuclear power Have we found a useful use for it? Let's ask a wolf

https://www.theguardian.com/commentisfree/picture/2026/apr/24/nuclear-power-have-we-finally-found...
1•leonidasrup•1h ago•0 comments

Rockchip-vaapi – VA-API hardware video decode driver for RK3588

https://github.com/woodyst/rockchip-vaapi
1•woodyst•1h ago•0 comments

Thinking Outside the Box: New Attack Surfaces in Sandboxed AI Agents

https://www.lasso.security/blog/sandboxed-ai-agents-attack-surface
1•irememberu•1h ago•0 comments

Can LLMs Scale to AGI?

1•mr_rajat•1h ago•1 comments

Show HN: OpenClaw but Efficient and with an SDK

https://www.npmjs.com/package/fastyclaw
1•dontoni•1h ago•0 comments

Ask HN: Can submissions omit both the "url" and "text" field?

1•sillysaurusx•1h ago•1 comments

Show HN: Play on your TV using mobile phones as controllers – PadlessBox

https://padlessbox.com/
2•b4rtaz__•1h ago•0 comments

Singapore's Foreign Minister Builds an AI "Second Brain" Using NanoClaw

https://officechai.com/ai/singapores-foreign-minister-builds-an-ai-second-brain-using-nanoclaw-sa...
1•doppp•1h ago•0 comments

"Self-aware" robots learn by watching humans. Is that a good thing?

https://www.npr.org/2026/04/24/nx-s1-5797863/self-aware-robots-future-laundry-work-home
1•01-_-•1h ago•1 comments
Open in hackernews

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

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