frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Popular code generator for TanStack Query hit by supply chain worm

https://www.aikido.dev/blog/popular-code-generator-for-tanstack-query-hit-by-supply-chain-worm
1•lbw1215•4m ago•0 comments

Algorithmic Rent-Pricing Litigation Expands Under New State and Local Laws

https://www.morganlewis.com/pubs/2026/08/algorithmic-rent-pricing-litigation-expands-under-new-st...
1•toomuchtodo•5m ago•1 comments

Show HN: TypeGPU Realtime Physics Sandbox

https://typegpu-sandbox.pages.dev
1•theRealestAEP•7m ago•0 comments

SkillRepo – Skillsets: Skill Governance for Teams

https://skillrepo.dev/blog/introducing-skillsets
1•atxpace•17m ago•0 comments

Is SQLite Having a Moment?

https://en.wikipedia.org/wiki/SQLite
1•diwash007•19m ago•0 comments

Meta Project OT plan to replace employees with AI agents

https://www.thestreet.com/technology/mark-zuckerberg-shocking-message-meta-employee-layoffs-artif...
7•elboru•30m ago•0 comments

Incorrect geo location for some Cloudflare WARP users – Cloudflare Status

https://www.cloudflarestatus.com/incidents/9g65dxfbcjln
1•kyisaiah47•31m ago•0 comments

Postgres isn't slow. Your storage is

https://clickhouse.com/blog/posette-talk-recap-postgres-isnt-slow-your-storage-is
3•gpavanb•40m ago•0 comments

President Trump Signs Executive Order to Create US Space Academy

https://www.nasa.gov/news-release/president-trump-signs-executive-order-to-create-us-space-academy/
5•efavdb•43m ago•1 comments

How-to-Dev

https://howtodev.vercel.app
2•kalleo•47m ago•0 comments

Tyler Cowen grills Acemoglu on liberalism, automation, edu elitism

https://www.youtube.com/watch?v=e5O1Y-5phEU
2•oliculipolicula•52m ago•0 comments

Infinite Interdimensional Cable

https://twitter.com/rehan_shei/status/2093528415576211819
2•nico•54m ago•2 comments

Hy4 Preview

https://hy.tencent.ai/research/hy4-preview
1•vismit2000•54m ago•0 comments

Ditch the 40-Ounce Water Bottle: You're Probably Hydrated Enough

https://www.wsj.com/health/wellness/ditch-the-40-ounce-water-bottle-youre-probably-hydrated-enoug...
1•Anon84•54m ago•3 comments

Show HN: Free English shadowing app for your own videos

https://github.com/TideSparrow/shadowing-english
1•markyuan123•58m ago•1 comments

FreeCORE TrueNAS Core – Continued

https://freecore.org/
27•sashk•59m ago•9 comments

China is fueling America's data center rage

https://www.axios.com/2026/08/28/china-ai-data-center-backlash-bots
5•ksec•1h ago•6 comments

Hirigana and Katakana keyboard touch type practice

http://thefreeschool.info/hirigana.html
1•dosmithds2060•1h ago•0 comments

I feel like AI start being a reflect of the CEO behind it (his political)

https://baseline-rouge-mu.vercel.app/
1•SachaSOL•1h ago•1 comments

I Tried to Trick Pangram. I Lost

https://awaitinginput.substack.com/p/i-tried-to-trick-pangram-i-lost
3•bsovran•1h ago•0 comments

A glacier collapse triggered a deadly landslide and flooding

https://www.reuters.com/graphics/NEPAL-FLOODS/MAP/byvrdywwlve/
2•mdani•1h ago•1 comments

Benjamin Franklin's Alter Egos Gave Him the Most Freedom

https://www.smithsonianmag.com/history/among-all-great-things-benjamin-franklin-invented-discover...
3•cisc•1h ago•0 comments

Anthropic's Claude for Mac desktop app now has built-in browser

https://thenewstack.io/claude-built-in-browser-cowork/
2•thoughtpeddler•1h ago•0 comments

Anthropic was illegally blacklisted by the Trump administration, court rules

https://www.theverge.com/ai-artificial-intelligence/985947/anthropic-supply-chain-risk-lawsuit-ju...
3•sbulaev•1h ago•0 comments

Show HN: Turn your GitHub activity into a receipt

https://receipthub.io/github
1•sleepy_duck•1h ago•0 comments

AI is changing religion and religions are trying to change AI

https://economist.com/international/2026/08/27/ai-is-changing-religion-and-religions-are-trying-t...
2•andsoitis•1h ago•0 comments

ProveIT – a short game to help you learn how formal proofs work in Logic

https://voxelrifts.itch.io/proveit
1•vismit2000•1h ago•0 comments

.

https://economist.com/international/2026/08/27/ai-is-changing-religion-and-religions-are-trying-t...
2•andsoitis•1h ago•0 comments

Crbro – Local, file-based persistent memory for AI agents (MCP)

https://github.com/Octonove/crbro-memory
1•cerebromcp•1h ago•0 comments

Cancer vaccine shows promise in preventing recurrence of melanoma

https://www.nbcnews.com/health/health-news/merck-moderna-say-melanoma-vaccine-promise-prevent-rec...
1•gmays•1h 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?