frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Will the Open Internet Survive the War on Bots?

https://cdt.org/insights/will-the-open-internet-survive-the-war-on-bots-mapping-the-debate-over-a...
1•jruohonen•1m ago•0 comments

Show HN: Get Your IP Address

https://ip.ysebie.be/
1•whizzx•3m ago•0 comments

OpenLogi: Native, local-first alternative to Logitech Options+, written in Rust

https://github.com/AprilNEA/OpenLogi
1•taubek•4m ago•1 comments

Janus, a native Linux GTK3 text editor

https://github.com/gholmann16/Janus
2•gholmann16•5m ago•1 comments

Delivery drivers will get minimum wage in Australia's 'world-first' deal

https://www.theguardian.com/business/2026/aug/16/delivery-drivers-will-get-a-minimum-wage-in-aust...
2•tcp_handshaker•8m ago•0 comments

Using a shock collar to stop myself doomscrolling

https://011.sh/posts/pavlov/
2•mooncakes_ooohh•9m ago•0 comments

The Hidden History of the Western Esoteric Tradition

https://www.marymacgregor-reid.com/writing/occult-the-hidden-history-of-the-western-esoteric-trad...
3•jruohonen•14m ago•2 comments

The Next China Shock Is Here

https://www.nytimes.com/2026/08/21/opinion/ezra-klein-podcast-brad-setser.html
4•thelastgallon•14m ago•1 comments

Meta's Big Reckoning Is Here

https://www.wired.com/story/metas-big-reckoning-is-here/
1•rblion•17m ago•1 comments

A Year in LLM Serving: Workload Evolution, Caching and Load-Balancing

https://arxiv.org/abs/2608.13573
1•1a1a11a•17m ago•0 comments

Hootsuite Leaked AWS Keys

https://lunarcyber.com/domain-exposure/hootsuite.com
1•freemh•18m ago•0 comments

80% of developers find AI coding more addictive than helpful

https://www.zdnet.com/article/80-of-developers-find-ai-coding-more-addictive-than-helpful/
3•theanonymousone•19m ago•0 comments

Two things I've learned from game development as a web developer

https://codeutopia.net/blog/2026/08/22/two-things-ive-learned-from-game-development/
2•theanonymousone•20m ago•0 comments

Show HN: Knowl – agent memory that retires stale facts when they change

https://github.com/dat999zx/knowl
1•dat999zx•20m ago•0 comments

Digging the grave of my job: Hollywood creatives training AI to do their jobs

https://www.theguardian.com/technology/2026/aug/22/the-hollywood-creatives-training-ai-to-do-thei...
3•theanonymousone•20m ago•0 comments

Show HN: 3D Engine for Rust Programs

https://github.com/David-OConnor/graphics
1•the__alchemist•21m ago•0 comments

Always-On Agent Computers for Supabase

https://sanbox.cloud/blog/always-on-sanbox-computers-for-supabase/
1•oryx1729•23m ago•0 comments

A Friendly Introduction to Racket

https://geometridae.bearblog.dev/a-friendly-introduction-to-racket/
2•signa11•25m ago•0 comments

StateM: Stateful control for long-horizon agents

https://github.com/henryqin1997/statem
1•johntrob14•26m ago•1 comments

TikTok

1•kpyaesoneaung•28m ago•0 comments

Freud in the Age of Therapy-Speak

https://hedgehogreview.com/issues/the-fading-promise-of-higher-education/articles/freud-in-the-ag...
1•DiscourseFan•29m ago•0 comments

Going out of my way to prove I'm not an AI – Ep. #1 – OG images

https://huijer.co/notes/going-out-of-my-way-to-prove-im-not-an-ai-og-images
2•Doncametic•30m ago•1 comments

Volkswagen needs deep cuts to remain competitive, CEO says ahead of crunch talks

https://www.reuters.com/business/world-at-work/vws-blume-says-overhead-costs-30-above-rivals-5000...
2•Markoff•31m ago•3 comments

Show HN: I make my AI agents file paperwork before they're allowed to code

https://github.com/kidus-tiliksew/conveyor
1•kidustiliksew•32m ago•0 comments

Show HN: Running a full AI coding agent inside Cloudflare Durable Object

https://github.com/pawaca/dsh-edge
2•pawaca•35m ago•0 comments

Ask HN: Who's Building Small and Simple?

1•8by3•37m ago•0 comments

A Conversation with Cinematographer Vilmos Zsigmond

https://cinemasojourns.com/2026/08/22/a-conversation-with-cinematographer-vilmos-zsigmond/
2•jjgreen•39m ago•0 comments

Show HN: Pisesh, a zero-dependency TUI for finding and resuming Pi sessions

https://github.com/Blue-B/pisesh
1•blue-b•39m ago•0 comments

Brand Hype Has Existed Since the Bronze Age, Scientists Discover

https://www.404media.co/brand-hype-has-existed-since-the-bronze-age-scientists-discover/
1•Brajeshwar•41m ago•0 comments

Ask HN: Who's Building Small and Simple?

https://werkr.co.za/s/SFMyNTY.g2gDaAJhA3cDbmlsbgYAt_y4KaABYgABUYA.N-OUR_TJ-EnHPBpyC93dNsqjOWfSo-2...
2•8by3•41m ago•1 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?