frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

6 Facts About Europe and Air Conditioning

https://heatmap.news/daily/europe-air-conditioning
1•salonium_•1m ago•0 comments

Policymakers can prep for a potential AI job apocalypse

https://www.wordsinsearchlight.org/p/how-policymakers-can-prep-for-a-potential
1•m-hodges•2m ago•0 comments

Show HN: Hikaru Labs – A private, 100% local alternative to iLoveIMG

https://hikarulabs.xyz
2•CFBL•2m ago•1 comments

Can China build its own ASML?

https://nikkei.shorthandstories.com/can-china-build-its-own-asml/
2•pieterr•18m ago•0 comments

China's CXMT Is Set to Challenge DRAM Incumbents

https://newsletter.semianalysis.com/p/chinas-cxmt-is-set-to-challenge-dram
4•pieterr•23m ago•0 comments

Authority is the degenerate case: what else propagates through the link graph?

https://zenodo.org/records/20981883
1•JasonDuke•24m ago•0 comments

Why growth harder to find: good ideas aren't becoming rare, but hard to share

https://www.nber.org/papers/w35182
1•oliculipolicula•28m ago•0 comments

Wouter van Oortmerssen on Surviving in Early Access and Escaping Minecraft

https://report.wand.com/interviews/voxray-voxile-interview
1•mikelabatt•31m ago•0 comments

Inference, Diffusion, World Models, and More – YC Paper Club [video]

https://www.youtube.com/watch?v=wE1ZgJdt4uM
2•frenchmajesty•31m ago•0 comments

Guess what, lawmakers? The Runtime Is the Regulator

https://www.mikehyland.com/blog/ai-governance-zero-trust-runtime
1•mjhyl•32m ago•1 comments

Ask HN: Which Induction Cooktops Have the Best User Experience (UI/UX)?

1•evolve2k•33m ago•0 comments

Be the First to Test It

1•carlostkd•34m ago•0 comments

AI Is the Best Thing to Happen to Security

https://badshah.io/blog/ai-is-the-best-thing-to-happen-to-security/
1•ilreb•34m ago•0 comments

Ask HN: Who here would agree to replace parliaments with LLMs?

2•julienreszka•35m ago•4 comments

A new metadata engine for high performance Object Storage (not LSM, not B+ tree)

https://fractalbits.com/blog/metadata-engine-for-our-object-storage-from-lsm-tree-to-fractal-art/
6•rustshellscript•36m ago•0 comments

Ask HN: What would you say to Elon Musk on his 55th birthday TODAY?

3•vantareed•38m ago•2 comments

I built Stack Overflow Tech Trends to visualize 15+ years of tag popularity

https://verpad.vercel.app/so-trends.html
1•sheelagay•39m ago•1 comments

Twitter Search Filters

https://twitter.com/berryxia/status/2070392620359315484
3•aurenvale•42m ago•0 comments

GT America

https://www.gt-america.com/
1•toilet•44m ago•0 comments

PSR J1748−2446ad spins at 24% of the speed of light at it's equator

https://en.wikipedia.org/wiki/PSR_J1748%E2%88%922446ad
1•Jimmc414•45m ago•0 comments

Why prediction markets aren't popular

https://worksinprogress.co/issue/why-prediction-markets-arent-popular/om
3•latentframe•53m ago•0 comments

Security News This Week: LastPass Users Had Their Data Stolen–Again

https://www.wired.com/story/security-news-this-week-lastpass-users-had-their-data-stolen-again/
3•joozio•1h ago•0 comments

Show HN: React Router V8 integration for LinguiJS

https://github.com/ws-rush/lingui-rr
3•ws-rush•1h ago•0 comments

Show HN: Core-1 – A distributed C++ AGI framework for trillion-parameter scale

https://github.com/Sarkar-AGI/Core-1
3•Rahul-sarkar•1h ago•0 comments

Show HN: Better Graphs – Teach agents to stop making plain Matplotlib slop

https://temataro.github.io/better-graphs/
5•tem_alThor•1h ago•1 comments

Finding It Challenging to Maintain Software Created with Coding Agents?

6•nlpnerd•1h ago•2 comments

Yes, Europe's heat waves are deadlier than American gun violence

https://fortune.com/2026/06/26/heat-death-europe-ac-american-gun-violence-climate-change-hot-summer/
10•m_mueller•1h ago•0 comments

Pentagon Sees Bigger Role for AI in Setting Military Targets

https://www.bloomberg.com/news/articles/2026-06-25/pentagon-sees-broader-role-for-ai-in-setting-m...
3•yurivish•1h ago•0 comments

AI Assistant for Amazon

https://chromewebstore.google.com/detail/ai-assistant-for-amazon/ohpekhndmbmkpdoikmphbmdpailacjeo
2•aniruddhaikhar•1h ago•0 comments

Clean Code: Second Edition Critique

https://bugzmanov.github.io/cleancode-critique/
3•bmacho•1h ago•1 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?