frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Koala.sh – Benchmark Performance-Oriented Suite Targeting the POSIX Shell

https://github.com/kbensh/koala
1•TheWiggles•19m ago•0 comments

Mythbusting: Is a cold night at Stoke tough for players?

https://www.bbc.co.uk/sport/football/35672813
1•austinallegro•20m ago•0 comments

The 1-year rule by Jotform's CEO

https://www.firstmillion.club/p/the-1-year-rule
2•elananandhan•21m ago•0 comments

Tinker: General Availability and Vision Input

https://thinkingmachines.ai/blog/tinker-general-availability/
1•Olshansky•23m ago•0 comments

New York Times reporter sues Google, xAI, OpenAI over chatbot training

https://www.reuters.com/legal/government/new-york-times-reporter-sues-google-xai-openai-over-chat...
4•1vuio0pswjnm7•23m ago•0 comments

Repos: Multi-Git repo management CLI

https://github.com/epilande/repos
1•handfuloflight•24m ago•0 comments

Ask HN: Any AI recommendation for both programmers and management team?

2•sawirricardo•25m ago•2 comments

Tech groups shift $120B of AI data centre debt off balance sheets

https://www.ft.com/content/0ae9d6cd-6b94-4e22-a559-f047734bef83
1•1vuio0pswjnm7•26m ago•0 comments

Common Home Appliances Emit Trillions of Harmful Particles, Study Finds

https://www.sciencealert.com/common-home-appliances-emit-trillions-of-harmful-particles-study-finds
1•XzetaU8•27m ago•0 comments

Teaching Llama 3.1 to generate 3D objects

https://www.llm3d.space/
2•mukhayy•33m ago•1 comments

History of abridged 'It's a Wonderful Life' that cuts pivotal scene

https://www.cnn.com/2025/12/26/media/its-a-wonderful-life-abridged-version
1•qingcharles•35m ago•1 comments

Stop benchmarking LLMs. Make them fight

https://github.com/AGI-Eval-Official/CATArena
2•jinqueeny•38m ago•0 comments

XMPlay 4.1

https://support.xmplay.com/files_view.php?file_id=755
1•XzetaU8•40m ago•0 comments

Taking more asymmetric bets, and reflections on 2025

https://techne98.com/blog/taking-more-asymmetric-bets/
1•fixedprog•42m ago•0 comments

I scraped startups for sale on Trust MRR to find SaaS opportunities

https://bigideasdb.com/saas-sellers-report
1•OmPatel555•45m ago•1 comments

How Meta tries to win back teens for Instagram

https://www.washingtonpost.com/technology/2025/12/26/meta-instagram-teen-strategy/
3•mmarvin•47m ago•3 comments

Behind the scramble to engineer the Pop-Tarts Bowl trophy

https://www.espn.com/college-football/story/_/id/47407119/pop-tarts-bowl-trophy-engineer-viral
1•1659447091•55m ago•0 comments

What Technologies Are Running Across 5.5M Websites (Nov 2025)

https://versiondb.io
1•_chse_•56m ago•0 comments

2026 resolution: if Mozilla tampers with "uBlock Origin", I'm giving it up

6•fl4tul4•1h ago•4 comments

Show HN: RustX – Help me test/architect this new Rust-based scripting language

https://github.com/GrandpaEJx/RustX
1•ZOROX•1h ago•0 comments

More Dynamic Cronjobs

https://george.mand.is/2025/09/more-dynamic-cronjobs/
7•0928374082•1h ago•1 comments

The nightmares were horrific: Dads open up about crippling post-natal depression

https://www.bbc.com/news/articles/cy8v8xe24gzo
1•1659447091•1h ago•0 comments

GenAI experts replace 'Halo: Evolved' staff to impact Xbox game development

https://www.notebookcheck.net/Generative-AI-experts-replace-Halo-Campaign-Evolved-staff-to-impact...
1•MilnerRoute•1h ago•0 comments

Netflix automated its DVD operations

https://maxmautner.com/2019/12/06/netflix-dvd-automation.html
2•mslate•1h ago•1 comments

AI, Tariffs and Box Office – 14 Charts That Explain 2025

https://www.nytimes.com/2025/12/20/business/dealbook/charts-2025-economy.html
1•Mehuleo•1h ago•1 comments

Pay Remote Workers a Premium

https://maxmautner.com/2020/03/31/remote-work.html
4•mslate•1h ago•0 comments

The Compiler Is Your Best Friend, Stop Lying to It

https://blog.daniel-beskin.com/2025-12-22-the-compiler-is-your-best-friend-stop-lying-to-it
1•sothatsit•1h ago•0 comments

Learn Your Way – Re-imagining textbooks for every learner

https://learnyourway.withgoogle.com/
1•the-mitr•1h ago•0 comments

Rust GUI Dev on an Ancient Laptop with Zed and Waypipe

https://www.pedaldrivenprogramming.com/2025/12/zed-and-waypipe-for-remote-gui-development/
2•WD-42•1h ago•0 comments

Her daughter was unraveling, and she didn't know why. Then she found the AI chat

https://www.washingtonpost.com/lifestyle/2025/12/23/children-teens-ai-chatbot-companion/
5•impish9208•1h ago•1 comments
Open in hackernews

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

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