frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

MD study of force field accuracy for fatty acid-based phase change materials

https://www.nature.com/articles/s41598-026-80735-3
1•yunessalman•20s ago•0 comments

How did the United States become a lawyerly society?

https://marginalrevolution.com/marginalrevolution/2026/11/how-did-the-united-states-become-a-lawy...
1•smitty1e•1m ago•0 comments

Open benchmark: how close pptx renderers get to PowerPoint

1•avadaniels•3m ago•0 comments

Wall Street Expects Anthropic's Committed $900B Debt to Be Junk

https://www.wsj.com/finance/investing/anthropic-committed-to-spend-900-billion-wall-street-expect...
1•mgh2•4m ago•0 comments

Hiring Data Engineers

https://wd1.myworkdaysite.com/en-US/recruiting/ssctech/SSCTechnologies/details/Sr-Engineer-Ontolo...
1•joestein-ssnc•4m ago•1 comments

All the lists you could ever need

https://awesomelist.link/
1•pathwaysdigital•10m ago•0 comments

InferNode gives Bell Labs' Inferno OS a 64-bit second wind

https://www.theregister.com/os-platforms/2026/11/24/infernode-gives-bell-labs-inferno-os-a-64-bit...
1•rbanffy•10m ago•0 comments

xAI Founders Unveil New AI Startup to Predict Future Events

https://www.bloomberg.com/news/articles/2026-11-24/xai-founders-unveil-new-ai-startup-to-predict-...
3•matthewsinclair•11m ago•1 comments

Should you feel grief for the dead who go to heaven?

https://marginalrevolution.com/marginalrevolution/2026/11/should-you-feel-grief-for-the-dead-who-...
1•surprisetalk•12m ago•0 comments

Using AI+Lean to optimize and improve existing code

https://share.thomas.md/leanldgr
1•r0ze-at-hn•13m ago•0 comments

Aster – An open-source desktop pet for Claude Code

https://github.com/Nennie7W/aster-pet
1•Nennie7•14m ago•0 comments

Do inconsistent docs hurt AI coding agents?

https://developer.microsoft.com/blog/do-inconsistent-docs-hurt-ai-coding-agents/
1•waldekm•15m ago•0 comments

Show HN: Kindstats – Privacy-first web analytics with 100% EU infrastructure

https://kindstats.com/
2•sparkling•18m ago•0 comments

Claude Code vs. Gato AI Translations: Translating a WordPress Site to 100%

https://gatoaitranslations.com/blog/claude-code-vs-gato-ai-translations
1•leoloso•24m ago•0 comments

Educational OS fundamentals interactive tool

https://claude.ai/artifact/92CFxQiGu7rarFhhtkf1e1
2•omar77•24m ago•0 comments

Bosses loved AI at work – until they drowned in slop

https://www.businessinsider.com/ai-generated-workslop-leads-to-policies-firings-boss-fed-up-2026-11
5•gpi•24m ago•0 comments

Stop paying an LLM to re-plan the same agent task every day

https://github.com/hotpath-run/hotpath/blob/main/docs/HOTPATH-EXPLAINED.md
4•vonkey•26m ago•1 comments

700% Price Hike on DRAM in Gaming Consoles? Blame a 25-Year Cartel

https://www.thebignewsletter.com/p/a-700-price-hike-on-a-key-component
2•walterbell•33m ago•0 comments

A Deep Dive into JVM Startup

https://inside.java/2025/01/28/jvm-start-up/
1•signa11•35m ago•0 comments

Agents are just string concatenation

https://simmsreeve.com/blog/agents-are-just-string-concatenation/
1•ISNIT•35m ago•0 comments

Spn is the build system that C deserves

https://spader.zone/spn/
2•dboon•35m ago•0 comments

Show HN: Disc Unleashed – Ultimate Frisbee in the Browser, Godot

https://discunleashed.bindaasgames.com/play/
1•anandj82•35m ago•1 comments

Huss Huss Huss AI – 1-photo 15s gym lip-sync video with original audio

https://husshusshussai.app/
1•visiohex•37m ago•0 comments

Remotion – The core idea (sync React rendering to specific frames in a Video)

https://www.remotion.dev/docs/idea
1•peter_d_sherman•38m ago•0 comments

How Much AI Slop Does It Take to Unslop the AI Slop?

https://joshuamorris.info/notes/2026/09/29/how-much-ai-slop-does-it-take-to-unslop-the-ai-slop/
1•signa11•38m ago•0 comments

Windows Loudness Equalization, reverse-engineered and ported to PipeWire

https://github.com/xoxorwr/pw-loudness-eq
27•ThrowNotAway•38m ago•0 comments

Show HN: The ultimate companion for Claude Code

https://kakatu.app/
1•purple_wow•39m ago•0 comments

I turned off AWDL and my Mac's downloads tripled

https://blog.hagebols.com/posts/turning-off-awdl/
4•decide1000•42m ago•0 comments

Gemini at Work

https://discuss.google.dev/t/trusted-automation-with-google-antigravity-scaling-secure-finance-in...
2•hdkjhjshkjfhkjs•43m ago•0 comments

Magit in depth: Git from inside Emacs

https://pablomurad.com/magit-in-depth/
3•signa11•43m ago•0 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?