frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

30 Years Ago Windows 95 Changed Everything

https://www.goto10retro.com/p/30-years-ago-windows-95-changed-everything
1•rbanffy•53s ago•0 comments

The Optics and Image Processing Behind Fundus Cameras

https://youtu.be/EvTolqbCHXo?si=TNXMHtb9cDRl4CCv
1•hyperific•1m ago•0 comments

Steps Recorder Deprecation (2023)

https://support.microsoft.com/en-us/windows/steps-recorder-deprecation-a64888d7-8482-4965-8ce3-25...
1•bariumbitmap•1m ago•0 comments

How to Train Yourself to Have Lucid Dreams Through VR

https://wjamesau.substack.com/p/have-a-vr-headset-heres-how-to-train
1•SLHamlet•1m ago•0 comments

How to Use Trending Topic and Keyword Finder

https://metaconvert.blogspot.com/2025/12/how-to-use-trending-topic-and-keyword-finder.html
1•MetaConvert•4m ago•0 comments

Compressing Embedded Files in Go

https://vincent.bernat.ch/en/blog/2025-go-embed-compressed
1•todsacerdoti•6m ago•0 comments

Python Software Foundation end-of-year fundraiser

https://donate.python.org
1•CaliforniaKarl•6m ago•0 comments

Intermittent Hypoxia Increases Blood Flow and Benefits Executive Function

https://onlinelibrary.wiley.com/doi/10.1111/psyp.70161
1•PaulHoule•6m ago•0 comments

Just Right FM

https://justright.fm/
1•ddrscott•6m ago•0 comments

1Crossword: Crosswords for Your Password Manager

https://eieio.games/blog/1Crossword/
1•jstyles•9m ago•0 comments

Show HN: We open-sourced our internal tool for scoring PRs with Claude AI

https://github.com/MergeMint/mergemint-app
1•textcortex•10m ago•0 comments

SAGE: Semi-Automatic Ground Environment Air Defense System

https://www.ll.mit.edu/about/history/sage-semi-automatic-ground-environment-air-defense-system
2•stmw•11m ago•0 comments

Twins reared apart do not exist

https://davidbessis.substack.com/p/twins-reared-apart-do-not-exist
2•bookofjoe•13m ago•0 comments

Ask HN: YouTube Only Showing Ads?

1•OhMeadhbh•15m ago•4 comments

Urik – The Privacy focused Android keyboard is now in Open Beta

https://github.com/urikdev/Urik
2•urikdev•17m ago•1 comments

Japan's first hotel with a human washing machine is now ready for you

https://soranews24.com/2025/12/10/japans-first-hotel-with-a-human-washing-machine-is-now-ready-fo...
1•rawgabbit•19m ago•1 comments

What UI do you use on top of data engineering tools to look at data?

1•platypii•20m ago•1 comments

Powers of Ten (1977) [video]

https://www.youtube.com/watch?v=0fKBhvDjuy0
5•susam•23m ago•0 comments

3D-Agent

https://3d-agent.com
2•gsunshinel•25m ago•0 comments

Tourists to US would have to reveal 5 years of social media activity: new plan

https://www.theguardian.com/us-news/2025/dec/10/tourists-social-media-trump
7•mikhael•31m ago•1 comments

Creating a Benevolent Industrial Deployer for Memecoins

https://substack.com/@fitziswriting/p-181255460
2•fitzyap•32m ago•0 comments

Internal RFCs saved us months of wasted work

https://highimpactengineering.substack.com/p/the-illusion-of-shared-understanding
3•romannikolaev•32m ago•0 comments

Replican't

https://thinkhuman.com/replicant/
5•jamesgill•33m ago•1 comments

RAM Is Ruining Everything

https://www.theverge.com/report/839506/ram-shortage-price-increases-pc-gaming-smartphones
2•edward•33m ago•0 comments

Transcripts dialectics Gregory Bateson 19th of July 1967 [pdf]

https://villonfilms.ca/main/transcripts-dialectics-gregory-bateson-19-7-67.pdf
2•oriettaxx•37m ago•0 comments

Hark: Voice prompts for LLMs, meeting minutes, quick voice journaling

https://github.com/FPurchess/hark
2•FPurchess•37m ago•0 comments

I Pitched Netflix a Friends-Style Casablanca Sitcom

https://stohl.substack.com/p/i-pitched-netflix-a-casablanca-sitcom
1•FreeQueso•39m ago•0 comments

Show HN: A 2-row, 16-key keyboard designed for smartphones

https://k-keyboard.com/Why-QWERTY-mini
3•QWERTYmini•41m ago•0 comments

Verum 2 closed back option

https://www.pragmaticaudio.com/articles/2023/07/welcome-to-pragmatic-audio/
1•juniedai•42m ago•1 comments

Ask HN: Why is codex suddenly giving me this error?

1•fcpguru•42m ago•1 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?