frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Forces of Nature

https://blog.42futures.com/p/forces-of-nature
1•danielrothmann•2m ago•0 comments

Workspace MCP v2 – Musings from the past 18 months building open source AI tools

https://workspacemcp.com/release-notes/v2
1•mooseisloose•2m ago•1 comments

Halo: Combat Evolved (For Original Xbox) Ported to Windows, Linux and Android

https://github.com/OpenCommunityEdition/OpenCE
1•softwaredoug•5m ago•0 comments

Google Playground

https://labs.google/playground
1•trollied•9m ago•0 comments

Google: Why we're backing America's existing nuclear plants

https://blog.google/company-news/why-were-backing-americas-existing-nuclear-plants/
1•MC995•9m ago•0 comments

I used my brain instead of AI – now CI runs 70% faster

https://shchoholiev.com/writing/use-your-brain-and-ai/
1•shchoholiev•11m ago•3 comments

How to Defend Against AI-Designed Viruses

https://warontherocks.com/how-to-defend-against-ai-designed-viruses/
1•crescit_eundo•11m ago•0 comments

Simulating V1 following Bressloff, Cowan et al.

https://heart.qri.org/retreats/2026-tepoz/emil-hall/bressloff-cowan-v1-simulation
1•surprisetalk•11m ago•0 comments

Multithreaded array operations for TypeScript programs

https://github.com/geastack/parallel
1•arbayi•11m ago•0 comments

NYC AI Report; Job Postings in Design, Media, and Writing Down 40%

https://pfnyc.org/research/artificial-intelligence-is-already-reshaping-new-york-city
1•sheepcow•12m ago•0 comments

The McDonaldization of Science

https://malcolmmielle.phd/bayesian-brain/research/The-MacDonaldization-of-Science-by-LLMs
1•_____k•12m ago•0 comments

Ship Captains Paid $100k a Month to Transit Strait of Hormuz

https://www.ft.com/content/0d665e5b-d8c8-4f1e-acf5-bba7193b4e6e
1•karakoram•13m ago•1 comments

I ported JetBrains' ThinkRail from a WebView to Avalonia with Ghostty

https://github.com/CommanderTvis/writing/tree/main/sharprail-avalonia
2•CommanderTvis•14m ago•0 comments

GitHub Actions scheduled (cron) workflows have been late or dropped since August

https://github.com/orgs/community/discussions/206019
2•excalo•16m ago•1 comments

Transactional Caching

https://tidesdb.com/articles/using-tidesdb-as-a-cache/
4•alexpadula•16m ago•1 comments

Show HN: Online Sampler and Shuffle Drummer

https://shuffledrummer.com/
1•shuffledrummer•17m ago•0 comments

Layer – Open-Source Python SDK for Trading Kalshi and Polymarket US

https://github.com/uselayer/uselayer-sdk
1•pemakenemi56•18m ago•0 comments

The Next Industrial Revolution

https://thenextwavefutures.wordpress.com/2026/08/21/the-next-industrial-revolution-david-mindell/
1•MaysonL•18m ago•0 comments

Pared – remove unwanted Apple Intelligence models without disabling SIP

https://github.com/4evy/pared
1•birdculture•18m ago•0 comments

Unrolled Code

https://noteflakes.com/articles/2026-10-07-unrolled-code
1•ciconia•18m ago•0 comments

StackIT – LIDL

https://stackit.com/en
1•oriettaxx•21m ago•0 comments

Show HN: CustomFrom – send from your own domain in Gmail after "Send as" ends

https://steadytabs.com/customfrom
1•2013xile•21m ago•0 comments

OLM to PST Converter Software

https://www.perfectdatasolutions.com/en/olm/olm-to-pst-converter.html
1•tieanderson•22m ago•0 comments

Show HN: HashCortX a full local harness on ur machine

https://github.com/Hash-7777/HashCortX
1•New_Hash•24m ago•0 comments

Deleting RAG from our web agent made it 2.3x faster

https://www.skyvern.com/blog/deleting-rag-from-our-web-agent-made-it-2-3x-faster/
1•suchintan•24m ago•0 comments

Check whether a DOI has been retracted, from the browser

https://pub-a941bfd863a24f91a60e6c4979c18a84.r2.dev/pi-sandbox-uploads/362063711151591424/2026-09...
2•ari_research•25m ago•1 comments

Mapping Potential Direct Exposure of U.S. Tariffs in Canada

https://mappingtariffs.org/map
2•karakoram•25m ago•0 comments

'This Is Nuts.' An OpenAI Insider Explains Why He Quit

https://www.nytimes.com/2026/10/07/opinion/ezra-klein-podcast-david-robinson.html
1•cezart•25m ago•1 comments

From Electron to Swift: why I rewrote Phiewer from scratch

https://phiewer.com/blog/electron-to-native-swift-mac-app
1•zinne_dev•26m ago•0 comments

Vulkan back end coming to SYCL

https://adaptivecpp.github.io/hipsycl/adaptivecpp/sycl/vulkan/android/vulkan-android/
1•JiggyMac•28m 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?