frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Scientists vote to end leap seconds, redefining how the world keeps time

https://www.scientificamerican.com/article/scientists-vote-to-end-leap-seconds-redefining-how-the...
1•0in•7m ago•0 comments

Self-Evolving Agent Harness

https://arxiv.org/abs/2610.18813
1•axis_official•8m ago•0 comments

Greece drafts law requiring data centers source 60% of power from renewables

https://www.datacenterdynamics.com/en/news/greece-drafts-legislation-requiring-data-centers-sourc...
2•giuliomagnifico•12m ago•0 comments

Japan business manager visa holders leaving without reentry permits surge

https://japantoday.com/category/national/japan-business-manager-visa-holders-leaving-without-reen...
2•SenHeng•28m ago•0 comments

Instagram Reel and Video Downlaoder

https://socialsaver.net/instagram-downloader
1•M_Saqlain•29m ago•0 comments

No AI. Build your own tree directory viewer in C by hand

https://www.youtube.com/watch?v=tiMHtc6l7xM
1•hayyoth•30m ago•0 comments

Tesla makes cars that fly? [video]

https://www.youtube.com/watch?v=7p5LxFdc-Qg
11•merinpapz10•37m ago•5 comments

Chirp Pong – uses microphones and audio for networked game play

https://simonwillison.net/2026/Oct/15/chirp-pong/
1•havaloc•40m ago•1 comments

Faster Post-Quantum Cryptography with JDK Intrinsics

https://inside.java/2026/09/30/faster-post-quantum-cryptography-with-jdk-intrinsics/
1•ejboy•41m ago•0 comments

SPJ: A Taste of Verse (Programming Language) [video]

https://www.youtube.com/watch?v=I6fL66L3jPs
1•undecidabot•50m ago•0 comments

Modernizing the VS Code UI

https://code.visualstudio.com/blogs/2026/10/15/modern-ui
2•soheilpro•51m ago•0 comments

What does the (Fire)fox say?

https://blog.mozilla.org/en/firefox/new-firefox-sounds/
3•soheilpro•52m ago•0 comments

A College-by-College Guide to Which Majors Pay Off – Or Don't

https://www.nytimes.com/interactive/2026/10/07/your-money/college-degree-earnings-guide.html
2•gmays•1h ago•0 comments

Earthquake alert falsely reports magnitude 9.9 and intensity 7 in Japan

https://twitter.com/_TheoSteiner/status/2110943880900231439
4•theo-steiner•1h ago•2 comments

Show HN: Lobby Domains: Find Domains with Chrome's On-Device AI

https://lobby.domains/
1•dalemhurley•1h ago•0 comments

The Russian Bots Went Silent. Or Did They?

https://www.lawfaremedia.org/article/the-russian-bots-went-silent.-or-did-they
4•cdrnsf•1h ago•0 comments

Dotnetup

https://devblogs.microsoft.com/dotnet/introducing-dotnetup/
5•soheilpro•1h ago•0 comments

The Thinking Leakage in Reinforcement Learning for LLMs

https://arxiv.org/abs/2610.14270
2•ilreb•1h ago•0 comments

Sergey Brin says Google's AI models are reaching recursive self-improvement

https://www.businessinsider.com/sergey-brin-google-gemini-ai-argon-recursive-self-improvement-rsi...
5•ryan_j_naughton•1h ago•2 comments

Researchers discover rogue Chinese AI agent fleet and talk with it

https://swarmcha.se/posts/chinese-agent-fleet-full-report
2•jakemanger•1h ago•1 comments

Linus Torvalds on "don't use AI for X"

https://lore.kernel.org/lkml/CAHk-=whTs09_ozN+e09GU68N1wPP56MUzDjrg9rnKxQUa0A_4Q@mail.gmail.com/
6•thatslast•1h ago•1 comments

Local and Distributed Large LLM Inference with MLX and RDMA on Mac Studio

https://machinelearning.apple.com/research/mlx-distributed-inference
3•vinhnx•1h ago•1 comments

All.net Analyst Report and Newsletter [pdf]

https://all.net/Analyst/2026-10C.pdf
1•sans_souse•1h ago•0 comments

3DCodeVerse

https://3dcodeverse.com/
3•ilreb•1h ago•0 comments

CoreWeave Founders Shield Fortunes with $3.3B Stock Sales

https://www.bloomberg.com/news/articles/2026-10-15/coreweave-founders-shield-fortunes-with-3-3-bi...
5•qlte•1h ago•0 comments

Artificial Intelligence, Economics, Sustainability, and Irreversibility

https://www.alexahn.com/2026/10/artificial-intelligence-economics.html
2•alexahn•1h ago•0 comments

The Cuckoo's Egg

https://en.wikipedia.org/wiki/The_Cuckoo%27s_Egg_(book)
3•sans_souse•1h ago•0 comments

Show HN: Kitaphone – Call mobile phones and landlines directly from the browser

https://kitaphone.com
1•beardnetworks•1h ago•1 comments

Major AI Copyright Ruling Lawyer Explains [video]

https://www.youtube.com/watch?v=SJCw54PUdXg
2•baranul•1h ago•1 comments

Researchers Stranded an AI Agent on a Virtual Island. Things Got Weird

https://gizmodo.com/researchers-stranded-an-ai-agent-on-a-virtual-island-things-got-very-weird-20...
3•em3rgent0rdr•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?