frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Tsiolkovsky's 51k-page archive, machine-transcribed with measured accuracy

https://beskvladimir-create.github.io/tsiolkovsky-papers/
1•vladimirbesk•50s ago•0 comments

Show HN: Planetary Energy Routing Protocol (PERP)

https://github.com/WVGlobal/Planetary-Energy-Routing-Protocol
1•WVGlobal•1m ago•0 comments

Show HN: Submit your good SaaS for free

https://goodsaas.xyz
2•its_ajseven•6m ago•0 comments

Post-scarcity abundance begins by manifesting first as youth unemployment

https://twitter.com/i/status/2092041265781277007
3•Michelangelo11•13m ago•0 comments

"Functional unemployment" nearing 25% in U.S., analysis finds [video]

https://www.youtube.com/watch?v=-y2gKIGFTns
2•mgh2•13m ago•0 comments

Graphene can be made using a kitchen blender, a mobile phone and a newspaper

https://theconversation.com/the-wonder-material-graphene-can-be-made-using-a-kitchen-blender-a-mo...
3•geox•15m ago•0 comments

New technology lets cloud AI models process your data without privacy leaks

https://plugos.net/blog/2026/08/confidential-ai-how-plugclaw-keeps-your-ai-work-private/
3•ElowenWinslet•15m ago•0 comments

'Don't ask me to print your ChatGPT birthday card': Hitting back at AI 'slop'

https://www.bbc.co.uk/news/articles/cq89jpjeq7ko
2•erehweb•15m ago•0 comments

Hot Chips 2026: Intel's Wildcat Lake

https://chipsandcheese.com/p/hot-chips-2026-intels-wildcat-lake
2•ingve•18m ago•0 comments

Open-Weight Masked Introspection: Measuring What LMs Can Report About Their Own

https://arxiv.org/abs/2608.20569
2•sbulaev•20m ago•0 comments

Actually Queryable Executables

https://fzakaria.com/2026/08/24/actually-queryable-executables
2•ingve•20m ago•0 comments

DefCon 34 – Stalking the Wily Hacker: 40 years later – Cliff Stoll [video]

https://www.youtube.com/watch?v=656058JxTM0
4•ericd•28m ago•0 comments

Comparing the two holograms on the Windows 95 box

https://devblogs.microsoft.com/oldnewthing/20260824-00/?p=112643
1•st_goliath•31m ago•0 comments

Show HN: CookWing, an AI chef that doesn't hallucinate quantities

https://play.google.com/store/apps/details?id=com.redwing.vibecooking&hl=en_US
1•BananeDeRungis•33m ago•0 comments

Shazam.el

http://yummymelon.com/devnull/announcing-shazam-el.html
1•Tomte•33m ago•0 comments

Omarchy Exploit

https://www.youtube.com/watch?v=pgNvD9DaZxY
1•krehwell•35m ago•0 comments

Speculative Programmatic Tool Calling

https://alexzhang13.github.io/blog/2026/spec-ptc/
2•iamwil•38m ago•0 comments

Show HN: ShrinkRay – HandBrake for TinyML

https://github.com/TarulAhsan/ShrinkRay
1•EmonAhsan•41m ago•0 comments

Five spending categories absorbed 88% of the US middle fifth's raise (2013-2023)

https://efficientdollar.com/blog/leftover-money-after-essentials/
1•lundj•43m ago•0 comments

LLMPanel Deploy vLLM to RunPod or Vast.ai Without Kubernetes

https://llmpanel.io
1•SquidJack•46m ago•0 comments

Silence Is a Feature

https://aradar.top/posts/silence-is-a-feature/
3•aradar46•46m ago•0 comments

Beyond China's humanoid robots, a quieter machine revolution is unfolding

https://www.bbc.com/news/articles/c62m4zn1q6mo
2•nairteashop•48m ago•0 comments

National Police Union Blasts Flock CEO for Turning Against Police

https://ipvm.com/reports/union-who-flock
1•jhonovich•50m ago•0 comments

Artificial Intelligence Market (2026 – 2033)

https://www.grandviewresearch.com/industry-analysis/artificial-intelligence-ai-market
1•Rutujad•52m ago•0 comments

Show HN: Tmtail – Multi-log tail with coloring, search, and history via tmux

https://github.com/themadsens/tmtail
1•themadsens•55m ago•0 comments

Surge in AI-assisted complaints putting extra strain on councils and schools

https://www.bbc.co.uk/news/articles/c2dk6wzjw23o
2•tomwphillips•55m ago•0 comments

Avery–MacLeod–McCarty Experiment

https://en.wikipedia.org/wiki/Avery%E2%80%93MacLeod%E2%80%93McCarty_experiment
1•num42•57m ago•0 comments

Ukraine hands Britain 'goldmine' of secret battlefield intelligence

https://www.independent.co.uk/news/uk/home-news/ukraine-britain-battlefield-intelligence-russia-s...
2•Teever•59m ago•0 comments

Moral Realism

https://philosophy.unc.edu/wp-content/uploads/sites/122/2014/07/Moral-Realism.pdf
1•andsoitis•59m ago•0 comments

I made HACKER AI for you vibecoded app

https://www.netherite.uz
1•apexxx•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?