frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Lithuanian startup launches open-source network to detect Shahed-type drones

https://www.lrt.lt/en/news-in-english/19/2965205/lithuanian-startup-launches-open-source-network-...
1•giuliomagnifico•1m ago•0 comments

Show HN: Visualize audio in VSCode using Multiline Cursors

https://github.com/ark-tik/vs-code-music-visualiser
1•kartik0001•2m ago•0 comments

Should everyone be on GLP-1s?

https://www.cbc.ca/lite/story/9.7241872
1•colinprince•2m ago•0 comments

Advent of recorded music is much like a BEC

1•-Zero•4m ago•0 comments

Michael Saylor Admits to Using ChatGPT to Build STRC

https://finance.yahoo.com/markets/stocks/articles/michael-saylor-admits-using-chatgpt-105054359.html
1•ironyman•4m ago•0 comments

MCP tool that catches AI-agent scope creep

https://github.com/Naveja00/OverReach
1•Naveja•8m ago•0 comments

Understanding the Go Runtime: The Reflect Package

https://internals-for-interns.com/posts/go-runtime-reflect/
1•valyala•8m ago•0 comments

What does it mean when the bottom bit of my HMODULE is set?

https://devblogs.microsoft.com/oldnewthing/20260619-00/?p=112447
1•ibobev•11m ago•0 comments

Command and Conquer – Westwood's hit strategy game is coming to the Atari ST

https://www.indieretronews.com/2026/06/command-conquer-westwoods-hit-strategy.html
2•ibobev•11m ago•0 comments

The Goldilocks Principle in Fantasy Strategy

https://www.filfre.net/2026/06/the-goldilocks-principle-in-fantasy-strategy/
1•ibobev•13m ago•0 comments

The Surprising New Arms Dealer to the World

https://www.politico.com/news/magazine/2026/06/20/south-korea-weapons-dealer-trump-00959559
1•JumpCrisscross•15m ago•0 comments

Self Balancing Inverted Pendulum

https://github.com/chrisdoble/self-balancing-inverted-pendulum
2•yeknoda•16m ago•1 comments

16-year-old SATA II SSD survives 1 petabyte of writes, 25x the drive's rating

https://www.tomshardware.com/pc-components/ssds/16-year-old-sata-ii-ssd-survives-1-petabyte-of-wr...
7•giuliomagnifico•16m ago•0 comments

Ask HN: Need advice on distributing and testing what I build

2•darth-pixit•20m ago•0 comments

Google Has Added Agentic Browsing to PageSpeed Insights

https://pagespeed.web.dev/analysis/https-hawksley-dev/bo27z46k5x
1•ethanhawksley•20m ago•1 comments

Lines-of-code considered helpful (or we stop taking sick peoples temperatures)

https://legostormtroopr.substack.com/p/lines-of-code-considered-helpful
1•legostormtroopr•23m ago•0 comments

Spotting Mushrooms

https://verfassungsblog.de/spotting-mushrooms/
1•jruohonen•34m ago•0 comments

Building a Dense Agentic AI CPU Rack Today

https://www.servethehome.com/building-a-dense-agentic-ai-cpu-rack-amd-dell-today/
1•ksec•40m ago•1 comments

Temporary Cloudflare Accounts for AI Agents

https://blog.cloudflare.com/temporary-accounts/
2•farhadhf•41m ago•0 comments

AI that can find the location of images

https://geoaxis.ai
2•GeoAxisAI•42m ago•0 comments

Large Language Models Hack Rewards, and Society

https://arxiv.org/abs/2606.04075
2•sva_•42m ago•0 comments

How to sync messages of Claude Code extension in VS Code and Claude Code app?

https://github.com/budhasantosh010/claude-code-session-bridge
1•realsanb•43m ago•0 comments

„We all leave digital footprints on the internet"

https://www.mpg.de/26430251/interview-troncoso-ueberwachung
1•jruohonen•48m ago•1 comments

Apple patches high-severity eavesdropping vulnerability in Beats Studio Buds

https://arstechnica.com/apple/2026/06/apple-patches-high-severity-eavesdropping-vulnerability-in-...
1•joozio•56m ago•0 comments

Local Models, Friction and Struggle

https://garden.azl.au/ai/local-models/local-models-friction-struggle
1•neurodivergent•59m ago•1 comments

Safe SIMD in Rust, even on the inside

https://shnatsel.medium.com/safe-simd-in-rust-even-on-the-inside-c6f1ff381828
1•g0xA52A2A•59m ago•0 comments

As China gorges on homegrown foie gras, France faces a new rival

https://www.reuters.com/world/asia-pacific/china-gorges-homegrown-foie-gras-france-faces-new-riva...
2•JumpCrisscross•1h ago•2 comments

Mochallama

https://deemwar-products.github.io/mochallama/
1•deemwar•1h ago•0 comments

Mack.ns.cloudflare.com

https://blog.cloudflare.com/welcome-to-connectivity-cloud/
1•SajjuRoy•1h ago•0 comments

Bootimus – A Self-Contained PXE and HTTP Boot Server

https://bootimus.com
2•car•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?