frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: See AI trends heat up in real time

https://ai-news.jagular.io
1•jnaina•1m ago•0 comments

Ossdoctor – a health check for open source repos that fixes what's missing

https://github.com/jalensuggs77/ossdoctor
1•firstAu•2m ago•0 comments

Burbank's Real-Time Intelligence Center

https://burbank-ledger.pages.dev/articles/rtic-surveillance/
1•measurablefunc•3m ago•0 comments

Show HN: I spent two days building this online multiplayer game with Claude Code

https://pawnrush.xiaohan.dev/
1•hanstyle•4m ago•0 comments

Show HN: Grafista – AI graphic designer built to fight slop

https://grafista.io/
1•GiorgosGennaris•7m ago•0 comments

OnlyFans Creators Are Pissed That Meta Lets Muse Talk Dirty

https://www.wired.com/story/onlyfans-creators-are-pissed-that-meta-lets-muse-talk-dirty/
1•Topfi•8m ago•0 comments

Launch HN: Alter (YC S25) – Access control for multi-user agents

https://alterauth.com/
2•simfinii•8m ago•0 comments

Port of Coss.ui Components to Svelte

https://www.cossui-svelte.com/
1•orefalo•9m ago•0 comments

In Race with U.S., China Struggles to Recruit Foreign A.I. Researchers

https://www.nytimes.com/2026/10/06/science/china-ai-research-recruitment.html
1•gmays•9m ago•0 comments

Building a Custom 3D-Printed Micro Helicopter [video]

https://www.youtube.com/watch?v=8z4W0IoFQ4g
1•justathrow-321•12m ago•1 comments

Ask HN: What Does Noul Mean?

1•theanonymousone•12m ago•0 comments

Google DeepMind says four AI agents beat Minecraft in 27 hours

https://www.tomshardware.com/tech-industry/artificial-intelligence/google-deepmind-claims-four-ge...
1•jonbaer•12m ago•0 comments

A team of Gemini 4 Argon agents beats Minecraft

https://arxiv.org/abs/2610.22319
1•jonbaer•13m ago•0 comments

mini-Lean-Agent: A Coding-Agent Baseline for Lean

https://arxiv.org/abs/2610.17331
1•matt_d•17m ago•0 comments

Block Blast harvests its players for ad money

https://ayoships.com/breakdowns/block-blast
1•robin_reala•19m ago•0 comments

Jexxa Now Includes an Automatic Evaluation Suite

https://jexxa.org/
1•sankde•20m ago•1 comments

Stop training forecast models. Timeseries just went zero-shot

https://nitishagar.medium.com/stop-training-forecast-models-time-series-just-went-zero-shot-c7ff7...
1•nitishagar•28m ago•0 comments

PHP warns it plans to release 2 emergency patches imminently

https://arstechnica.com/security/2026/10/php-maintainers-tell-web-devs-to-prepare-themselves-for-...
2•jaredwiener•40m ago•1 comments

Giving AI video some Remembrance of things past

https://www.unite.ai/giving-ai-video-some-remembrance-of-things-past/
1•50kIters•41m ago•0 comments

Pragtical v3.14 Lua-based text editor adds menus, floating views, and sessions

https://pragtical.dev/blog/pragtical-v3140-release
1•rd07•41m ago•0 comments

MagicRoute: Routing Without Physical Routers

https://tailscale.com/blog/magicroute-beta
1•mfrw•45m ago•0 comments

World Classics: Modern Translations of the Iliad and Odyssey (EN, FR, DE, ES)

https://worldclassics.org/
1•epsteingpt•47m ago•1 comments

What Will Be Scarce

https://aleximas.substack.com/p/what-will-be-scarce
1•thewileyone•47m ago•0 comments

Omarchy made me rethink my Mac

https://cloudjourneyblog.rohi-lab.org/blog/summon-os
1•RohiRik•51m ago•2 comments

Static vs. dynamic tradeoffs – Rich Hickey (Clojure/Conj 2026) [video]

https://www.youtube.com/watch?v=P5eO7BNyJao
1•fmjrey•53m ago•1 comments

Claude Opus 5.5 finished Baldur's Gate 3 on its own in 39 hours

https://bogdantruta.com/blog/claude-finished-baldurs-gate-3/
2•swyx•54m ago•1 comments

Kvleak:my Claude Code cache hit was 95%,fifth of input spend leaked

https://github.com/shangliy/kvleak
1•shangliy•57m ago•0 comments

Android 17 for RISC-V Available for the RVA23 Profile Through Rise

https://riseproject.dev/2026/10/20/android-17-available-on-rva23-with-rise/
1•fork-bomber•59m ago•0 comments

What They're Not Telling You About Data Centers [video]

https://www.youtube.com/watch?v=1V_o8tfuGdw
2•jonbaer•59m ago•0 comments

C vs. C#: racing VLC's Gaussian blur

https://martinfinkel.com/blog/gaussian-blur-c-vs-csharp/
1•martz•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?