frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Keurig's new machine uses plastic-free compressed coffee pucks

https://www.theverge.com/tech/1003956/keurig-alta-coffee-machine-altarounds-pucks-appliance-preorder
1•rdmuser•1m ago•0 comments

Chrome extension that identifies the exact remix/edit/sped-up

https://chromewebstore.google.com/detail/musicpulse-–-identify-rem/mmpkdgbmfhikfjgokecogaabmdcm...
1•musicpulsedev•2m ago•0 comments

Show HN: Play an RL self-play policy in Pokemon Gen 3 Randbats in the browser

https://zkingston.com/advsim/
1•zak_kingston•3m ago•0 comments

'Neanderthals Among Us' by Peter Sahlins Review

https://www.historytoday.com/archive/review/neanderthals-among-us-peter-sahlins-review
1•pepys•4m ago•0 comments

Milt Windler, NASA flight director who helped save Apollo 13, dies at 94

https://arstechnica.com/space/2026/10/milt-windler-nasa-flight-director-who-helped-save-apollo-13...
1•divbzero•5m ago•0 comments

Generic Const Args and You

https://blog.rust-lang.org/inside-rust/2026/10/02/generic-const-args-and-you/
1•birdculture•8m ago•0 comments

Foldscape, an interactive atlas of mathematical curiosities

https://foldscape.zauberware.com
1•simon-franzen•11m ago•0 comments

Zordt – AI news distilled to what happened and why it matters

https://zordt.com/
1•vchilkuri•11m ago•0 comments

Ruby-lean: A Ruby semantics with a type soundness proof

https://samx.io/blog/topics/devlog/2026-09-26-ruby-lean.html
1•rajangdavis•12m ago•0 comments

Pixagram.com – The Anti-Social Media Network (Never Released Before) [video]

https://vimeo.com/1231934322
1•whistleblowhy•14m ago•0 comments

Shipping Is the Foundation

https://www.seangoedecke.com/shipping-is-the-foundation/
1•lwhsiao•14m ago•0 comments

Surely you have ultra-wideband radios on your bins too?

https://sjg.io/writing/binrange-have-you-actually-put-the-bins-out/
2•simonjgreen•17m ago•0 comments

A 17yo student spent 40 nights looking for a snake and discovered a new species

https://www.eldebate.com/ciencia/20261002/estudiante-17-anos-paso-40-noches-buscando-serpiente-de...
1•johnnyApplePRNG•18m ago•0 comments

Show HN: Check Product Mention

https://github.com/probelabs/aeo
1•lasgawe•19m ago•0 comments

Language Designers Panel – Stroustrup, Guido van Rossum, Torgersen and Tracey

https://www.youtube.com/watch?v=HFcTjwfpHWQ
2•ggcr•20m ago•0 comments

Behind the killer robots of Ukraine's new warfare 'revolution'

https://www.reuters.com/business/aerospace-defense/behind-killer-robots-ukraines-new-warfare-revo...
2•cisc•22m ago•0 comments

Show HN: Local pretrained classifiers, GPU not needed

https://github.com/nicobrenner/jeffy
1•nico•26m ago•1 comments

Co-Linguistics: AI-Augmented Theory Construction in Linguistics

https://arxiv.org/abs/2609.37635
1•puttycat•26m ago•0 comments

Process Matters More Than Output for Distinguishing Humans from Machines

https://arxiv.org/abs/2605.06524
1•timshell•28m ago•0 comments

Show HN: Linnaeus, a daily biological taxonomy game

https://play.linnaeus-game.workers.dev/
1•cartucho1•29m ago•0 comments

How do you control your phone use?

3•TomGarden•30m ago•1 comments

A Note on Content Restrictions

https://blog.zarfhome.com/2026/10/a-note-on-content-restrictions
2•panic•32m ago•0 comments

Aaron Sorkin Surprised Jesse Eisenberg Wouldn't Want to Play Mark Zuckerberg

https://variety.com/2026/film/news/aaron-sorkin-jesse-eisenberg-mark-zuckerberg-social-reckoning-...
3•gmays•35m ago•0 comments

The right side of the brain shows more signs of aging than the left, new study

https://www.psypost.org/the-right-side-of-the-brain-shows-more-signs-of-aging-than-the-left-new-s...
1•noisysoc•35m ago•0 comments

Show HN: KubeZap – Declarative workflow automation for Kubernetes

https://github.com/kubezap/kubezap-operator
2•borfswitch•38m ago•0 comments

AgentSight: System-wide AI agent profiling and monitoring with eBPF

https://github.com/eunomia-bpf/agentsight
2•matt_d•38m ago•0 comments

Transitive, Abstract, and Class Polymorphic Immutability

https://al.radbox.org/doi/10.1145/3839491
1•matt_d•41m ago•0 comments

Grubby: Static site generator for Git repos written in Ruby

https://git.btxx.org/grubby/
1•bradley_taunt•41m ago•0 comments

What is new in LLVM 23?

https://developer.arm.com/community/arm-community-blogs/b/tools-software-ides-blog/posts/what-is-...
2•matt_d•42m ago•0 comments

Former SR-71 Engineer Talks NASA's Blackbird Revival Program

https://www.twz.com/air/former-sr-71-engineer-talks-nasas-blackbird-revival-program
1•cisc•44m 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?