frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Russian billionare takes tiny Norwegian newspaper to court in London

https://www.nrk.no/tromsogfinnmark/russian-billionare-takes-tiny-norwegian-newspaper-barents-obse...
1•hgulldahl•1m ago•0 comments

From Oracle DBA to Postgres Contributor with Karen Jex

https://talkingpostgres.com/episodes/from-oracle-dba-to-postgres-contributor-with-karen-jex
1•thunderbong•2m ago•0 comments

Uninitialized Variables: An Example of Silent Miscompilation

https://uecker.codeberg.page/2026-10-17.html
1•uecker•2m ago•0 comments

Kubernetes Dashboard – Lumovi

https://lumovi.dev/
1•kotapeter•5m ago•1 comments

Most lookups are for things that don't exist

https://cristicretan.ro/articles/2026/10/16/most-lookups-are-for-things-that-dont-exist/
1•frostbyte7•6m ago•0 comments

Timekeepers Have Gotten Rid of the Leap Second and Introduced the Leap Hour

https://www.smithsonianmag.com/smart-news/its-official-timekeepers-have-gotten-rid-of-the-leap-se...
1•emptybits•7m ago•0 comments

Fast Linux bootstrapping by Frans Faase – HackFest 2026 [video]

https://www.youtube.com/watch?v=lPIF_nfqM_g&list=PLE9uuQqRXw6w&index=4
1•lioeters•9m ago•0 comments

2TI LMailer – Native Linux email and groupware (Rust, Tauri v2, local Ollama)

https://2tinteractive.com/apps/lmailer/
1•LebToki•9m ago•0 comments

Glimpse: Visual thinking that stays grounded

https://elorian.ai/blog/introducing-glimpse
1•tibbar•10m ago•0 comments

What We Learned Building a Chatbot for La Silla Vacía's Newsroom Archive

https://gijn.org/stories/building-chatbot-la-silla-vacia-newsroom-archive/
1•runningmike•14m ago•0 comments

Roboto 01: Full-stack Open-source humanoid robot

https://roboparty.com/products/RP1
1•num42•16m ago•2 comments

Scientists Detect Rare Type of Wood Alcohol in Space

https://www.universetoday.com/articles/scientists-detect-rare-type-of-wood-alcohol-in-space
1•runningmike•16m ago•0 comments

How to Run Untrusted Python Code Without Getting Hacked

https://nocomplexity.com/python_security_cheatsheet/
1•runningmike•20m ago•0 comments

EU negotiates sanctions swap with China to rescue critical ASML supplier

https://www.tomshardware.com/tech-industry/semiconductors/eu-negotiates-sanction-swap-with-china-...
3•anigbrowl•25m ago•0 comments

Decomp.dev Shuts Down Because AI Has Made It Too Easy to Decompile Games

https://www.404media.co/video-game-reverse-engineering-community-shuts-down-because-ai-has-made-i...
2•dmitrygr•30m ago•0 comments

What We Talk to When We Talk to Language Models (David J. Chalmers) [pdf]

https://philpapers.org/archive/CHAWWT-8.pdf
1•networked•33m ago•0 comments

Show HN: Calcy – unit-aware, uncertainty-propagating math

https://habitathq.github.io/calcy/
2•themantri•34m ago•0 comments

What has happened to Clipper2 development?

https://github.com/AngusJohnson/Clipper2/discussions/1118
2•abetusk•35m ago•0 comments

Show HN: I built a free collection of browser-based 3D tools

https://3dvalley.com
2•lucak5s•45m ago•0 comments

The Case Against Canadian Nuclear Weapons

https://ras-nsa.ca/en/the-case-against-canadian-nuclear-weapons/
1•JumpCrisscross•48m ago•0 comments

Rival Radar

https://rivalradar.me
1•pork1977•54m ago•0 comments

Why Math Dumped OpenAI

https://raymyers.org/post/math-dumped-openai/
3•xeonmc•55m ago•0 comments

OpenAI outperforms Chinese models in cost per task

https://nikvdp.com/notes/cost-per-task-is-the-number-to-watch/
2•crazyphoton•56m ago•0 comments

Fired Georgia officer gave Flock surveillance camera access to ICE agent husband

https://www.wbrc.com/2026/10/16/police-officer-fired-sharing-flock-login-with-husband-who-works-ice/
3•chirau•1h ago•0 comments

'I'm Not Going to Have Blood on My Hands'

https://www.cjr.org/the-interview/nicole-noren-espn-producer-quit-protest-sports-betting-gambling...
2•Michelangelo11•1h ago•0 comments

Dha Best

http://kitchencooking.42web.io/
1•agasto•1h ago•0 comments

Ask HN: What is the most useful thing AI has done for you?

3•yitchelle•1h ago•3 comments

Show HN: Cwist; a hobby-grade C17 web framework that keeps your app simple

https://github.com/c4punks/cwist
1•gg582•1h ago•0 comments

Letters with 'suspicious substances' sent to US senators and election offices

https://www.bbc.com/news/articles/cmq8n513x523o
2•geox•1h ago•0 comments

Veda: An Operating System with Soul

https://github.com/vahmoh25/Veda/blob/main/documentation/images/paint.png
1•saeedmh100•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?