frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

L3Harris refuses to turn over logs from November ground stop issue, US says

https://www.reuters.com/business/autos-transportation/l3harris-refuses-turn-over-logs-november-gr...
1•usernomdeguerre•1m ago•0 comments

Free Online AI Christmas Card Maker – Editable Templates

https://aichristmascards.org/
1•bingbing123•1m ago•0 comments

Show HN: Little Brisbane

https://ljowen.github.io/Little-Brisbane/
1•ioseph•2m ago•0 comments

Top Republican alleges larger Nvidia China scandal

https://www.axios.com/2026/12/03/brian-mast-huang-nvidia-scandal-larger
1•Reddit_MLP2•3m ago•0 comments

What's Going on with the TVS Group?

https://finshots.in/archive/whats-going-on-with-the-tvs-group/
1•vismit2000•6m ago•0 comments

Transformer Architecture Explained: A Comprehensive Review

https://waylandz.com/blog/transformer-architecture/
1•auraham•7m ago•0 comments

Joint statement on transition to post-quantum cryptography

https://openai.com/index/joint-statement-post-quantum-cryptography/
6•thomasm6m6•9m ago•0 comments

Show HN: A local SQL workspace for CSVs and databases, for you and your AI agent

2•tanin•10m ago•0 comments

We ship terabyte LLM models 50x faster

https://www.databricks.com/blog/how-we-ship-terabyte-llm-models-50x-faster
1•Jasonsf737•11m ago•0 comments

Agent Harnesses Need Their eBPF

https://ut-infraai.github.io/2026/12/01/agent-harnesses-need-their-ebpf/
2•ronyw7•11m ago•0 comments

Learnable Programming (2012)

https://worrydream.com/LearnableProgramming/
1•TanZeng•13m ago•0 comments

Loopy: A tool for thinking in systems (2017)

https://ncase.me/loopy/
1•AlenaSato•14m ago•0 comments

OmniDrive: Firmware for optical drives to read proprietary game discs

https://github.com/RibShark/OmniDrive
1•Cilan798•17m ago•0 comments

1.5M Jobs

https://blog.andrewyang.com/p/15-million-jobs
1•avonmach•21m ago•0 comments

The Mecha Blog – Comet's October Odyssey Update

https://mecha.so/blog/comets-october-odyssey-update
1•mroche•22m ago•0 comments

Show HN: Chengdu Roam – Hand-painted 3D open-world Chengdu in Three.js

https://studio.nodebudget.dev/games/chengdu-roam/
1•wordwright•24m ago•0 comments

Spin Ends California Service, Leaving Lime as SF's Only Rental Scooter Operator

https://sfist.com/2026/12/02/spin-ends-california-service-leaving-lime-as-sfs-only-rental-scooter...
2•mikhael•27m ago•0 comments

Transformer Architecture: From Intuition to Implementation

https://waylandz.com/llm-transformer-book-en/
2•auraham•31m ago•0 comments

Statement on Recent Advances in Cryptographic and Cybersecurity Capabilities

https://www.cisa.gov/news-events/news/joint-statement-recent-advances-cryptographic-and-cybersecu...
2•pandemicsyn•31m ago•0 comments

Electronics Journal (1930)[pdf]

https://www.worldradiohistory.com/Archive-Electronics/30s/Electronics-1930-04-Original.pdf
1•ghastmaster•32m ago•1 comments

Show HN: Interval (FM) Playlist – Tabata and HIIT Playlist Creator

https://intervalplaylist.com/
1•siegers•34m ago•0 comments

Huawei 5G Wins Connectivity Solution of the Year at Africa Tech Festival

https://www.huawei.com/en/news/2026/11/atf-connectivity-solution-award
8•yogthos•34m ago•2 comments

Macrohistory in Six Facts

https://braddelong.substack.com/p/crosspost-basil-halperin-macrohistory
2•wawayanda•35m ago•0 comments

Show HN: A way to find your Spotify Twin

https://twin.modulime.com/
4•manbitesdog•39m ago•2 comments

OpenRSI-Physics

https://openrsi.foundation/openrsi-physics/#home
1•Smith42•43m ago•0 comments

Joint statement on transition to post-quantum cryptography

https://www.anthropic.com/news/joint-statement-post-quantum-cryptography
25•meetpateltech•47m ago•1 comments

The New Science of Managing Agents

https://agent-sciences.org/blog/ams/
1•avyfain•53m ago•0 comments

Use H.264 to decide which tokens of video diffusion condition can skip

https://github.com/Kiteretsu77/CodecOPSD
3•Kiteretsu•54m ago•1 comments

Arcane Lantern

https://github.com/ArcaneLantern
1•karlding•55m ago•0 comments

Beeswax 1.04: scheduled blocks and a lot of thoughts

https://beeswax.getflourish.org/blog/beeswax-1-04/
1•iloveyoutwo•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?