frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

One Small Bug

https://nesbitt.io/2026/10/23/one-small-bug.html
1•robin_reala•1m ago•0 comments

Tell HN: Steamcmd doesn't work on Apple Silicon

1•stdc105•4m ago•0 comments

Go Time Patterns for Agent Scheduling

https://cheikhhseck.medium.com/10-go-time-patterns-for-agent-scheduling-8e0b64dffb5e
1•cheikhdev•5m ago•1 comments

Brotli vulnerability affects curl and Git

https://github.com/advisories/GHSA-9v8h-qqgm-4m35
1•bmitch3020•6m ago•1 comments

Show HN: LeakLock – Gitleaks for your live site(finds keys with no known format)

https://github.com/sgroy10/Leaklock
1•sgroy10•6m ago•0 comments

Alaska's Senate Race Could Be Decided by Salmon

https://www.newyorker.com/news/the-political-scene/alaskas-senate-race-could-be-decided-by-salmon
1•littlexsparkee•8m ago•0 comments

CTG – IT Consulting and Digital Transformation Services

1•jamesmithctg•10m ago•0 comments

Is this the new cyber normal?

https://drew.silcock.dev/blog/is-this-the-new-cyber-normal/
2•drewsberry•12m ago•0 comments

Capitalists Don't Take on "Risk," Workers Do

https://www.currentaffairs.org/news/capitalists-dont-take-on-risk-workers-do
2•robtherobber•13m ago•0 comments

Living House: Adaptive UI and docs using in-browser inference

https://passo.uno/adaptive-ui-docs-using-llms/
1•theletterf•14m ago•0 comments

Chrome now warns before unencrypted HTTP connections

https://blog.google/security/chrome-now-warns-before-insecure-http-connections/
1•jhalderm•14m ago•0 comments

Disgraced eMudhra drops out of TLS business after using cert private key of 4

https://arstechnica.com/security/2026/10/disgraced-emudhra-drops-out-of-tls-business-following-ce...
1•joozio•15m ago•0 comments

How Much Damage Do Fake Shops Cause?

https://nebty-id.com/en/doppelcart-fake-shop-economics/
1•benny_s•16m ago•0 comments

No Need for Retirement When Utopia Is Around the Corner

https://blog.jim-nielsen.com/2026/skip-retirement-for-utopia/
2•speckx•18m ago•0 comments

Black Mirror: Be Right Back

https://www.howclosetoblackmirror.com/be-right-back
1•beatthatflight•20m ago•0 comments

Steam Next Fest Has Become a Disaster and a Grim Look at the Future

https://kotaku.com/steam-next-fest-has-become-a-massive-disaster-and-a-grim-look-at-the-future-20...
1•natebc•22m ago•0 comments

Three Rights of the Image

https://medium.com/@smoking2man/three-rights-of-the-image-how-the-visual-takes-possession-of-real...
1•Aldus551•23m ago•0 comments

Agentic Testing: Where Agents Fit in the E2E Testing Stack

https://slack.engineering/agentic-testing-where-agents-fit-in-the-e2e-testing-stack/
1•ankitg12•23m ago•1 comments

EL2 hypervisor and toolchain that boots macOS on the Snapdragon X2 Elite

https://github.com/Snapintosh/Snapintosh
1•hard_times•23m ago•0 comments

OpenAI's Ad Pixel Tracks by Default, and European Shops Aren't Switching It Off

https://ciphercue.com/blog/openai-chatgpt-ad-pixel-european-shops
2•adulion•24m ago•0 comments

Run AI prompts in any app from your menubar

https://www.snippetbar.com
1•martin_rariga•25m ago•0 comments

Is anybody still coding in PHP?

1•cfarre•26m ago•2 comments

Farewell, BioWare: The End of an RPG Giant

https://gardinerbryant.com/farewell-bioware-the-end-of-an-rpg-giant/
2•speckx•29m ago•0 comments

I get 215 GitHub notifications a day, so I built a bot to triage them

https://paolino.me/copilot-triage/
1•earcar•29m ago•0 comments

Ask HN: Qualcomm Atheros driver issues on Linux firmware?

1•coffeebar•31m ago•0 comments

Snapchat Now Supports PlayCanvas Games

https://blog.playcanvas.com/snapchat-now-supports-playcanvas-games/
1•ovenchips•33m ago•0 comments

Show HN: Orbit – A local macOS workspace for side projects

https://orbitdesktop.com/
1•capten_masin•33m ago•0 comments

Dutch government had hacked into Jared Kushner's phone

https://twitter.com/jaredkushner/status/2113376217415958767
19•teekert•35m ago•5 comments

Agent management is people management?

https://www.youtube.com/watch?v=VcIlkaI0mUk
1•claudiacsf•39m ago•1 comments

Show HN: Best otaku AI to chat about Anime with

https://otaku.animearray.site/
3•anitroves•40m ago•2 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?