frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Why are we still writing separate extensions for VS Code, JetBrains, and Zed?

https://oxp.sh/
1•aldgar•10s ago•0 comments

White Rabbit – sub-nanosecond synchronization for large distributed systems

https://ohwr.org/projects/white-rabbit/
1•michaelsbradley•24s ago•0 comments

Show HN: Ifmhy – An Internationalization Version of Fmhy

https://ifmhy.org/
1•valorantPanda•39s ago•0 comments

Embedded acoustic AI with <16ms latency running on 8MB RAM

https://www.voisace.com/blog
1•shermanliu•12m ago•0 comments

BambuStudio has been violating PrusaSlicer AGPL license since their fork

https://xcancel.com/josefprusa/status/2054602354851254330
1•Tomte•14m ago•0 comments

Concerning Emacs (and Jazz)

https://omidmash.de/blog#concerning-emacs
1•omidmash•18m ago•0 comments

Show HN: Chord Commander – A webapp to organize guitar chords

https://codeberg.org/joexo/chord-commander
1•joexo•20m ago•0 comments

SpaceX IPO: Nice Try Though [video]

https://www.youtube.com/watch?v=IHD8BDFYyGI
1•u1hcw9nx•23m ago•0 comments

A New Supercarrier Emerges Tracking China's Fourth Aircraft Carrier

https://features.csis.org/hiddenreach/china-fourth-carrier/
1•_____k•24m ago•0 comments

Legends of the Ancient Web (2017)

https://idlewords.com/talks/ancient_web.htm
1•downbad_•27m ago•0 comments

Building an AWS Lambda-Like Runtime with Firecracker MicroVMs

https://medium.com/@vivek1502/building-an-aws-lambda-like-runtime-with-firecracker-microvms-42a41...
1•nreece•31m ago•0 comments

Does anyone in your organisation own "correctness" in your AI products?

https://alokit.substack.com/p/nobody-in-your-organization-owns
2•avikalp•34m ago•0 comments

ChatGPT as the AOL of AI

https://rebecca-powell.com/posts/return-on-intelligence-02-moats/
1•maille•37m ago•1 comments

Ask HN: How do small teams securely share env files?

1•tmr_praveen•38m ago•0 comments

Pausing New Challenges – Codecrafters

https://codecrafters.io/blog/pausing-new-challenges
14•prakashqwerty•41m ago•2 comments

I reproduced a Claude Code RCE. The bug pattern is everywhere

https://vechron.com/2026/05/i-reproduced-a-claude-code-rce-the-bug-pattern-is-everywhere/
4•GeorgeWoff25•42m ago•1 comments

Show HN: GobanFTP – the board game Go played through FTP listings

https://github.com/molang163/GobanFTP
1•molang163•43m ago•0 comments

The three futures nobody is building for

https://andrebyrd.substack.com/p/the-three-futures-nobody-is-building-for
1•manofstyle04•44m ago•0 comments

You're Being Judged

https://zenodo.org/records/20352897
1•anasteciadunu•46m ago•0 comments

Nobody Understands Kafka Costs

https://getkafkanated.substack.com/p/nobody-understands-kafka-costs-stanislav
1•enether•48m ago•0 comments

Show HN: Klimkit: my Codex setup for multiple machines

https://github.com/klimentij/klimkit
1•klimentij•48m ago•0 comments

Twelve Ways to Be Wrong About AI-Assisted Coding

https://third-bit.com/2026/05/20/twelve-ways-to-be-wrong/
2•signa11•49m ago•2 comments

AI Ops SOP Pack: SOPs for reviewing AI-assisted engineering work

https://github.com/monkidy/ai-ops-sop-pack
1•monkidy•50m ago•0 comments

Show HN: Source-check politician stock-trade claims against public filings

https://tinyopsstudio.com/congress-disclosure-watchlist-digest
2•tinyopsstudio•51m ago•0 comments

Don't Read the Comments

https://kennethreitz.org/essays/2026-04-10-dont_read_the_comments
3•NicoHartmann•58m ago•0 comments

An interactive linear algebra primer aimed at LLM readers

https://algo-rhythm.dev/en/
6•bytegogogo•58m ago•0 comments

The most RAM efficient modern Linux. Noctalia v5 and LabWC and Artix [video]

https://www.youtube.com/watch?v=CnG32ZOi11s
2•grigio•58m ago•0 comments

AI Reconstructed Dead Pilots' Voices from Public NTSB Records

https://firethering.com/ai-recreated-dead-pilots-voices-ntsb-database/
1•steveharing1•59m ago•0 comments

Show HN: Larksson-lang: everything is a map or an atom

https://github.com/arthurzhu29/larksson
2•arthurzhu29•1h ago•0 comments

Experience: We found a baby on the subway – now he's our 26-year-old son

https://www.theguardian.com/lifeandstyle/2026/may/22/experience-found-baby-subway-now-26-year-old...
49•Michelangelo11•1h ago•5 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?