frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Postgres mirroring in Snowflake: what it costs

https://medium.com/@yanivleven/postgres-mirroring-in-snowflake-what-it-really-costs-and-how-to-ke...
1•yanivleven•1m ago•0 comments

A database of temperatures for large inland lakes across the coterminous U.S.

https://www.nature.com/articles/s41597-024-03103-8
1•bryanrasmussen•2m ago•1 comments

Room for Ambition

https://karrisaarinen.com/posts/room-for-ambition/
1•yakkomajuri•3m ago•0 comments

Show HN: I re-read the terms of 175 AI tools twice; 60% changed in 15 weeks

https://clipjury.com/guides/ai-tool-terms-changed-2026/
1•abdallahamjid•3m ago•0 comments

How to build a SaaS product with Claude Code

https://www.theaithinker.com/p/how-to-build-a-saas-product-with
1•adamfaik•4m ago•0 comments

Jev for Every Slack Message

https://slacklookout.com/
1•m_busel•5m ago•0 comments

AI researchers stranded Claude on a virtual desert island. It started to "play."

https://www.technologyreview.com/2026/10/19/1147095/ai-stranded-claude-virtual-desert-island-play/
1•joozio•7m ago•0 comments

Top six AI spenders are spending more than the Russian govt. this year

https://www.takingstock.ai/
1•hayekstan•8m ago•1 comments

America Is Now an Ally of Russia

https://www.theatlantic.com/ideas/2026/10/america-now-ally-russia/689066/
4•robtherobber•8m ago•1 comments

Ask HN: What are the things LLM models fail at?

1•aqua_coder•8m ago•0 comments

Quisnap, Somewhere between live streaming and screensharing

https://quisnap.app/
1•BmHassen•9m ago•0 comments

Asking minified JSON can reduce output token costs by 30%

https://getsnapkin.app/en/engineering/minified-json-output-token-costs
1•Mojah•13m ago•0 comments

Ask HN: Do you know Bitbucket are chaning their SSH endpoints?

1•mcrmonkey•14m ago•0 comments

Wine Now Runs on OpenBSD

https://marc.info/?l=openbsd-ports&m=179236125692175&w=2
2•upofadown•15m ago•0 comments

Show HN: Twenty1 – Would You Rather and 21 Questions with Friends

https://twenty1.online/
1•RADSR•15m ago•1 comments

Let's Encrypt is adding two additional remote perspectives for domain validation

https://community.letsencrypt.org/t/lets-encrypt-is-adding-two-additional-remote-perspectives-for...
2•gslin•16m ago•0 comments

Who does the work, the model or the software?

https://www.thepythoncodingstack.com/p/2-who-actually-does-the-work-the
1•theletterf•19m ago•0 comments

Study: ML using speech can estimate chronological and biological age

https://www.tcd.ie/news_events/top-stories/featured/voice-may-reveal-how-well-you-are-aging/
1•giuliomagnifico•19m ago•0 comments

Scientists Find a 'Ghostly Green' Star, and That's Not the Only Crazy Color

https://www.cnet.com/science/space/white-dwarf-star-color-variability/
2•rbanffy•22m ago•0 comments

Atom Echo on your own ESPHome build: push to talk, a doorbell, no internet

https://blog.jacq.cc/guides/atom-echo-own-firmware/
1•xx__yy•22m ago•0 comments

How AI is creating a lopsided US economy

https://www.abc.net.au/news/2026-10-19/ai-stock-market-concentration-data/107261078
2•tys-•22m ago•0 comments

Show HN: CanaryGuard – A <0.1ms deterministic AI prompt firewall with $5 bounty

https://canaryguard-402.onrender.com/bounty.html
1•kurox_real•24m ago•0 comments

Documents: Police officer gave her Flock login to her ICE agent husband

https://www.wjcl.com/article/savannah-police-officer-ice-agent-flock-access/74135816
3•DeepLogin•25m ago•0 comments

The Weak Points in AI Bonds Are Becoming Clearer

https://www.wsj.com/finance/investing/the-weak-points-in-ai-bonds-are-becoming-clearer-12f09cc6
1•AnodicElegy•27m ago•0 comments

I have a thing for fast trains

https://chrispattle.com/blog/i-have-a-thing-for-fast-trains
2•pattle•29m ago•0 comments

Celebrating 35 Years of Linux: The Open Source Engine Powering Global Innovation

https://www.linuxfoundation.org/blog/celebrating-35-years-of-linux-the-open-source-engine-powerin...
1•theanonymousone•30m ago•0 comments

Training a Chess Reasoning Agent

https://blog.lukesalamone.com/posts/chess-reasoning-llm/
1•alexmolas•30m ago•0 comments

What's on That Access Port?

https://danielmangum.com/posts/whats-on-that-access-port/
1•hasheddan•33m ago•1 comments

Speeding up code review with `small-change`

https://lethain.com/small-changes/
1•alexmolas•35m ago•0 comments

Russian milsat closes from 200 miles to 3 miles of US satellite aiding Ukraine

https://www.tomshardware.com/tech-industry/space/russian-military-satellite-closes-from-200-miles...
1•NordStreamYacht•36m 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?