frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Chinese AI labs are making four pretty different bets. I work at one of them

https://reddit.com/comments/1veipya/
1•thunderbong•43s ago•0 comments

Ask HN: Should the SFPL Have Tailscale

1•pieterk•44s ago•0 comments

Show HN: MCP Server for Biblical Corpus

https://nirajagarwal.github.io/bible-mcp/
1•niraj-agarwal•4m ago•0 comments

SK Hynix and SanDisk Unveil First High Bandwidth Flash Standard Specifications

https://news.skhynix.com/en/hbf-at-fms-2026/
2•mfiguiere•5m ago•0 comments

Show HN: Marketing Team Eve Template

https://github.com/vercel-labs/marketing-team-eve-template
1•flashbrew•6m ago•0 comments

The Invariant Is Hiding

https://yusufaytas.com/the-invariant-is-hiding
1•birdculture•9m ago•0 comments

Ancient, never-before-seen 'earthworks' discovered in the Amazon

https://www.scientificamerican.com/article/hundreds-of-ancient-never-before-seen-earthworks-disco...
1•gmays•11m ago•0 comments

Search for Life on Europa Just Got Harder

https://www.labroots.com/trending/space/30840/search-life-europa-harder
1•wawayanda•14m ago•0 comments

Ukraine – Life and Death of Innovation in the Drone War

https://jeffreylminch.substack.com/p/life-and-death-of-innovation-in-the
3•rmason•24m ago•0 comments

Show HN: LarpIn – LinkedIn, but everyone admits they're larping, one global feed

https://larpin.io
2•joeamroo•26m ago•0 comments

Ask HN: Does AI research need "world models" more than bigger LLMs?

2•unjuno•27m ago•1 comments

Attic: Move stale files to an external SSD, keep them in Finder

https://atticformac.com/
2•yapancha•29m ago•0 comments

Unsloth: Run and Train Local LLMs

https://github.com/unslothai/unsloth
1•ungreased0675•32m ago•0 comments

For sale: early access to Trump's Truth Social posts

https://www.npr.org/2026/08/01/nx-s1-5912219/trump-truth-social-access-insider-trading
2•petilon•36m ago•2 comments

Show HN: GHScan – Paste a GitHub URL, get a free security report in the browser

https://ghscan.vercel.app
1•JadaQ•36m ago•0 comments

Show HN: Launch – A Mac Script Launcher

https://staunchapps.com/launch/
1•andrewjk•39m ago•0 comments

Solving the Multi-Plane Telemetry Challenge with Argo CD and OSS MyDecisive

https://www.mydecisive.ai/blog/multi-plane-telemetry-argo-cd
1•jratkevic•41m ago•0 comments

LLMs Can't Jump

https://openreview.net/pdf?id=klU4737opt
2•gmays•42m ago•0 comments

Why did we wait so long for the bicycle? (2019)

https://blog.rootsofprogress.org/why-did-we-wait-so-long-for-the-bicycle
1•frozenseven•42m ago•0 comments

Robinhood Private Company Fund to Back Y Combinator Startups

https://finance.yahoo.com/small-business/articles/robinhood-private-company-fund-back-145137332.html
2•PKop•44m ago•0 comments

This Week in AI Native Companies #2: The context layer gets funded

https://www.insideainative.com/p/this-week-in-ai-native-companies-555
2•mmayernick•48m ago•0 comments

When the apartment listing is too good to be true

https://blog.denv.it/posts/when-the-apartment-listing-is-too-good-to-be-true/
4•denysvitali•50m ago•0 comments

Palantir soars 12% on blowout quarter, with US commercial revenue soaring ~150%

https://www.cnbc.com/2026/08/03/palantir-pltr-earnings-q2-2026.html
2•gslin•50m ago•0 comments

Chiral diffraction from aperiodic monotile structure

https://www.nature.com/articles/s41467-026-75023-7
1•sciences44•50m ago•0 comments

Agent needs a computer, not a container – introducing Cloudflare/computer

https://blog.cloudflare.com/cloudflare-computer/
1•mattzcarey•54m ago•0 comments

AI website builders: 10 prompt-to-app tools compared by pricing and code export

https://github.com/umairalisadaqat/awesome-ai-website-builders
1•umairalisadaqat•55m ago•0 comments

Show HN: mob.so – vibecode with friends in Discord

https://mob.so
1•david_shi•58m ago•0 comments

The Shape of Things to Come, Part 2: Model Welfare for Agentic Engineers

https://yegge.ai/essays/model-welfare/
2•networked•1h ago•0 comments

There Will Come Soft Rains [pdf]

https://users.wpi.edu/~zrbutzke/Docs/BradburyStories(1).pdf
4•pmg101•1h ago•1 comments

A Dad's Solution to His Son's Difficulty with Watches

https://www.nytimes.com/2026/07/21/fashion/watches-dyslexia-darren-sher.html
1•bookofjoe•1h 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?