frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Nearby Share:I built a browser-based file transfer tool

https://nearbyshare.app
1•jumpdong•1m ago•0 comments

Anthropic IPO meets AI backlash

https://www.cnbc.com/2026/11/07/anthropic-ipo-ai-data-center-backlash.html
2•Betelbuddy•3m ago•0 comments

Show HN: A 40MB TTS model hand-ported to run in the browser (TS and WGSL)

https://ttslab.dev
1•MbBrainz•7m ago•0 comments

Stock market casino: the rising stakes of 'gamified' investing

https://www.ft.com/content/47831fae-3ecd-4fc0-9921-fd1933d75cd4
1•porridgeraisin•9m ago•0 comments

European governmental DNSSEC: policy and promotion drive adoption

https://internetcleanup.foundation/2026/11/european-governmental-dnssec-policy-and-promotion-driv...
1•aequitas•14m ago•0 comments

Ask HN: Will Humans Become Useless?

1•misano•17m ago•1 comments

Endlessly self-injection-locked photonic integrated lasers (2026)

https://www.nature.com/articles/s41566-026-01985-1
1•peter_d_sherman•20m ago•0 comments

OpenConche: Modern engine for Chocolatier games (2007-2009)

https://github.com/open-conche/OpenConche
1•openconche•24m ago•1 comments

Turn text or photos into 360° panoramas with AI

https://ai360generator.com
1•terrybeer24•26m ago•0 comments

Tech giant Nvidia to investigate CEO's affair with suspected Chinese spy

https://www.bbc.co.uk/news/live/cm78p221e313t
3•iamflimflam1•27m ago•0 comments

The Tragedy of the Oxide Root of Trust

https://danielmangum.com/posts/tragedy-oxide-rot/
2•hasheddan•29m ago•0 comments

Stop Measuring Developer Productivity

https://leaddev.com/reporting/stop-measuring-developer-productivity
1•theanonymousone•33m ago•0 comments

'A new age of climate extremes': Earth accumulating heat at accelerating rate

https://www.theguardian.com/environment/2026/nov/09/cop31-climate-extremes-earth-global-heating
2•ljf•37m ago•0 comments

ESP32 Tailscale gateway with WoL and other recovery functions

https://mattboxx.github.io/esp32-tailnet-gateway/
1•Mattboxx•37m ago•1 comments

Show HN: CodeHub – Turning release notes into pictures so that it is fun to read

https://www.nadary.com/codehub
1•forza2026•39m ago•0 comments

Asahi Linux forbids using AI to contribute

https://asahilinux.org/llm-policy/
1•jiwidi•39m ago•0 comments

IAL Paper Tracker – free tracker for Edexcel IAL students

https://www.ialpapertracker.com/
1•elvanlatief•43m ago•0 comments

PixelOS

https://pixelos.net/
2•emilburzo•44m ago•0 comments

500 Lines or Less: A Simple Object Model

https://aosabook.org/en/500L/a-simple-object-model.html
1•signa11•47m ago•0 comments

The Dose Makes the Poison

https://en.wikipedia.org/wiki/The_dose_makes_the_poison
1•num42•48m ago•0 comments

Making the Iron Giant Live

https://animationobsessive.substack.com/p/making-the-iron-giant-live
2•vinhnx•49m ago•0 comments

370 Books in 20 months: South African author defends her use of AI

https://www.enca.com/lifestyle/370-books-20-months-sa-author-defends-her-use-ai
2•theanonymousone•54m ago•0 comments

Tracking AI's Real-Time Footprint on the Labor Market

https://hai.stanford.edu/news/tracking-ais-real-time-footprint-on-the-labor-market
2•T-A•55m ago•0 comments

Next-Concept Modeling: Fast, Parallel Coarse-to-Fine Text Generation

https://arxiv.org/abs/2610.14162
14•theanonymousone•55m ago•1 comments

Whoops, I context-switched one too many times

https://jesseduffield.com/Whoops-I-context-switched-one-too-many-times/
3•porridgeraisin•58m ago•0 comments

Show HN: Dependency free RSS reader (vibecoded with DeepSeek)

https://github.com/bipinKrishnan/rss_feed
1•bipin345•1h ago•1 comments

Show HN: Wallpaper that adapts to your icon layout

https://deskland.app/
1•zshanedesign•1h ago•0 comments

AML Cycle 2 preview: How well does coding memory hold up under noise?

https://x.com/AgentMemoryL/
3•SndOfViento•1h ago•1 comments

The Vulnerable Moment: Personalization, Exploitation

https://medium.com/@smoking2man/the-vulnerable-moment-personalization-exploitation-and-the-circul...
1•Aldus551•1h ago•0 comments

Is Opus 5.5 nerfed? Thinking patterns changed on November 3

https://twitter.com/shanemelaugh/status/2119192075505893695
21•rzk•1h ago•11 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?