frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Never Gonna Print You Up

https://dixken.de/blog/never-gonna-print-you-up
1•ta988•14m ago•0 comments

Crypto industry braces for reckoning over Trump ties

https://www.ft.com/content/f1b98a61-4103-447c-bb9a-3dccc0819f61
1•JumpCrisscross•18m ago•1 comments

WaveDudeNext 2D Wave Simulator

https://github.com/graealex/WaveDudeNext
1•sweetdingoes•21m ago•0 comments

In Praise of Cash (2017)

https://aeon.co/essays/if-plastic-replaces-cash-much-that-is-good-will-be-lost
1•germanrabbit•25m ago•0 comments

There's No Such Thing as a Stock-Market Bubble

https://www.wsj.com/opinion/theres-no-such-thing-as-a-stock-market-bubble-159ea117
1•gmays•30m ago•0 comments

Ask HN: LLM-Resistant Publishing Strategies

1•negura•32m ago•0 comments

Show HN: SEC Fundamentals – free financial API

https://www.quotelinks.com/api/sec-fundamentals/
1•chartwidgets•38m ago•0 comments

James Barnor: Outstanding Contribution to Photography 2027

https://www.worldphoto.org/blogs/05-11-26/10-things-know-about-james-barnor-outstanding-contribut...
3•Tomte•38m ago•0 comments

Windows Are Absurd (From an engineering standpoint)

https://practical.engineering/blog/2026/11/3/windows-are-absurd
2•vismit2000•41m ago•0 comments

Lens – The Browser Your iPhone Deserves

https://lens.maximos.work/
2•microflash•42m ago•0 comments

Fourteen MB Hinglish STT pWER 29, stary words 2.3/100

https://hitl.systems/models/lipi-hn/
3•gamebit07•42m ago•0 comments

Show HN: ScrivenSpell

https://memalign.github.io/m/spell/
2•memalign•46m ago•0 comments

The message format that was already in ASCII

https://openbohemians.org/blog/the-message-format-in-ascii/
2•tabtom•47m ago•0 comments

BYD's electric hypercar hits 312 MPH, first production car over 500 km/h

https://electrek.co/2026/11/06/byd-yangwang-u9-xtreme-first-production-car-500-km-h/
2•toomuchtodo•47m ago•1 comments

Amp is the best thing since sliced bread

https://ben.page/amp
2•jer0me•51m ago•2 comments

Reconfigurable Photonic Integrated Circuits in Glass, Femtosecond Laser Writing [pdf]

https://www.joanneum.at/wp-content/uploads/2026/08/photonics-13-00731-v2-1.pdf
2•peter_d_sherman•1h ago•0 comments

More Than 30M Years Ago, Monkeys Rafted Across the Atlantic to South America

https://www.smithsonianmag.com/science-nature/monkeys-raft-across-atlantic-twice-180974637/
2•thunderbong•1h ago•0 comments

The Specter of Neuralese

https://www.astralcodexten.com/p/the-specter-of-neuralese
1•gmays•1h ago•0 comments

Show HN: I built an AI code editor that for teams

https://www.rxcode.dev/
1•sirily11•1h ago•0 comments

Digital Presenteeism as a Stratified Signalling System [pdf]

https://www.productivity.ac.uk/wp-content/uploads/2026/11/WP083-Digital-Presenteeism-November-202...
2•rohanm93•1h ago•0 comments

AI labs are paying $100K–$2M for internal company workflow data

https://calendly.com/d/d3ss-w9w-7vs
2•dkggwl1990•1h ago•1 comments

Joe Rogan Experience #2578 – Calley Means [video]

https://www.youtube.com/watch?v=dMBBOawFy_4
1•jakeogh•1h ago•0 comments

70% of Brits say please or thank you when speaking to AI, some even apologize

https://www.techradar.com/pro/70-percent-of-brits-say-please-or-thank-you-when-speaking-to-ai-and...
3•giuliomagnifico•1h ago•1 comments

DeepSeek Harness – Creator Mode

https://www.reddit.com/r/DeepSeek/s/sxg7aAM6rS
3•sexy_seedbox•1h ago•0 comments

We're All Idiots

https://samparr.com/were-all-idiots/
2•Olshansky•1h ago•0 comments

Have a 401(k)? Help ProPublica Investigate What's Happening to Your Money

https://www.propublica.org/getinvolved/share-401k-fees-retirement-investment
2•toomuchtodo•1h ago•1 comments

Show HN: Codend – Build and publish web apps with AI agents

https://codend.dev
1•anythic•1h ago•0 comments

British Rail Double Arrow

https://en.wikipedia.org/wiki/British_Rail_Double_Arrow
2•ggm•1h ago•0 comments

Reddit User Detects Decrease in Thinking Blocks for Opus 5.5

https://www.reddit.com/r/claude/comments/1xql02s/is_opus_55_nerfed/
3•htrp•1h ago•1 comments

Maths Genealogy Project Graph

https://mgpgraph.com/
1•Tazerenix•1h 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?