frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Scaling Redis Pub/Sub across many active channels and nodes

https://centrifugal.dev/blog/2026/06/29/scaling-redis-pub-sub
1•FZambia•46s ago•0 comments

Show HN: Bytesalt – AI that finds bugs Playwright tests miss

https://bytesalt.com
1•deepankvora•1m ago•0 comments

The Usage Runtime for AI Products

https://www.stigg.io/blog-posts/announcing-stigg-2-0-the-usage-runtime-for-ai-products
1•gemanor•1m ago•0 comments

Modern Digital Astrolabe – A 50k-Year Temporal Engine

https://jolly-lab-1d2f.cherlokrobin.workers.dev/
1•Cherlokrobin•2m ago•0 comments

Steam Machine Releases with KDE Plasma

https://pointieststick.com/2026/06/30/the-steam-machine-is-here/
1•LorenDB•4m ago•0 comments

ECAA-workflow: deterministic workflow compiler for FAIR bioinformatics

https://github.com/SuLab/ECAA-workflow
4•ahueb•6m ago•1 comments

AetherCut – video editor that runs in the browser, no uploads

https://aethercut.app
1•AetherCut•7m ago•0 comments

Fleet-kit – a production skeleton for running a fleet of trading bots

https://gitlab.com/myicloudmusic/fleet-kit
1•christian-faro•8m ago•0 comments

SSPX Consecrates Bishops in Defiance of Rome's Schism Warning

https://www.ncregister.com/cna/sspx-consecrates-bishops-in-defiance-of-rome-s-schism-warning
1•lordleft•8m ago•0 comments

Smooth-Maximum, the most useful function [video]

https://www.youtube.com/watch?v=6Qb6QtC6QMs
1•surprisetalk•9m ago•0 comments

Why I Stopped Arguing with People

https://wangcong.org/2026-06-30-why-i-stopped-arguing-with-people.html
18•backlit4034•9m ago•1 comments

The Scanline Sweeper: A Glyph Rendering Algorithm [pdf]

https://rookandpossum.com/papers/scanline_sweeper_preprint.pdf
1•kouosi•10m ago•1 comments

Search engines uses Status codes to understand your websites

https://medium.com/@thesuperrepemail/search-engines-uses-status-codes-to-understand-your-website-...
1•mssblogs•11m ago•0 comments

What's wrong with EU age verification? (Nothing)

https://blog.vrypan.net/2026/06/29/260629-whats-wrong-with-eu-age-verification/
2•birdculture•12m ago•0 comments

Palestine Action Proscription: We Fight Back

https://www.craigmurray.org.uk/archives/2026/07/palestine-action-proscription-we-fight-back/
2•jjgreen•12m ago•0 comments

The break-even point of automation

https://www.serval.com/serval-news/introducing-catalyst-automating-a-task-forever-should-be-easie...
1•emot•13m ago•0 comments

Tim Cook Holds 'Constructive' Talks with EU over Siri AI Launch

https://www.macrumors.com/2026/07/01/tim-cook-constructive-talks-eu-siri-ai-launch/
1•thm•15m ago•0 comments

Brain2Qwerty v2:Decoding of Natural Sentences from Non-Invasive Brain Recordings

https://facebookresearch.github.io/brain2qwerty/
1•arunc•16m ago•0 comments

Scaling Codebases Without Platform Bloat

https://hashnode.com/edit/cmr1k798k00000ahtbajb83pe
1•SurajUpadhyay0•16m ago•0 comments

The Vespa at 80: Why the Italian scooter remains the coolest thing on 2 wheels

https://www.cbc.ca/news/world/vespa-italy-postwar-design-9.7252641
2•cf100clunk•16m ago•0 comments

Qihoo 360: The Cyber Giant Behind China's Mythos Rival

https://www.forbes.com/sites/the-wiretap/2026/06/30/qihoo-360-the-cyber-giant-behind-chinas-mytho...
1•andsoitis•17m ago•0 comments

The Open Source American Kei Truck [video]

https://www.youtube.com/watch?v=vJJa9zBDa6A
2•goplayoutside•18m ago•0 comments

Show HN: Riley – Content That Sounds Like You, Not Like AI

https://rileywrites.ai
2•vacostacambas•18m ago•0 comments

Stripe Needs Client-Specific ACH IDs

https://www.jonathant.com/2026/07/01/stripe-needs-client-specific-ach-ids/
2•jtarud•19m ago•0 comments

A prompt injection nearly hijacked my coding agent mid-task

https://senthex.com/en/blog/prompt-injection-hijacked-my-coding-agent/
2•yohann_senthex•21m ago•1 comments

The Particle Box – Kinetic Molecular Theory Simulator

https://prepok.com/chemistry/particle-box/
4•vaibhav1312•22m ago•0 comments

TaskAnchor - easy multi-tasking, multi-project without mental, cognitive loss

https://www.anchorslabs.com/taskanchor
2•fprogress17•22m ago•0 comments

FB Group Scraper – Export Facebook Group Members to CSV

https://chromewebstore.google.com/detail/group-scraper/bnlncihomnoknnibnopnghbmdakkkhbj
3•qwikhost•23m ago•1 comments

The Livelymerge Experiment

https://www.inkandswitch.com/livelymerge/notebook/lm-01/
2•surprisetalk•23m ago•0 comments

IG Follow – Export Instagram Followers and Following to CSV and Excel

https://chromewebstore.google.com/detail/ig-follow/fhhgnhhpacaobakdiljfiioenjnnhcjf
2•qwikhost•23m 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?