frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

WSJ Fabricated Statements from the Singapore Gov. On Jensen Huang and China Link

https://twitter.com/brianchau57/status/2121465308368265231
1•MrBuddyCasino•1m ago•0 comments

AWS made an official local emulator

https://chaosguru.substack.com/p/aws-finally-made-an-official-local
1•taubek•1m ago•0 comments

Sub-Planck structure in phase space and its relevance for quantum decoherence

https://www.nature.com/articles/35089017
1•u1hcw9nx•1m ago•0 comments

I was wrong about dark mode

https://dbushell.com/2026/11/09/dark-mode/
1•birdculture•2m ago•0 comments

Stock value as a distribution, not a price target

https://value-field.onrender.com
1•IVanalyst•4m ago•0 comments

Automated High-Density Knife-Edge Laser Beam Profiler

https://github.com/turtushig22-blip/thorlabs-esp32-laser-beam-profiler
1•turtushig22•5m ago•0 comments

Show HN: Saylark – Open-source voice dictation for Mac, like Wispr Flow

https://github.com/btahir/saylark
1•bilater•11m ago•0 comments

Brain Implants Give ALS Patients the Voice to Speak and Sing

https://www.nytimes.com/2026/11/14/science/brain-implants-als-voice.html
2•01-_-•11m ago•0 comments

Show HN:Learn Chinese Through Mythology and HSK Graded Stories

https://www.mythlingua.com/
1•vincent_sanfeng•12m ago•0 comments

Cloudflare: Spending Limits and Alerts

https://developers.cloudflare.com/billing/manage/spend-management/
2•taran_narat•13m ago•0 comments

Show HN: Dynaura – Dynamic Island toasts for the web

https://dynaura.ashutoshswamy.in
1•jackednerd•14m ago•0 comments

New tech allows public, law enforcement to identify drones, operator locations

https://www.trains.com/trn/railroads/photography-tips/new-tech-allows-public-law-enforcement-to-i...
1•harambae•16m ago•0 comments

Baltimore County schools phase out AI reading program

https://www.thebanner.com/education/k-12-schools/county-schools-artificial-intelligence-453DCFYJL...
2•biker142541•21m ago•0 comments

UPS cargo plane collides with passenger jet at Miami International Airport

https://www.gulfcoastnewsnow.com/article/planes-collide-at-miami-international-airport/74431861
1•thunderbong•22m ago•0 comments

Mirepoix

https://en.wikipedia.org/wiki/Mirepoix
1•tosh•23m ago•0 comments

Reading JSON at 277 GB/s in Python

https://lemire.me/blog/2026/11/14/reading-json-at-277-gb-s-in-python/
1•chmaynard•24m ago•0 comments

Show HN: IndexFast – see which of your pages search engines actually know about

https://indexfast.co
1•sh20raj•24m ago•0 comments

Show HN: Cshoal – A school of fish, hunted by predators, in your terminal

https://github.com/mcthomas/cshoal
1•Bondi_Blue•32m ago•0 comments

Book list for streetfighting computer scientists

https://nick-black.com/dankwiki/index.php?title=Book_list_for_streetfighting_computer_scientists
2•num42•52m ago•0 comments

ICC stops probe into US troops, continues investigating Taliban

https://www.newarab.com/news/icc-stops-probe-alleged-crimes-us-troops-afghanistan
1•cowlevel•58m ago•1 comments

I tested an AI dance edit on five seconds of footage, then tried the whole clip

https://medium.com/@wangjiayiliuyan/i-tested-an-ai-dance-edit-on-five-seconds-of-footage-then-i-t...
1•visiohex•1h ago•0 comments

Show HN: ShadowDiff – Shadow testing and SQL diffing for AI-migrated back ends

https://github.com/vishalrajofficial/ShadowDiff
1•vishalraj1•1h ago•0 comments

China's COMAC electric plane completes first crewed flight

https://www.reuters.com/video/watch/idRW841714112026RP1/
3•xbmcuser•1h ago•0 comments

Show HN: Hello Triangle, a puzzle game where you build a GPU

https://hellotriangle.icedlatte.ca/
2•icedlatte•1h ago•0 comments

PDF tools that run in the browser – nothing is uploaded

https://privacypdftools.com/
1•sareefirshan•1h ago•0 comments

Show HN: Offline quoting, receipts, and expense tracking for entrepreneurs

https://play.google.com/store/apps/details?id=com.companyname.moneyacc&hl=en_US
1•nowizzville•1h ago•0 comments

Electricity Prices Fall Across Australia as Renewables Build Momentum

https://cleantechnica.com/2026/06/01/electricity-prices-fall-across-australia-as-renewables-build...
2•xbmcuser•1h ago•0 comments

Hyperclay: Where your team's HTML files belong

https://hyperclay.com/
2•orangea•1h ago•0 comments

Jaab – AI Job Hunt Copilot

https://chromewebstore.google.com/detail/jaab-ai-job-hunt-copilot/anpjlacmlihooopakbogefcdffpibpll
1•cheikhdev•1h ago•0 comments

"Why Tailscale? (Open-sourcing my cover letters)"

https://thoward37.me/blog/articles/why-tailscale/
3•thoward37•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?