frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Minutes from disaster: inside flydubai 1073's plunge

https://www.reuters.com/graphics/ISRAEL-GULF/FLIGHT-DATA/klvyrnrmbpg/
1•giuliomagnifico•17s ago•0 comments

After Abusing DMCA, Bricks & Minifigs Sues To Unmask Whoever Runs The BAM Map

https://www.techdirt.com/2026/10/02/bricks-minifigs-really-doesnt-want-you-to-know-about-the-bam-...
1•hn_acker•48s ago•0 comments

Does your work have an answer key?

https://coached.com/essays/does-your-work-have-an-answer-key/
1•rohanm93•1m ago•0 comments

Skill Acquisition

https://elijahpotter.dev/articles/skill-acquisition
1•chilipepperhott•4m ago•0 comments

Show HN: UseJunction – Find what your team's AI tools usage

https://github.com/use-junction/usejunction
1•Dinuda•4m ago•0 comments

Salvage Work Begins on WWII 'Time Bomb' Wreck in Thames Estuary

https://gcaptain.com/salvage-work-begins-on-wwii-time-bomb-wreck-in-thames-estuary/
1•gumby•4m ago•0 comments

Extending swe-2 reward function for Pareto frontier steering

https://anishlk.com/swe-2-extended/
1•anishlk•5m ago•0 comments

Show HN: Ek Din – interactive website to experience Indian 90s nostalgia

https://ek-din.com/
1•akashtndn•5m ago•0 comments

Anthropic's proposed valuation is easily calculated

https://twitter.com/garymarcus/status/2104725819524612483
1•JSR_FDED•5m ago•0 comments

Paramount and Warner Bros. Discovery to Become Skydance

https://techcrunch.com/2026/10/02/paramount-and-warner-bros-discovery-to-become-skydance/
1•DropDead•7m ago•1 comments

SFT matches RL if you MCMC the training data first

https://arxiv.org/abs/2610.02140
1•mrkn1•8m ago•0 comments

AI agents failed against a live business, and how each was caught

https://github.com/taylorancapital/nothing-threw
1•taylorancapital•11m ago•0 comments

Lean, Mean Computing Machine

https://www.wsj.com/arts-culture/books/the-proof-in-the-code-review-lean-mean-computing-machine-3...
1•digital55•14m ago•0 comments

Around 2-6% of World Bank foreign aid got siphoned into crypto wallets

https://www.nber.org/papers/w35655
2•bko•16m ago•0 comments

All 5 Major South Korean Banks Hit: Simultaneous 'AI Hacking' Attacks Spark Fear

https://www.chosun.com/english/market-money-en/2026/10/02/JVEBGKXTPRGQTLCP3EIDBKPPCM/
2•giuliomagnifico•16m ago•0 comments

Show HN: Snip – Terminal notes app that Claude can read and write via MCP

https://github.com/jerichosiahaya/snip
1•ikigaineo•18m ago•0 comments

N-Body Problem:Exploring the N-body problem through information theory

https://github.com/quantiota/N-Body-Problem
1•quantiota•19m ago•0 comments

Show HN: Web server with built-in metrics and analytics dashboard for any sites

https://github.com/Qbix/webserver/blob/main/docs/METRICS.md
1•EGreg•19m ago•0 comments

What If We Stopped Using GPUs? [video]

https://www.youtube.com/watch?v=xc2FTBGRSJo
3•sandslash•20m ago•0 comments

Prozac use for childhood depression skewed by single flawed medical trial

https://www.nature.com/articles/d41586-026-02769-x
2•sbulaev•23m ago•0 comments

Leaderboards and speedrun.com's new terms of service

https://therun.gg/blog/leaderboards-speedruncom
2•Kayvanian•23m ago•0 comments

AI didn't kill programming, you did

https://learncodethehardway.com/blog/39-ai-didnt-kill-programming-you-did/
2•chanux•24m ago•1 comments

Small Long Covid antibody trial had one striking before/after gut tissue result

https://www.nature.com/articles/s41467-026-77925-y
2•thenerdhead•25m ago•0 comments

Show HN: I'm color blind, so I built a way to show people how I see

https://www.josh.ing/howisee
2•jshchnz•25m ago•1 comments

Migrating 300 namespaces from self-hosted Temporal to Temporal Cloud

https://www.coinbase.com/blog/migrating-namespaces-from-self-hosted-temporal-to-temporal-cloud
1•dukebartnik•26m ago•0 comments

Rethinking LLM Serving with System One Models

https://supercomputing-system-ai-lab.github.io/blogs/rethinking-llm-serving-with-jev/
1•matt_d•27m ago•0 comments

From the creator of Redis; run LLM locally with ds4

https://dwarfstar.sh/
2•fibo•29m ago•0 comments

New tool means no more CAD needed when 3D print desiging

https://www.partforge.ai/blog/welcome
1•siosio•30m ago•0 comments

A couple tiny Codex TUI features

https://www.brandur.org/fragments/codex-tui-tiny-features
1•aray07•30m ago•0 comments

Qubes OS 4.3.2 has been released

https://www.qubes-os.org/news/2026/10/02/qubes-os-4-3-2-has-been-released/
1•andrewdavidwong•34m 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?