frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: MeetCrate, export your Read AI and Fathom notes locally

https://lgdventures.github.io/meetcrate/
1•lgday•22s ago•0 comments

Mitmproxy on a Transparent Bridge on Linux

https://www.apalrd.net/posts/2026/network_capture/
1•speckx•1m ago•0 comments

Show HN: Spaceguesser – GeoGuessr for the Solar System

https://spaceguesser.com/
1•juliie•1m ago•0 comments

Bevy's Sixth Birthday

https://bevy.org/news/bevys-sixth-birthday/
1•birdculture•3m ago•0 comments

Doom Bible (1992) [pdf]

https://5years.doomworld.com/doombible/doombible.pdf
2•debo_•5m ago•0 comments

100x More Programmers

https://tailscale.com/blog/100x-more-programmers
1•mfrw•5m ago•0 comments

Brex Pitch Deck 2026 [pdf]

https://app-media.virtualspeech.com/samples/brex-pitch-deck.pdf
1•HFKG•5m ago•0 comments

AI stock selloffs fuel fears Big Tech's best quarters are over

https://www.latimes.com/business/story/2026-10-30/big-techs-growth-is-cooling-raising-fears-that-...
5•1vuio0pswjnm7•6m ago•1 comments

Original Diablo Game Design Doc [pdf]

https://www.graybeardgames.com/download/diablo_pitch.pdf
1•debo_•7m ago•0 comments

Show HN: FicScout – Like Goodreads, but see books rated by characters, plot etc.

https://ficscout.com
1•jtommy14•7m ago•0 comments

Dropbox to Acquire Tigris

https://thenewstack.io/dropbox-acquires-tigris-s3-alternative/
3•fabianlindfors•9m ago•0 comments

Blog: How the Python ecosystem responded to the eMudhra intermediate compromise

https://pyfound.blogspot.com/2026/11/how-python-ecosystem-responded-to.html
1•miketheman•9m ago•0 comments

OpenAI Renames Datacenters "Compute Campuses" [pdf]

https://cdn.openai.com/pdf/compute-campus-policy-blueprint.pdf
2•iamronaldo•10m ago•0 comments

'There Is One Fight': American Voters Reject Tech Oligarchy

https://www.404media.co/there-is-one-fight-american-voters-reject-tech-oligarchy/
5•Frieren•11m ago•0 comments

Mastra Skills – A curated collection for Mastra developers

https://github.com/YGhorbel/awesome-mastra-skills
2•yassineghorbelr•11m ago•0 comments

Witchcraft as Contagion

https://complexstories.uvm.edu/salem-witches/
3•speckx•11m ago•0 comments

Thoughts on Science vs. Magical Thinking

https://ghrelin.bearblog.dev/science/
2•madprops•12m ago•0 comments

80k Hops per Second Measurement Confirm Starlink Up/Downlink Channel Pairing

https://sdr-x.github.io/starlink-ul-dl-pair-80k-hop-ad9361/
3•fortran77•13m ago•0 comments

The architecture of open-weight LLMs: MoE, hybrid layers, ternary weights

https://www.silasdata.com/llm-playground-inside-architectures/
2•silasyl•13m ago•0 comments

Dense in Depth: Rethinking Security When Vulns Are Everywhere

https://medium.com/@TalBeerySec/dense-in-depth-rethinking-security-when-vulns-are-everywhere-229d...
4•el_duderino•14m ago•0 comments

Let's Talk About Black October

https://blog.gradle.org/lets-talk-about-black-october
2•torutofu•15m ago•0 comments

Models led prediction markets in forecasting the blue wave

https://www.natesilver.net/p/models-led-prediction-markets-in
2•7777777phil•16m ago•0 comments

Several European flights receive bomb threats, some divert

https://www.dw.com/en/several-european-flights-receive-bomb-threats-some-divert/a-79861216
2•N19PEDL2•16m ago•0 comments

The Beleaguered Chip Sellers Getting Their Revenge on Apple

https://www.wsj.com/tech/apple-iphone-memory-chips-ai-c0084cc9
2•ksec•17m ago•1 comments

74 years of US political ads

https://admap.org/#2026/
2•Eden09•18m ago•0 comments

Catching Bugs Early: Validating C++ Contracts with Static Analysis [video]

https://www.youtube.com/watch?v=3DDqDKaKmio
2•rramadass•18m ago•1 comments

Are Drone Ports the Next Annoying Neighbor? Flying delivery bots prompt concern

https://spectrum.ieee.org/drone-delivery-noise
2•oldnetguy•19m ago•0 comments

Dropbox Plans to Acquire Tigris

https://www.tigrisdata.com/blog/dropbox-plans-acquire-tigris/
3•xena•20m ago•0 comments

Show HN: Misogi - Do one hard thing this year, coached by your Muse

https://getmisogi.com/
1•ohong•21m ago•1 comments

MCP Explained

https://mcp-explained.com/
25•rwilinski•22m ago•4 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?