frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Microsoft's 1.4B Buildings

https://tech.marksblogg.com/ms-buildings-2026-11.html
1•marklit•4m ago•0 comments

A potential successor to copper reverses a major bottleneck in chip scaling

https://www.nature.com/articles/s41586-026-11288-8
1•Bry789123•11m ago•0 comments

Vernor Vinge: The curse of the mummy's tomb (1992)

https://akkartik.name/post/straumli
1•akkartik•11m ago•0 comments

Boston lottery winner arrested by ICE a week after claiming US$1M prize

https://www.ctvnews.ca/world/article/a-man-in-boston-won-us1-million-in-the-lottery-then-ice-arre...
3•madihaa•13m ago•0 comments

Show HN: Seahelm – Native Mac app for running Claude Code agents in parallel

https://github.com/BetaYao/seahelm
1•zhoujinliang•18m ago•0 comments

AI Is Supercharging Your Top Students and Probably Harming the Rest

https://www.edutopia.org/article/does-ai-help-students-learn/
2•RRWagner•21m ago•1 comments

OCRia-Nano-1

https://www.llamaindex.ai/blog/introducing-ocria-nano-1
1•Retro_Dev•21m ago•0 comments

Cory Doctorow: New York vs. auto-enshittification

https://pluralistic.net/2026/11/25/empire-state-strikes-back/
7•catab•30m ago•1 comments

How can people make money as AI replaces intellectual jobs?

11•fairetjrs•33m ago•5 comments

Good Beginner

https://twitter.com/saranormous/status/2125466501226594642
2•gmays•39m ago•0 comments

SpaceX gets FCC approval for 1M satellites to build data centers in space

https://www.cbsnews.com/news/spacex-fcc-approval-data-centers-space/
1•qtqtqt•40m ago•2 comments

Catching crumbs from the table (2000) [pdf]

https://gwern.net/doc/fiction/science-fiction/2000-chiang.pdf
1•japalan•40m ago•0 comments

An algebraic quantization of gravity from the null cone

https://arxiv.org/abs/2611.34924
2•hecmmm•41m ago•1 comments

macOS reverse Rosetta translation layer for Intel PCs removed from GitHub

https://github.com/tylertms/Stela/blob/main/README.md
2•rvz•43m ago•0 comments

Twig 1.18.2 – Copy, move or archive across folders, keep structure

https://github.com/dev2ex/twig/releases/tag/v1.18.2
1•dev2ex•47m ago•0 comments

Show HN: HookArmor – Self-hosted webhook queue that defeats 300s replay expiry

https://hookarmour.dev/
1•pkdoddamani•54m ago•0 comments

EFF: Outage Chaos: When Tech Is Too Big to Fail

https://www.eff.org/deeplinks/2026/11/outage-chaos-when-tech-too-big-fail
5•catab•55m ago•0 comments

Who wrote the Book of Mormon? Testing with pre-1830 language models

https://lifehug.com/book-of-mormon/
3•etherfuse•1h ago•2 comments

Study explains why radiation-triggered failures occur in electronics

https://news.ncsu.edu/2026/11/why-single-event-burnout-happens/
4•giuliomagnifico•1h ago•0 comments

Lions' Commentary on Unix: Why It Was Secretly Copied for 20 Years

https://fosscomics.com/posts/17.%20Lions%27%20Commentary%20on%20Unix/
11•joonehur•1h ago•1 comments

Show HN: An insanely cool-looking app on iPhone Duo

https://apps.apple.com/cn/app/%E9%A3%9E%E8%88%9E%E7%B2%92%E5%AD%90-%E4%BA%94%E5%BD%A9%E6%96%91%E6...
1•lucakk•1h ago•0 comments

Precisely.ai Catalog – AI Studio Catalog of App, Agent, Skill and Server

https://precisely.ai/explore
1•peter_d_sherman•1h ago•0 comments

Show HN: Fattura – Parse credit card PDF statements and split family bills

https://www.usefattura.com.br/en
1•jonathasgouv•1h ago•0 comments

Yournotalone

https://mindpillars.app
1•reaganenoch•1h ago•0 comments

I Learned to Stop Worrying and Love the AI

2•ghastmaster•1h ago•1 comments

Tate Brothers extradition hearing delayed until mid January

https://www.independent.co.uk/news/uk/crime/andrew-tate-tristan-tate-extradition-hearing-b3085979...
2•illidan1000•1h ago•0 comments

Unconditional Integer Factorization in Subexponential Time

https://github.com/google-research/google-research/tree/4a7bc8ab0bc770e71a259b7966c500496b99010a/...
3•_alternator_•1h ago•0 comments

The Beauty of CSS Mixins

https://patrickbrosset.com/articles/2026-11-25-the-beauty-of-css-mixins/
1•todsacerdoti•1h ago•0 comments

How I deal with angry and misinformed people

https://citizen-first.org/2026/11/26/how-i-deal-with-angry-and-misinformed-people/
5•kguppta•1h ago•1 comments

But good sir, what is electricity? (2025)

https://blog.coredump.cx/p/but-good-sir-what-is-electricity
1•crescit_eundo•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?