frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Slavik Lucky12345

1•scareware•52s ago•0 comments

The land where time stood still – Unsung

https://unsung.aresluna.org/the-land-where-time-stood-still/
1•rbanffy•1m ago•0 comments

Live 12.4 is out now – with Link Audio, updated devices and more

https://www.ableton.com/en/blog/live-12-4-is-out-now/
1•robotswantdata•2m ago•0 comments

Show HN: I Built a Polyfill for the Browser's New Language Detection API

https://unforbiddenyet.substack.com/p/i-built-a-polyfill-for-the-browsers
1•unforbiddenYet•3m ago•0 comments

Post-Quantum VPN Based on QUIC

https://github.com/quincy-rs/quincy
1•M0dEx•7m ago•0 comments

Virgin Galactic reveals new ship, but it's running out of time and cash

https://arstechnica.com/space/2026/05/the-suborbital-space-tourism-industry-is-on-life-support/
1•rbanffy•9m ago•0 comments

What to do before quantum computers break today's encryption (Cloudflare)

https://www.youtube.com/watch?v=DHIyAbLuQyg
1•emot•10m ago•0 comments

When everyone has AI and the company still learns nothing

https://www.robert-glaser.de/when-everyone-has-ai-and-the-company-still-learns-nothing/
3•youngbrioche•11m ago•0 comments

Making your developer platform agent-ready

https://hookdeck.com/blog/developer-platform-agent-ready
1•leggetter•13m ago•0 comments

A blueprint for using AI to strengthen democracy

https://www.technologyreview.com/2026/05/05/1136843/ai-democracy-blueprint/
1•omer_k•16m ago•0 comments

Content for Content's Sake

https://lucumr.pocoo.org/2026/5/4/content-for-contents-sake/
1•vismit2000•17m ago•0 comments

Show HN: Dittongo: The Shape Shifting App

https://dittongo.app/
1•fabio_ca•18m ago•0 comments

[not serious] World's most honest customer support widget

https://nocustomersupport.com/
2•utkarsh_apoorva•20m ago•0 comments

Show HN: Claude Relay – local Claude Code sessions message each other

https://github.com/innestic/claude-relay
1•vildanbina•22m ago•2 comments

Jensen Huang – Will Nvidia's moat persist? [video]

https://www.youtube.com/watch?v=Hrbq66XqtCo
1•rguiscard•24m ago•0 comments

Elasticsearch Workflows GA

https://www.elastic.co/security-labs/elastic-workflows-ga-9-4
1•shahargl•25m ago•0 comments

Competing Biases Underlie Overconfidence and Underconfidence in LLMs

https://www.nature.com/articles/s42256-026-01217-9
1•not_a_feature•27m ago•1 comments

Planning My Kubernetes Homelab

https://www.jonashietala.se/blog/2026/05/05/planning_my_kubernetes_homelab/
1•lawn•31m ago•0 comments

Show HN: I built Pagome – SEPA payment links via GiroCode QR (free, no server)

https://pagome.com
2•urbanisierung•34m ago•1 comments

Toyota built a $10B private utopia–what's going on in there?

https://arstechnica.com/cars/2026/05/inside-toyotas-10b-private-utopia-big-ideas-few-people-camer...
1•rbanffy•36m ago•0 comments

Show HN: Memex, Claude memory via local RAG (MCP, offline embeddings)

https://memex-cli.vercel.app/
1•bboydart•39m ago•0 comments

Astronomers find atmosphere around a solar system object that shouldn't have one

https://www.cnn.com/2026/05/04/science/kuiper-belt-object-atmosphere
3•reconnecting•40m ago•0 comments

Turn a feature spec into reviewed, merged code with bounded AI agents

https://github.com/alex-reysa/pm-go
1•alexreysa•42m ago•0 comments

What is the best CTF Hosting Platform?

1•Hannah_Adam•44m ago•0 comments

China Opens Rocket Launches to International Satellites

https://www.china-in-space.com/p/china-opens-dozens-of-rocket-launches
5•JPLeRouzic•45m ago•0 comments

APIs as infrastructure: future-proofing Stripe with versioning (2017)

https://stripe.com/blog/api-versioning
1•corentin88•46m ago•0 comments

How to Test a Salesforce Experience Aura Site Like an Apex Predator

https://www.reco.ai/blog/salesforce-experience-site-pentest-apex-predator
1•llmacpu•46m ago•0 comments

DHS Demanded Google for Data on Canadian's Activity, Location over Anti-ICE

https://archive.is/2026.05.04-155719/https://www.wired.com/story/dhs-demanded-google-surrender-da...
2•exceptione•47m ago•1 comments

LinkedIn locks your GDPR rights behind a paywall

https://noyb.eu/en/linkedin-locks-your-gdpr-rights-behind-paywall
25•doener•47m ago•1 comments

Are Installers Dead?

https://www.exasol.com/blog/are-installers-dead/
9•fwberlin•51m ago•2 comments
Open in hackernews

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

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