frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

75 years, 1,300 employees, zero layoffs: How The Gund Company does it

https://www.wsj.com/podcasts/the-journal/how-one-company-avoids-layoffs-completely/f8e0f15c-bb42-...
1•datascientist•10s ago•0 comments

Wearable wireless patch continuously tracks the heart's rhythm for up to 14 days

https://www.rmit.edu.au/news/all-news/2026/nov/lubdub-trial
1•giuliomagnifico•1m ago•0 comments

Show HN: Holy Chip – organize home poker nights (RSVP, blinds timer, settle up)

https://holychip.app/
1•holychip•2m ago•0 comments

Ask HN: Did you buy hardware for Local AI?

1•ptitlaby•2m ago•0 comments

Lakes Are Bizarrely Syncing Up Globally, and Scientists Are Worried

https://www.404media.co/lakes-are-bizarrely-syncing-up-globally-and-scientists-are-worried/
1•speckx•2m ago•0 comments

Show HN: Open Pi, a Raspberry Pi manager for your phone

https://play.google.com/store/apps/details?id=com.artsvit.openpi&hl=en_US
1•artsvit•5m ago•0 comments

XFinity is ending CableCARD support December 14, 2026

https://twitter.com/ThrillScience/status/2123831483169477092
1•fortran77•5m ago•1 comments

Pensions Ate the State

https://app.ft.com/content/6986a3b5-12ed-4aad-ac61-f86ded3e6fa3
1•jc_811•8m ago•0 comments

Get rid of Siri AI's aggressive writing controls in Mail

https://sixcolors.com/post/2026/11/get-rid-of-siri-ais-aggressive-writing-controls-in-mail/
1•CharlesW•8m ago•0 comments

Bending Spoons buys Mailchimp for $3.68B

https://techcrunch.com/2026/11/20/bending-spoons-buys-mailchimp-for-3-68-billion/
1•jpalomaki•8m ago•0 comments

Anthropic shares tank after IPO as the Nasdaq erases 2026 gains

https://www.nbcnews.com/business/markets/anthropic-shares-markets-selloff-nasdaq-rcna610394
3•lelanthran•9m ago•1 comments

Jim Simons on what he'd trade to solve the Riemann hypothesis (2015) [video]

https://www.youtube.com/watch?v=QNznD9hMEh0
1•philipfweiss•9m ago•0 comments

Chinese attackers used AI agents to find and exploit a university zero-day

https://www.theregister.com/security/2026/11/20/china-attackers-deployed-ai-agents-that-autonomou...
1•waximabbax•10m ago•0 comments

Dutch police says they foiled attempted violence linked to Revolut data leak

https://www.reuters.com/business/finance/dutch-police-says-they-foiled-attempted-violence-linked-...
3•croes•10m ago•0 comments

Can you launch a solo business with AI?

https://blog.bytester.net/posts/launch-solo-business-with-ai/
1•russellendicott•10m ago•1 comments

Show HN: Out of Policy – Break an AI agent's spending guard for $75 USDC

https://play.outbid.sh
1•WZRDOFZO•10m ago•0 comments

Suspicious Minds: Unmonitorable AI Undermines Accountability

https://www.lawfaremedia.org/article/suspicious-minds--unmonitorable-ai-undermines-accountability
1•hn_acker•12m ago•0 comments

The College Kids Who Drove a Duck Across the Americas

https://daily.jstor.org/the-college-kids-who-drove-a-duck-across-the-americas/
1•speckx•12m ago•0 comments

Bigfoot believers get a boost from an unlikely ally: The U.S. Forest Service

https://www.washingtonpost.com/nation/2026/11/20/bigfoot-believers-get-boost-an-unlikely-ally-us-...
1•reaperducer•15m ago•0 comments

Five.sh Archive (64 GB)

https://five.sh/files/
2•o_-_o•17m ago•0 comments

Plazzle – daily pathfinding puzzle game

https://plazzlegame.com
1•argentumsurfer•17m ago•0 comments

The progress and strategies I'm considering for working on NuxiPro

https://center.nuxipro.com/en/blog/design-and-server/
1•sbabas•18m ago•0 comments

Bexos – Lightweight Flask/SQLite retro board for side-project ideas

https://bexos.pythonanywhere.com
1•MirasBeksultan•19m ago•0 comments

How many Phrack 73 articles used AI?

https://dustri.org/b/how-many-phrack-73-articles-used-ai.html
1•speckx•19m ago•0 comments

Building a Software Factory

https://runway.com/news/engineering/building-a-software-factory
1•aurbano•20m ago•0 comments

Starwright – a browser orbital flight game written by AI agents

https://github.com/jsmith0475/Starwright
1•jsmith0475•20m ago•0 comments

Humans Age Faster at 2 Sharp Peaks, Study of the Immune System Shows

https://www.sciencealert.com/humans-age-faster-at-2-sharp-peaks-study-of-the-immune-system-shows
2•randycupertino•22m ago•0 comments

Agentic Ads: How Advertising Changes When AI Agents Do the Shopping

https://alok929699.substack.com/p/agentic-ads-how-advertising-changes
1•gotraven•23m ago•0 comments

First Principles Thinking and a Skill to Use It

https://medium.com/towards-artificial-intelligence/first-principles-thinking-and-a-skill-to-use-i...
1•cadeos•24m ago•0 comments

Open-source harness that makes Claude better for game dev

https://wasdengine.com/
3•j_zhao•24m 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?