frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

MySQL users be warned: Git commits in MySQL-server significantly declined 2025

https://optimizedbyotto.com/post/reasons-to-stop-using-mysql/
1•ottoke•41s ago•0 comments

Are We ... Yet?

https://wiki.mozilla.org/Areweyet
1•mooreds•1m ago•0 comments

The Software Cambrian Explosion

https://johncodes.com/archive/2026/01-11-explosion/
1•jpmcb•3m ago•0 comments

The death of code won't matter

https://jaimefjorge.com/posts/the-death-of-code-wont-matter/
2•jaimefjorge•4m ago•0 comments

Google automatically emails 13 year olds to allow them to opt out of parental s

https://support.google.com/families/answer/7106787?hl=en
1•todsacerdoti•5m ago•0 comments

Blogs Are Back – Discover and Follow Independent Blogs

https://www.blogsareback.com
1•ArmageddonIt•7m ago•0 comments

Show HN: I wrote an embeddable Unicode algorithms library in C

https://github.com/railgunlabs/unicorn
1•hgs3•8m ago•0 comments

LLVM: The Bad Parts

https://www.npopov.com/2026/01/11/LLVM-The-bad-parts.html
1•nikic•8m ago•0 comments

Show HN: AI Code Guard – Security scanner for AI-generated code

https://github.com/ThorneShadowbane/ai-code-guard
1•ajujaans•10m ago•0 comments

Monero ATM Project: A do-it-yourself automated Teller machine

https://atm.monero.is/builds.html
1•debesyla•11m ago•0 comments

Onager: Graph in DuckDB

https://cogitatortech.github.io/onager/
2•marklit•13m ago•0 comments

Using a tiny GPT model to beat Brotli/ZSTD, 600x faster than Fabrice Bellard's

https://github.com/carsonpo/compress-zip
1•carsonpoole•13m ago•0 comments

Digital Travel App TripBFF Exposed Location Data Way Too Accurately

https://medium.com/bugbountywriteup/digital-travel-app-tripbff-exposed-location-data-way-too-accu...
1•Jlleitschuh•16m ago•0 comments

Vibe Engineering: What I've Learned Working with AI Coding Agents

https://twitter.com/mrexodia/status/2010157660885176767
2•nekitamo•17m ago•1 comments

Ralph Experiment – SQLite UI

https://lochie.dev/posts/ralph-sqlite-ui/
1•mpweiher•17m ago•0 comments

Universal Commerce Protocol (UCP)

https://developers.googleblog.com/under-the-hood-universal-commerce-protocol-ucp/
1•shooker435•18m ago•0 comments

Infest: Special Edition

https://archive.org/details/infest.special-edition
1•rendx•22m ago•0 comments

Impressed by Synology Support

https://blog.notmyhostna.me/posts/impressed-by-synology-support
1•dewey•22m ago•0 comments

The 400-year software patch to a 10-day memory leak

https://ischemist.com/writings/note/calendar-memory-leak
1•hiddenseal•24m ago•0 comments

Microsoft Windows Media Player stops serving up CD album info

https://www.theregister.com/2026/01/09/microsoft_windows_media_player_forgets/
4•A4ET8a8uTh0_v2•25m ago•1 comments

Sergey Brin is joining Larry Page, in reducing ties to CA

https://www.nytimes.com/2026/01/09/technology/google-founders-california-wealth-tax.html
2•vlod•25m ago•1 comments

Cambridge college to target elite private schools for student recruitment

https://uk.news.yahoo.com/cambridge-college-target-elite-private-185806826.html
1•nephihaha•26m ago•0 comments

Claude Code Orchestrator – Parallel AI Development with Multiple Claude Sessions

https://github.com/reshashi/claude-orchestrator
1•shashimudunuri•26m ago•1 comments

Learning to work (very) remotely (2023)

https://borischerny.com/tech/2023/12/10/Working-Remotely.html
1•mooreds•28m ago•0 comments

A16Z: The Power Brokers

https://www.notboring.co/p/a16z-the-power-brokers
1•paulpauper•29m ago•0 comments

A Closer Look at the 2026 U.S. Food Guidelines

https://www.exfatloss.com/p/a-closer-look-at-the-2026-us-food
1•paulpauper•30m ago•0 comments

Social-MCP: new kind of social network

https://social-mcp.org/
2•gwainrib•30m ago•1 comments

Finding and Fixing a 50k Goroutine Leak That Nearly Killed Production

https://skoredin.pro/blog/golang/goroutine-leak-debugging
3•ibobev•31m ago•0 comments

Hexagonal Architecture in Go: Why Your "Clean" Code Is a Mess

https://skoredin.pro/blog/golang/hexagonal-architecture-go
3•ibobev•32m ago•0 comments

Nano Governments

https://shukla.io/blog/2026-01/nano-gov.html
1•BinRoo•33m ago•1 comments
Open in hackernews

Ask HN: How can I load test PostgreSQL but avoid changing actual data?

1•LawZiL•8mo 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•8mo 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•8mo 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•8mo 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•8mo ago
Load test against a clone instead of a DB whose contents you care about?