frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Bullied by Indian compliance automation platform

1•bitlad•1m ago•0 comments

Ask HN: How is you and your team are using AI?

1•IdontKnowRust•1m ago•0 comments

The Anatomy of a Triton Attention Kernel

https://arxiv.org/abs/2511.11581
2•PaulHoule•3m ago•0 comments

The missing standard library for multithreading in JavaScript

https://github.com/W4G1/multithreading
4•W4G1•4m ago•0 comments

Unity 6.3 LTS is now available

https://unity.com/blog/unity-6-3-lts-is-now-available
1•binarynate•4m ago•0 comments

Show HN: Vibe Code WP Plugins

https://steem.dev/
1•fasthightimess•5m ago•0 comments

GLP-1 Drugs, Psilocybin Mushrooms, and the Case for Sublingual Psilocin

https://psychedelicstoday.com/2025/08/05/glp-1-drugs-psilocybin-mushrooms-and-the-case-for-sublin...
1•toomuchtodo•6m ago•0 comments

Give Back to Blender – Fundraiser for 2026

https://www.blender.org/news/give-back-to-blender-fundraiser-for-2026/
1•throwaway2027•7m ago•0 comments

OpenAI must hand over 20M ChatGPT logs in New York Times lawsuit

https://www.windowscentral.com/artificial-intelligence/openai-chatgpt/judge-forces-openai-to-prod...
3•samspenc•10m ago•0 comments

Radicalized Anti-AI Activist Should Be a Wake Up Call for Doomer Rhetoric

https://www.techdirt.com/2025/12/05/radicalized-anti-ai-activist-should-be-a-wake-up-call-for-doo...
3•artninja1988•13m ago•0 comments

DRAM Price fixing scandal (2002)

https://en.wikipedia.org/wiki/DRAM_price_fixing_scandal
3•Flux159•17m ago•1 comments

I want a better build executor

https://jyn.dev/i-want-a-better-build-executor/
1•todsacerdoti•18m ago•0 comments

Building a Community Focused Data Layer for a State's Tech Ecosystem

https://michigan-pulse.com/
1•sieep•18m ago•0 comments

The truth about mass migration [video]

https://www.youtube.com/watch?v=QoFLHx-t-Yk
1•pinkmuffinere•20m ago•0 comments

The Path to Mojo 1.0

https://www.modular.com/blog/the-path-to-mojo-1-0
2•mdunnoconnor•21m ago•0 comments

Chess LLM Benchmark: Evaluating LLMs' ability to play chess

https://github.com/lightnesscaster/Chess-LLM-Benchmark
2•dwohnitmok•25m ago•0 comments

KDE Backups and Permissions

https://taonaw.com/2025/12/04/kde-backups-and-permissions.html
1•abnercoimbre•28m ago•0 comments

Launch a Docs MCP Server for Your Users in One Click

https://www.kapa.ai/blog/build-an-mcp-server-with-kapa-ai
1•mooreds•29m ago•0 comments

AI Agents Do Weird Things (and what to do about it)

https://www.dbos.dev/blog/ai-agents-do-weird-stuff-and-how-to-fix-it
1•KraftyOne•30m ago•0 comments

Show HN: Bible Note Journal – AI transcription and study tools for sermons (iOS)

https://www.biblenotejournal.com/
2•tfreebern2•30m ago•1 comments

Judge Signals Win for Software Freedom Conservancy in Vizio GPL Case

https://fossforce.com/2025/12/judge-signals-win-for-software-freedom-conservancy-in-vizio-gpl-case/
24•speckx•31m ago•0 comments

NVIDIA CUDA Tile programming model

https://developer.nvidia.com/blog/focus-on-your-algorithm-nvidia-cuda-tile-handles-the-hardware/
2•tanelpoder•32m ago•0 comments

How I deploy serverless stacks with Terraform

https://www.processfoundry.io/insights/how-i-deploy-serverless-stacks-with-terraform
1•christian-scott•32m ago•0 comments

We Gave Students Laptops and Took Away Their Brains

https://www.thefp.com/p/we-gave-students-laptops-and-took
3•sorenKaram•33m ago•0 comments

Three Asymmetric Divisions of the Octave (1996)

https://www.wendycarlos.com/resources/pitch.html
2•jstrieb•37m ago•0 comments

SPC Requests for Curiosity, Winter 2025

https://minusone.com/articles/spc-requests-for-curiosity-winter-2025
1•captn3m0•38m ago•0 comments

Cardinal: Fastest file searching tool for macOS

https://github.com/cardisoft/cardinal
1•pbowyer•38m ago•0 comments

Show HN: Musicians! Build arrangements for songs with click tracks

https://www.arrangement.app/
4•adamthehorse•46m ago•0 comments

People Should Be Smaller

https://namelessvirtue.com/2025/11/06/people-should-be-smaller/
1•surprisetalk•48m ago•1 comments

Roger Ebert's Relationship to Anime [video]

https://www.youtube.com/watch?v=oMdddKTJnQ8
1•surprisetalk•48m ago•0 comments
Open in hackernews

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

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