frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Cyber Letters of Marque and Reprisal – Digital Privateers to Combat Cyber Crime

https://www.scribd.com/document/1062415707/Cyber-Letters-of-Marque-and-Reprisal
1•Vaslo•31s ago•0 comments

L3 Simulator: agent orchestrator over GH issues

https://github.com/czarandy/l3-simulator
1•czarandy•2m ago•0 comments

Google Gemini Launch Delayed as Tech Falls Short of Internal Goals

https://www.bloomberg.com/news/articles/2026-07-16/google-gemini-launch-delayed-as-tech-falls-sho...
3•mfiguiere•3m ago•0 comments

California authorizes its DMV to join a national ID database

https://papersplease.org/wp/2026/07/16/gov-newsom-signs-law-to-upload-california-data-to-national...
1•logickkk1•3m ago•0 comments

JD Vance: Jeffrey Epstein had clear connection to Mossad

https://www.ynetnews.com/article/sjyjztremg
2•root-parent•6m ago•0 comments

Airbus migrating 70 critical apps from AWS to France's Scaleway

https://www.theregister.com/paas-and-iaas/2026/07/16/airbus-migrating-70-critical-apps-from-aws-t...
3•rwmj•6m ago•1 comments

AI disruption in private credit: exposure to software firms in BDCs (BIS)

https://www.bis.org/publ/bisbull128.htm
1•aanet•7m ago•1 comments

NASA Dragonfly - a rotorcraft to explore Saturn's moon Titan

https://science.nasa.gov/mission/dragonfly/
1•thinkingemote•8m ago•0 comments

Connect more of your apps to Search

https://blog.google/products-and-platforms/products/search/connected-apps/
1•thm•8m ago•0 comments

Linus Torvalds rebukes anti-AI stances in the Linux kernel code review process

https://www.tomshardware.com/software/linux/linus-torvalds-rebukes-anti-ai-stances-in-the-linux-k...
3•vanburen•8m ago•0 comments

Nintendo Switch Joy-Con Removable Battery Replacement Procedure

https://www.nintendo.com/en-gb/Support/Troubleshooting/Battery-replacement/Joy-Con-L-HAC-015-01-B...
1•haunter•10m ago•0 comments

Please Stop Making Me Opt Out of AI

https://www.wired.com/story/please-stop-making-me-opt-out-of-ai/
3•Brajeshwar•10m ago•0 comments

MergeStat: Query your Git repo with SQL

https://www.mergestat.com/
1•nvahalik•11m ago•0 comments

Young Drivers Are Going 'Psycho' on the Road–and Filming It

https://www.wsj.com/tech/personal-tech/dash-cams-drivers-tiktok-3101b404
1•bookofjoe•11m ago•1 comments

CLR: Checker of Lifetimes and other Refinement types for Zig

https://github.com/ityonemo/clr/
2•lioeters•12m ago•0 comments

SPCX is now Wall Street's most shorted new stock

https://invezz.com/news/2026/07/16/the-worlds-most-valuable-ipo-spcx-is-now-wall-streets-most-sho...
8•lbrito•12m ago•1 comments

Minefield Quiz: Countries of the World with No Borders

https://brilliantmaps.com/world-minefield-game/
1•Kaibeezy•14m ago•0 comments

Pricklypear: Vibeslop Interpreted Lisp with Postgres AST, Written in OCaml

https://pricklypear.rocks/welcome
1•sroerick•18m ago•1 comments

React Native in 2026

https://ben3d.ca/blog/react-native-in-2026
2•bhouston•18m ago•0 comments

Show HN: easy-tz – A fast, 10KB, dependency-free getTimeZonesAt(timestamp)

https://github.com/leeoniya/easy-tz
2•leeoniya•20m ago•0 comments

OneCommander: Modern File Manager for Windows 11 and 10

https://onecommander.com/
3•thunderbong•21m ago•0 comments

Switzerland turned its train tracks into solar power plants

https://www.goodgoodgood.co/articles/switzerland-train-tracks-solar-panels
4•MaysonL•21m ago•1 comments

Show HN: A Claude Code skill that finds dev tools – or stays silent

https://github.com/jaimeramiro-dev/gold-digger
1•jaimeramiro•23m ago•0 comments

Kbd-1.0-Codex-Micro

https://twitter.com/OpenAIDevs/status/2077425991790870644
1•sanj•23m ago•0 comments

Can AI reliably generate dashboards from Excel or CSV files?

https://dashboardbuilder.net/ai-generated-dashboard
1•Garywilson76•24m ago•0 comments

Choosing GPT-5.6 Sol, Terra, or Luna in Codex

https://twitter.com/pvncher/status/2077708372363624894
1•pretext•25m ago•0 comments

Show HN: Pagora AI, WordPress AI page builder that outputs plain HTML/CSS/JS

https://wordpress.org/plugins/pagora-ai/
1•azertyvode•25m ago•0 comments

Show HN: MechArchive – an open, sourced catalog of the robots

https://mecharchive.com/
1•filippogroppi•25m ago•0 comments

The Moment Steven Bartlett Realizes His Podcast Is Compromised [video]

https://www.youtube.com/watch?v=NA8Zf7NSHF0
2•Bender•26m ago•1 comments

Capture Clauses as Effects

https://blog.yoshuawuyts.com/capture-clauses-as-effects/
1•ambigious7777•26m 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?