frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Why local AI tool execution is an anti-pattern

https://gace.dev/blog/why-local-ai-tools-are-an-antipattern
1•bstrama•1m ago•1 comments

Show HN: The framework for AI-native MCP servers

https://github.com/vinkius-labs/mcp-fusion
1•renatomarinho•1m ago•0 comments

The Streams Standard

https://domenic.me/streams-standard/
1•vinhnx•4m ago•0 comments

Against Query Based Compilers

https://matklad.github.io/2026/02/25/against-query-based-compilers.html
1•surprisetalk•6m ago•0 comments

American Abundance Index

https://humanprogress.org/american-abundance-index-dashboard/
2•surprisetalk•6m ago•0 comments

The Divergence Machine

https://contraptions.venkateshrao.com/p/the-divergence-machine
1•surprisetalk•6m ago•0 comments

Propnomicon – Cthulu Prop Blog

http://propnomicon.blogspot.com/
1•the_sleaze_•6m ago•0 comments

Circle Games (2019)

https://srconstantin.wordpress.com/2019/06/06/circle-games/
1•surprisetalk•6m ago•0 comments

The Looming AI Clownpocalypse

https://honnibal.dev/blog/clownpocalypse
2•aanet•8m ago•0 comments

There's Only One Idea in AI

https://bramcohen.com/p/theres-only-one-idea-in-ai
1•mpweiher•9m ago•0 comments

The far-right Bundestag aide and his rapping FSB case officer

https://theins.press/en/politics/268805
1•doener•12m ago•0 comments

compromise this: an AI resistant camera [pdf]

https://github.com/Berlin-West/Topology/blob/main/Topology%20(EN).pdf
1•RHEFOR•13m ago•0 comments

Abliteration

https://grokipedia.com/page/Abliteration
1•stressback•13m ago•0 comments

Ask HN: Upstream-First vs. the "Culture of Silence" in Embedded Engineering

1•tawayaccount•14m ago•0 comments

Show HN: I built a design tool for people who find Canva too bloated

2•epic_ai•14m ago•2 comments

AI Now Has Eyes

1•idobaiba•17m ago•0 comments

Show HN: Auto-cleanup for Claude Code's orphan process memory leak

https://github.com/theQuert/claude-code-cleanup
2•thequert•21m ago•0 comments

How did I believe that? A cult survivor looks back at his lost years

https://www.theguardian.com/tv-and-radio/2026/feb/28/cult-survivors-stories-aftercult-podcast-ntwnfb
1•Anon84•21m ago•0 comments

Downstream Testing

https://nesbitt.io/2026/03/01/downstream-testing.html
1•chmaynard•22m ago•0 comments

Antarctica's Mineral Riches Exposed as Climate Warms

https://www.nytimes.com/2026/02/26/climate/antarcticas-mineral-riches-exposed-as-climate-warms.html
1•bookofjoe•25m ago•1 comments

Du.ae Data Usage Widget

https://github.com/i3130002/DU-Data-Usage-Widget/releases/tag/Initial-Release-v1.0.0
1•i3130002•33m ago•1 comments

AI Angels – Hit all-time high usage, lessons from scaling a AI platform

https://www.aiangels.io
1•aiangels_24•34m ago•1 comments

Show HN: Fyrer – lightweight tool to run multiple dev servers concurrently

https://github.com/07CalC/fyrer
1•notcalc•37m ago•0 comments

15 Years of Indie Dev in 4 Bits of Advice

https://www.pentadact.com/2026-01-08-15-years-of-indie-dev-in-4-bits-of-advice/
1•birdculture•42m ago•0 comments

Ghostty – Terminal Emulator

https://ghostty.org/docs
4•oli5679•47m ago•0 comments

I used 2D Base64 to bypass Gemini and expose Google's moderation flaws

5•MissMajordazure•55m ago•0 comments

Show HN: Rulegen – Auto-generate Claude.md and .cursorrules from your codebase

https://github.com/vexorkai/rulegen
2•vexorkai•59m ago•1 comments

Show HN: Umitech – Web development, SEO, graphic design and marketing services

https://umitech.com.au/
1•pinin•1h ago•0 comments

Unlikely Wins and Comped Spins: Inside Stake's Empire

https://www.bloomberg.com/features/2026-stake-drake-crypto-casino-adin-ross-gambling/
1•thm•1h ago•1 comments

Show HN: Teletext-Style Portfolio Website

https://pakastin.fi
1•pkstn•1h ago•1 comments
Open in hackernews

Ask HN: How can I load test PostgreSQL but avoid changing actual data?

1•LawZiL•9mo 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•9mo 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•9mo 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•9mo 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•9mo ago
Load test against a clone instead of a DB whose contents you care about?