frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

White House Authorizes Private U.S. Companies to Hack Foreign Cybercrime Groups

https://www.whitehouse.gov/presidential-actions/2026/08/expanding-capabilities-to-combat-transnat...
1•iamronaldo•4m ago•0 comments

Cursor Design Mode

https://cursor.com/blog/design-mode
1•indigodaddy•4m ago•0 comments

Beyond the Backrooms: Creating Public Spaces to Be Less Liminal

https://www.calmtech.institute/post/beyond-backrooms-creating-public-spaces-to-be-less-liminal-an...
1•SLHamlet•6m ago•0 comments

Hong loses Wisconsin primary after late-night "human error" in Milwaukee

https://notthebee.com/article/francesca-hong-loses-wisconsin-primary-after-late-night-ballot-dump
1•bilsbie•6m ago•0 comments

The Bench as a Made Object.

https://idle.news/blog/the-bench-as-a-made-object/
1•bookofjoe•6m ago•0 comments

Principia Mathematica is modern and insightful

https://okmij.org/ftp/Computation/Impressions/PrincipiaMathematica.html
1•matt_d•7m ago•0 comments

Booksellers suspect AI firms are buying and then destroying rare books

https://arstechnica.com/tech-policy/2026/08/heres-a-balm-if-the-idea-of-destroying-books-to-train...
2•throw0101a•12m ago•0 comments

World Model Architectures: A Survey (2018–2026)

https://github.com/natemurthy/world-models
2•natemurthy•13m ago•1 comments

Who wants to fuck with Elon Musk?

https://www.cardsagainsthumanity.com/elonhasnofriends
7•embedding-shape•13m ago•0 comments

LiteLLM supply chain attack hit 2,488 organisations

https://twitter.com/IntCyberDigest/status/2087581727619162296
2•plurby•16m ago•0 comments

The tug-of-war between engagement and dysregulation

https://www.sciencedirect.com/science/article/pii/S0747563226001226
2•asoberbeck•20m ago•0 comments

Stealing Reasoning Traces from Proprietary LLM APIs

https://www.alphaxiv.org/abs/2608.09867
5•buredoranna•24m ago•0 comments

Show HN: WindStrap – Bootstrap 5.3.8 to Tailwind CSS Using DeepSeek V4 Flash

https://github.com/rip747/windstrap
2•thrownaway561•25m ago•0 comments

Why space is a terrible place to cool a data center

https://thenewstack.io/spacex-and-nvidias-orbital-ai-datacenter-fantasy/
8•CrankyBear•25m ago•0 comments

Show HN: A marketplace where AI agents buy services from AI agents

https://aaas-marketplace-1089237826218.asia-northeast1.run.app
3•mt2user•26m ago•1 comments

Talent Disrupted (2024)

https://www.strada.org/reports/talent-disrupted
2•toomuchtodo•26m ago•1 comments

Paper-mill papers peddled in ads were later published

https://www.science.org/content/article/hundreds-paper-mill-papers-peddled-ads-were-later-published
2•sbulaev•27m ago•0 comments

New 'treatment-first' addiction toolkit emphasizes faith, abstinence

https://www.statnews.com/2026/08/12/addiction-homelessness-hhs-toolkit-harm-reduction/
2•EA-3167•27m ago•0 comments

Ask HN: How are you finding the job market in 2026?

4•dzonga•27m ago•0 comments

Amiga history: In the beginning was CAOS (1988)

http://obligement.free.fr/articles_traduction/in_the_beginning_was_caos_en.php
2•doener•30m ago•0 comments

Suno: An update to our downloads policy and Terms of Service

https://suno.com/blog/suno-updates-tos
2•throwaway2027•30m ago•0 comments

Banner Depot 2000: archive web ad banners from 1990s and early 2000s

https://www.banner-depot-2000.net/
2•jchook•34m ago•0 comments

TripOS/68k

https://web.archive.org/web/20131016145634/http://www.amigahistory.co.uk/tripos.html
2•doener•35m ago•1 comments

Locating Evolution in Artificial Successor Systems

https://zenodo.org/records/21892666
2•dhedegreen•35m ago•0 comments

Lovable: Connect your app to Google Analytics

https://docs.lovable.dev/integrations/google-analytics
2•doener•37m ago•0 comments

Website Developer Startup Built2WinWeb

https://built2winweb.com/
2•jacobcampbell•39m ago•0 comments

SlateDB Benchmarks

https://benchmark.slatedb.io/0.15.0/workload/balanced/
2•riccomini•46m ago•0 comments

Art Invented Humanity

https://aeon.co/essays/humans-did-not-invent-art-it-was-the-other-way-around
2•prismatic•46m ago•0 comments

I built a browser-native SysEx librarian for 80s/90s synthesizers

https://bipluk.com/
3•halfradaition•46m ago•0 comments

The Indo-European Family Tree

https://djbinder.com/language-tree/
2•benbreen•46m ago•1 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?