frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Parent and Child Screen Use and the Effects of Phubbing

https://www.jpeds.com/article/S0022-3476(24)00330-5/fulltext
1•theanonymousone•24s ago•0 comments

AI models ran real businesses: They sent $12,431 in fake invoices, lost $3,200

https://www.bottlenecklabs.com/blog/benchmarking-7-autonomous-businesses
2•Areibman•54s ago•0 comments

Show HN: HomeCat – Design your backyard office

https://myhomecat.com
1•dearilos•1m ago•0 comments

Another Heart Drug Fails Cardiologists

https://www.nytimes.com/2026/09/04/science/heart-drug-fails-novartis-pelacarsen.html
1•apparent•4m ago•0 comments

Show HN: Can you tell a real tweet of a certain user from an AI one?

https://socialsimbench.com/
1•ruggsea•4m ago•0 comments

Adobe ends an 18-year era as AI pressure mounts

https://sg.finance.yahoo.com/news/adobe-ends-18-era-ai-191300355.html
2•healsdata•7m ago•0 comments

Quotes

https://quoted-jnow.onrender.com
1•kookyeus•7m ago•0 comments

Show HN: Office42, a Clone of Excel

https://apps.microsoft.com/detail/9phpz3d7tgg5?hl=en-US&gl=US
2•roschdal•7m ago•0 comments

It's Time to Change the Math Calculus

https://www.forbes.com/sites/lindadarlinghammond/2025/06/28/its-time-to-change-the-math-calculus-...
1•andrewstetsenko•8m ago•0 comments

Proton protocols: The next chapter of WireGuard at Proton VPN

https://protonvpn.com/blog/protun-technical
1•karlzt•9m ago•0 comments

Show HN: See why Google and AI ignore your site and how to fix it

https://beseen.so
1•alexcloudstar•9m ago•0 comments

Liquid Network Pauses After $320M Bitcoin Withdrawal

https://coinmarketcap.com/community/post/379112837/
1•joeymabia1•9m ago•0 comments

Huawei, Xiaomi launch new foldable smartphones ahead of Apple event

https://www.reuters.com/technology/huawei-launches-new-foldable-smartphone-competition-with-xiaom...
1•geox•10m ago•0 comments

Europe's biggest mobile operators in talks for satellite-to-mobile venture

https://www.reuters.com/business/media-telecom/europes-biggest-mobile-operators-talks-satellite-t...
1•giuliomagnifico•11m ago•0 comments

Volkswagen to cut 100,000 jobs by end of decade

https://www.dw.com/en/volkswagen-to-cut-100000-jobs-by-end-of-decade/a-78896123
3•Betelbuddy•11m ago•0 comments

VMtree is a fast and easy way to provision self-hosted ephemeral VMs

https://github.com/kkovacs/vmtree
2•indigodaddy•11m ago•0 comments

€33M Raised in Final Edition of French Streamers' Charity Event

https://www.rtl.fr/actu/sciences-tech/zevent-2026-pres-de-33-millions-d-euros-recoltes-pour-l-ult...
2•LelouBil•12m ago•0 comments

Show HN: Possess, a TUI to browse and transfer coding sessions

https://github.com/steven-p-walsh/Possess
2•swalsh•12m ago•0 comments

What We Can Learn from Claude's Fable 5.1 System Prompt Changes

https://www.dbreunig.com/2026/09/07/what-we-can-learn-from-claude-s-fable-5-1-system-prompt.html
3•dbreunig•12m ago•0 comments

Why Labor's Share of Wealth Is Shrinking

https://www.nytimes.com/2026/09/07/opinion/labor-capitol-workers-income.html
3•marojejian•13m ago•1 comments

The Artificial Analysis Intelligence Index v4.3

https://artificialanalysis.ai/articles/artificial-analysis-intelligence-index-v4-3
2•wertyk•14m ago•0 comments

TrenchBoot DRTM Launch of Xen on Intel Sapphire Rapids

https://www.youtube.com/watch?v=GfOf6EYTClU
2•mkopec•18m ago•1 comments

Arabizi

https://en.wikipedia.org/wiki/Arabizi
2•simonebrunozzi•19m ago•0 comments

Arguments in Favor of AI Fair Use

https://kevinkelly.substack.com/p/arguments-in-favor-of-ai-fair-use
3•thm•19m ago•0 comments

One place to build, run and govern your company's AI agents

https://github.com/vstorm-co/agenticos
1•outageroom•19m ago•0 comments

I've operated petabyte-scale ClickHouse clusters for 5 years

https://www.tinybird.co/blog/what-i-learned-operating-clickhouse
1•adastral•20m ago•0 comments

After IndexNow: 6 Launch Channels Indie Founders Skip, and How to Hit Them

https://capytoolkit.com/blog/guides/after-indexnow-6-launch-channels-indie-founders-skip-weekend/
1•ChillyCapy•21m ago•0 comments

Getting started with the Mantis harness to find and fix bugs

https://cloud.google.com/blog/products/identity-security/getting-started-with-the-mantis-harness-...
2•joshcsimmons•22m ago•0 comments

GPT-6 Astra and the Fourth Exponential

https://taekim.substack.com/p/gpt-6-astra-and-the-fourth-exponential
2•thm•25m ago•0 comments

Halide – a language for fast, portable computation on images and tensors

https://halide-lang.org/
2•peter_d_sherman•26m ago•1 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?