frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Dear Professor Erdos [pdf]

https://fanchung.ucsd.edu/ep/rej.pdf
1•jruohonen•1m ago•0 comments

Apple releases RSI-Inference: evaluating agents for self-improving LLM inference

https://twitter.com/onloglogn/status/2111170954944823685
1•low-rank•3m ago•0 comments

The math that OpenAI keeps for itself

https://newsletter.danielpaleka.com/p/the-math-that-openai-keeps-for-itself
1•dpaleka•3m ago•0 comments

Show HN: Task629 - Personal development tracking through task descriptions

https://github.com/sudo-bendg/task629
1•sudo-bendg•4m ago•0 comments

Hermit Mode

https://alearningaday.blog/2026/10/17/hermit-mode/
1•herbertl•5m ago•0 comments

Israeli settlers attack European diplomats in the West Bank

https://www.ft.com/content/35a08f82-6830-41fa-83ae-d3765f3970e0
3•michaelhillaert•5m ago•0 comments

I need an opinion on my app

1•contactlovreb•5m ago•0 comments

Scrum: An Honest Ad [video]

https://www.youtube.com/watch?v=fTaOdbUbFmI
1•ghassenfaidi•7m ago•0 comments

Western Europe is giving its spies teeth

https://rt-english.com/news/647259-europe-gives-spies-teeth/
1•contingencies•10m ago•0 comments

Astronomers discover the first ever green star

https://www.space.com/astronomy/stars/astronomers-discover-the-1st-ever-green-star-a-cosmic-zombi...
1•naves•10m ago•0 comments

Show HN: InBox Wall – A local-first, open-source email sanitizer for AI agents

https://github.com/Annora998/inboxwall
1•kurienbytes•11m ago•0 comments

Anthropic pitches its own AI safety bill to lawmakers

https://www.politico.com/news/2026/10/16/anthropic-ai-safety-01124654
5•EA-3167•11m ago•0 comments

Show HN: Halal Crypto Index – AAOIFI Shariah compliance screener for 800 coins

https://halalcryptoindex.com/
1•jjjjwww•11m ago•1 comments

8bf-host: Run 8bf plugins from the CLI without Photoshop

https://github.com/distortionary-labs/8bf-host
1•djberube_at_dur•11m ago•0 comments

The Decoherence Trap

https://maevyn.codes/decoherence
1•an0malous•12m ago•0 comments

Canadian AI company turns away from U.S. government work amid trade tensions

https://globalnews.ca/news/12098107/canadian-ai-company-caseway-turns-away-u-s/
2•ClearwayLaw•13m ago•1 comments

Much Ado About Seven Bytes

https://meatfighter.com/much-ado-about-seven-bytes/
1•zero__one•17m ago•0 comments

Having insurance doesn't mean you can get a mental health appointment

https://news.osu.edu/having-insurance-doesnt-mean-you-can-get-a-mental-health-appointment/
1•speckx•17m ago•0 comments

Selfhosting my AI chats: more privacy and sovereignty

https://janlukas.blog/thoughts/2026/10/selfhosting-ai-chats
1•jlelse•18m ago•0 comments

Is it always a good idea to patch?

https://kadhirvelm.dev/blogs/is-it-always-better-to-patch
1•kadhirvelm•18m ago•0 comments

The Altair 8800 Reborn

https://adwaterandstir.com/altair/
3•andrewstuart•24m ago•0 comments

Why Anthropic Is Asking for a Rehearing En Banc

https://www.lawfaremedia.org/article/why-anthropic-is-asking-for-a-rehearing-en-banc
2•hn_acker•25m ago•0 comments

Largest PR in History

https://github.com/hari90/LargestPR/pull/1
1•harisund1990•26m ago•0 comments

Nono: Agent runtime security. Kernel-enforced boundaries for AI agents

https://nono.sh
1•pessimizer•28m ago•0 comments

Sake-lang: Experimental language based on Ruby but with types for each operation

https://github.com/ko1/sake-lang
1•ksec•30m ago•0 comments

OpenCode possibly leaked byok provider credentials

https://www.reddit.com/r/opencode/s/cUYzx0o7Kv
4•minraws•32m ago•0 comments

YouGene: Genetics as Character Stats

https://yougene.ai/
1•vasilypiccone•32m ago•1 comments

Finding an Easter Egg in Microsoft Bob

https://benstoneonline.com/posts/microsoft-bob-easter-egg/
1•austinallegro•34m ago•0 comments

Show HN: Agent skill for designing iOS apps for iPhone Duo

https://github.com/Belweave/iphone-duo-design
1•pkyanam•35m ago•0 comments

Vela – A Linux desktop environment with a custom Wayland compositor

https://velade.org/
4•BrandoDev_it•35m ago•2 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?