frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Automated Engineering: What Happens Beyond the Plan?

https://blog.fruhinsholz.com/articles/automated-engineering-beyond-the-plan/
1•fruhinsholz•2m ago•0 comments

Canada's Supreme Court Upholds Quebec's Religious-Symbols Ban

https://www.wsj.com/world/americas/canadas-supreme-court-upholds-quebecs-religious-symbols-ban-c1...
3•JumpCrisscross•7m ago•0 comments

David Fincher Says A.I. Isn't "Hurting Cinema," Defends Its Use in 'Cliff Booth'

https://theplaylist.net/david-fincher-cliff-booth-ai-hurting-cinema-controversy-20261128/
1•Michelangelo11•9m ago•0 comments

Show HN: A daily game where four LLMs try to predict your answer

https://enduser.fun/
3•retrolover83•9m ago•0 comments

PocketBase has moved off GitHub

https://github.com/pocketbase/pocketbase/issues/7872
1•p2detar•11m ago•0 comments

Age is supposed to change your value

https://artoftraction.com/articles/age-is-supposed-to-change-your-value
2•sinac•11m ago•0 comments

Why the super rich are inevitable

https://pudding.cool/2022/12/yard-sale/
2•chistev•18m ago•0 comments

Trump says SEC's Atkins will make the use of the term 'SI' mandatory

https://thehill.com/homenews/administration/6246273-trump-sec-mandates-si-term/
5•everybodyknows•20m ago•4 comments

Patiele: A Practical Case of Infrastructure

https://patiele.io/en/inside-patiele/radical-infrastructure/
1•AmaEme•23m ago•0 comments

Musk Wants AI in Space. It's About Money, Not Mars

https://www.youtube.com/watch?v=yGuj9rIUfWI
3•frag•29m ago•1 comments

Every Marketing Manager Will Need to Become a Product Marketing Manager

https://www.kevinkatzke.com/blog/every-marketing-manager-will-become-a-product-marketing-manager/
2•kevinkatzke•29m ago•1 comments

Show HN: Dash, a desktop canvas where coding agents work beside your running app

https://dashcanvas.dev/
2•pbroas127•30m ago•0 comments

Banks are not profitable anymore (Failed and Seized)

https://www.seattletimes.com/business/united-fidelity-bank-seized-in-biggest-us-bank-failure-sinc...
5•trilogic•31m ago•2 comments

Public benchmarks and OpenSSL-verifiable post-quantum timestamps

https://github.com/SINECLAVE/sineclave-public/blob/main/docs/STRESS_TESTS.md
1•ifazlic•32m ago•0 comments

Natural England objects to datacentre Weeks later govt threaten to abolish it

https://www.theguardian.com/environment/2026/nov/27/natural-england-objected-datacentre-ministers...
1•nephihaha•33m ago•0 comments

Show HN: Venndetta, daily Venn diagram puzzles about real-world data

https://trost.co/venndetta/
11•matthewtoast•36m ago•4 comments

A grammatical view of logic programming [pdf]

https://www.researchgate.net/profile/Pierre-Deransart/publication/221266845_A_grammatical_view_of...
3•fanf2•41m ago•0 comments

The importance of understanding what the fuck is going on

https://blog.jsbarretto.com/post/understanding
3•notfried•41m ago•0 comments

OpenAI countersues Apple for stealing trade secrets

https://www.ft.com/content/af599e07-d44c-4068-ab84-6ee3c85551d4
2•droidjj•43m ago•1 comments

Iran used Elon Musk's Starlink to help wage attacks against U.S.

https://www.washingtonpost.com/national-security/2026/11/28/iran-used-elon-musks-starlink-interne...
6•cwwc•51m ago•3 comments

What Is 'Roughness', Really?

https://gpfault.net/posts/roughness.html
2•nice_byte•53m ago•0 comments

Show HN: Get lost with friends in an infinite 3D Library of Babel

https://github.com/skorotkiewicz/library-of-babel
2•modinfo•55m ago•0 comments

Canada Supreme Court Upholds Act Respecting the Laicity of the State in Quebec

https://decisions.scc-csc.ca/scc-csc/scc-csc/en/item/21777/index.do
3•matbilodeau•56m ago•1 comments

Runescape Security Incident: November 28 Downtime

https://secure.runescape.com/m=news/november-28-downtime
9•usernomdeguerre•57m ago•0 comments

Vectorized SVE2 Optimization of the Post-Quantum Signature ML-DSA on ARMv9-A

https://dl.acm.org/doi/10.1145/3839362
1•rbanffy•57m ago•0 comments

Show HN: Daily open job postings for 925 US stocks, from their own career sites

https://glitchbound-jobs.pages.dev/hiring-trends/
3•glitchbound•58m ago•0 comments

Los Angeles schools block Google's AI features, consider dropping products

https://www.pbs.org/newshour/education/as-google-threatens-to-cut-schools-search-access-los-angel...
2•geox•59m ago•0 comments

Ask HN: Anyone else in the UK get cyber attacked today?

1•definitelynotad•1h ago•0 comments

Show HN: Preflight CLI – a localscanner for AI coding agent skills

https://deepwissen.com/articles/why-i-built-preflight/
2•deepwissen•1h ago•0 comments

JumpStart: Alleviating the Front-End Bottleneck in Modern x86 Processors

https://dl.acm.org/doi/10.1145/3859372
1•rbanffy•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?