frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Microsoft discovers AI can't keep the email going

https://www.channelnewsasia.com/commentary/commentary-microsoft-discovers-ai-cant-keep-email-goin...
1•Markoff•26s ago•0 comments

Show HN: Fifty Shades of Claude (Book as a Skill)

https://github.com/adi-devv/fifty-shades-of-claude
1•sharkyy•39s ago•0 comments

Revolut: October Outage: Technical Overview

https://www.revolut.com/blog/post/20octoutagetechnicaloverview/
1•_sJiff•59s ago•0 comments

Muru: Scaling from What the Workers Report

https://grahamdumpleton.me/posts/2026/11/muru-scaling-from-what-the-workers-report/
1•lumpa•1m ago•0 comments

Floem: Cross-platform GUI framework for Rust

https://github.com/lapce/floem
1•modinfo•1m ago•0 comments

Pip-Tools: From Jazzband to PyPA

https://webknjaz.me/prose/pip-tools-moves-to-pypa/
1•lumpa•2m ago•0 comments

Pip-Tools v7.7.0

https://sirosen.net/2026/11/15/pip-tools-770.html
1•lumpa•2m ago•0 comments

Hackers Thawed Europe's Supermarket Freezers

https://medium.com/data-science-collective/open-sesame-said-the-freezer-3d6ba294a587
1•cadeos•3m ago•0 comments

Show HN: IronSurf – Browser in full Rust with cookie containers and userscripts

https://github.com/h4sh5/ironsurf
1•h4sh•3m ago•0 comments

Nationwide Ground Stop: Questions and Answers

https://www.faa.gov/newsroom/nationwide-ground-stop-questions-and-answers
1•KoftaBob•3m ago•0 comments

Never use a URL shortening service – even if you own it (2023)

https://shkspr.mobi/blog/2023/02/never-use-a-url-shortening-service-even-if-you-own-it/
2•jamietanna•5m ago•0 comments

Loadsketch: A system design simulator. Every request runs for real

https://loadsketch.mclee.dev/
1•alxtztw•8m ago•0 comments

Personal Agent Protocol

https://personalagentprotocol.org
1•janpio•12m ago•0 comments

Huang's affair with suspected spy is Silicon Valley's worst nightmare come true

https://www.theguardian.com/technology/2026/nov/14/jensen-huang-affair-nvidia-nightmare
2•nephihaha•13m ago•0 comments

Generative Artificial Intelligence and the Limits of the Corpus

https://medium.com/@smoking2man/generative-artificial-intelligence-and-the-limits-of-the-corpus-w...
1•Aldus551•14m ago•0 comments

Ask HN: Woz wrote BASIC before the Apple II. What would Emacs-only hardware be?

1•oliverchan2024•16m ago•0 comments

Stackboard – a Chrome new tab that's just your bookmarks, in columns

https://chromewebstore.google.com/detail/stackboard-new-tab-bookma/bgcedhchngcopaefchpkbhioagknnpma
2•intensityflow•22m ago•0 comments

Running untrusted CMS plugins in WebAssembly

https://hatamoto.dev/post/running-untrusted-cms-plugins-in-webassembly
6•sammatilda•24m ago•0 comments

Six hours and a stack of .md files

https://security.is.fucked.blog/six-hours-and-a-stack-of-md-files
1•micr0byte•24m ago•0 comments

LinkedIn Pinpoint Answer Today

https://wordanswer.today
2•dolaiart2026a•25m ago•0 comments

Why Every Startup Needs an Origin Myth

https://www.joanwestenberg.com/p/why-every-startup-needs-an-origin
1•flail•26m ago•0 comments

We found 1,698 Internet-visible AI offensive-security endpoints

https://gcore.com/blog/ai-offensive-security-endpoints-artex-pentagi-cairn
2•XaviorE•32m ago•0 comments

Mitchell Hashimoto's TUI – public beta waitlist

https://www.superlogical.com/updates/public-testing-beginning
2•michael-sumner•33m ago•1 comments

David Sacks Is Fucked Too

https://daringfireball.net/linked/2026/11/13/sacks
11•JumpCrisscross•39m ago•2 comments

It's always DNS, so why are we running our own?

https://s2.dev/blog/dns-server
2•misker1•39m ago•1 comments

Show HN: Unlimited-OCR-2 on Dual-Panel Lab Tables: What Works, What Breaks, How

https://zlu.me/2026/11/16/unlimited-ocr-2-dual-panel-lab-tables.html
2•zlu•39m ago•0 comments

Overpass API Performance Issues

https://community.openstreetmap.org/t/overpass-api-performance-issues/140598?page=10
4•altilunium•40m ago•0 comments

Show HN: VennDB: append-only in-memory Rust DB for rows queried using bit flags

https://github.com/plabayo/venndb
1•gdcbe•41m ago•0 comments

The Invisible Shape

https://sorenblank.com/craft/the-invisible-shape
2•matthberg•43m ago•0 comments

How to clean up the worktrees Claude Code, Cursor and Codex leave behind

https://mopup.online/guides/coding-agent-worktrees
1•sumaniosdv•44m 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?