frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

New airliner sets record flying 24 hrs nonstop from Australia to France

https://arstechnica.com/gadgets/2026/07/new-airliner-sets-record-flying-24-hrs-nonstop-from-austr...
2•divbzero•4m ago•0 comments

Show HN: PR review time decreased by N3MO:impact analyzer (15 days free trial)

https://n3mo.vercel.app
2•RajX_dev•5m ago•0 comments

PJM board proposes backstop capacity auction, data center curtailment plans

https://finance.yahoo.com/energy/articles/pjm-board-proposes-backstop-capacity-100932204.html
2•measurablefunc•7m ago•0 comments

China tests largest superconducting fusion magnets ever built

https://theprint.in/india/breakthrough-china-artificial-sun-project-6-5-tesla-magnet/2999321/
3•soniman•10m ago•0 comments

More Tailscale tricks for your jailbroken Kindle

https://tailscale.com/blog/jailbroken-kindle-proxy-tun-modes
3•Error6571•10m ago•0 comments

Show HN: Firemaps Spain – Live wildfire map with wind flow for ES and PT

https://firemapsspain.online/
2•kalamarico•19m ago•0 comments

Manganin: Tools Matter

https://blog.manganin.dev/blog/tools-matter/
2•ai2027•20m ago•0 comments

Israel Is Paying Millions to Train AI Chatbots How to Talk About Gaza

https://www.dropsitenews.com/p/israel-brad-parscale-ai-chatbots-gaza
10•jaykru•22m ago•1 comments

Cross-platform Shadow AI: Find, score, and report unmanaged AI

https://www.npmjs.com/package/@guardion/shadow-ai
2•rflsandroni•25m ago•0 comments

Show HN: Wordknots

https://wordknots.barapa.dev/
2•barapa•30m ago•0 comments

Google DeepMind dismantles Nobel-winning AlphaFold team in strategy shift

https://www.ft.com/content/61b2953d-ee0d-45de-af6e-a9c1cf524b33
3•marcopolis•35m ago•0 comments

Cracking Windows Open: Porting RADV to Win32

https://www.collabora.com/news-and-blog/news-and-events/cracking-windows-open-porting-radv-to-win...
4•zdw•38m ago•0 comments

User Interfaces of the Demo Scene

https://www.datagubbe.se/scenegui/
3•zdw•38m ago•0 comments

Kospi Plunges After Nvidia CEO's Visits Spark 'Huang Curse' Fears

https://www.chosun.com/english/market-money-en/2026/07/29/6FEUZWQT5BG3HMJ3G2RZPHROGM/
6•mapping365•39m ago•0 comments

Encode and Decode any digital text for free

https://www.qrexpress.org/ro/
3•levario•40m ago•1 comments

Self-Hosting has 34× First-Year ROI at 90% capacity

https://www.reddit.com/r/LocalLLM/comments/1v8dv47/what_am_i_missing_selfhosting_kimi_k3_has_34/
3•linxy97•50m ago•2 comments

Protecting My Server and Knowing What It Does with Tailscale and Beszel

2•SyedFazil•51m ago•0 comments

Show HN: Robust Blockchain Infrastructure

https://onfinality.io/en
2•cyrbuzz•51m ago•1 comments

A CLI that shows which sub-agent burned your tokens in one run

https://github.com/rrkher059/token-trace-viewer
2•rrkher059•52m ago•2 comments

Certified in Theory, Broken in Practice: Assumption Gaps in Cryptographic Model

https://arxiv.org/abs/2607.21839
2•sbulaev•1h ago•0 comments

The Future Is Here (2009)

https://retout.co.uk/2009/10/25/the_future_is_here/
2•jruohonen•1h ago•0 comments

MonkeysCode and Capuchin AI: The Agentic IDE That Gives You Total Control

https://monkeyscode.com/blog/introducing-monkeyscode-capuchin-the-agentic-ide-that-gives-you-tota...
1•monkeyscloud•1h ago•0 comments

What Has Happened to Taste?

https://www.esquire.com/style/a71276009/what-has-happened-to-taste/
3•acmnrs•1h ago•1 comments

Kestrel – passive AD audit tool on native C

https://github.com/ssteelfactor-oss/Kestrel
1•steelfactor•1h ago•0 comments

Transformer Transformer: A Unified Model for Motion-Conditioned Robot Co-Design

https://transformer-transformer.github.io/
12•ilreb•1h ago•0 comments

Exit Codes

https://bettercli.org/design/exit-codes/
2•ankitg12•1h ago•1 comments

One transcript, four different GPA views

https://mongol-jimmi.github.io/medcompass-audit/guides/gpa-formulas.html
1•medcompassaudit•1h ago•0 comments

An autonomous fleet to turn your Intent into production systems

https://intentlab.ai/blog/turn-your-intent-into-production-systems
1•jinqueeny•1h ago•0 comments

Show HN: Poople Today – Word Ladders Ending in Poop

https://poopletoday.com/
1•aitooltrek-com•1h ago•0 comments

Show HN: I run 30B 22tok/s, 109tok/s not novel,6GB/16GB RAM overcoming llama.cpp

https://github.com/FedericoTs/quantprobe
1•federicoTXTS•1h 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?