frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Operation Sundevil (1990)

https://en.wikipedia.org/wiki/Operation_Sundevil
1•rickcarlino•44s ago•0 comments

Stablecoin Reserve Race: Brazil Pix, Morgan Stanley, OCC Charters

https://stablecoinbrief.substack.com/p/stablecoin-reserve-race-brazil-pix
1•knivef•6m ago•0 comments

Building agents that reach production systems with MCP

https://claude.com/blog/building-agents-that-reach-production-systems-with-mcp
1•gmays•11m ago•0 comments

Biology is a Burrito: A text- and visual-based journey through a living cell

https://burrito.bio/essays/biology-is-a-burrito
9•the-mitr•25m ago•0 comments

Can LLMs create lasting flashcards from readers' highlights?

https://memory-machines.com/report/
1•jryio•26m ago•0 comments

The Arpanet Reconstruction Project

https://obsolescence.dev/arpanet_home.html
2•ecliptik•27m ago•0 comments

Where the Goblins Came From

https://openai.com/index/where-the-goblins-came-from/
60•ilreb•29m ago•13 comments

Demonstrating the idea of gamma camera imaging [video]

https://www.youtube.com/watch?v=PyGlHtvihXA
3•num42•30m ago•0 comments

Ernie 5.1 Preview

https://ernie.baidu.com/
3•qainsights•32m ago•0 comments

Strait of Hormuz Daily Intelligence

https://insights.windward.ai/
3•jnord•34m ago•0 comments

LFM2-24B-A2B: Scaling Up the LFM2 Architecture

https://www.liquid.ai/blog/lfm2-24b-a2b
2•nateb2022•34m ago•0 comments

Finetuning Activates Verbatim Recall of Copyrighted Books in LLMs

https://github.com/cauchy221/Alignment-Whack-a-Mole-Code
3•reconnecting•38m ago•0 comments

Functional Programmers need to take a look at Zig

https://pure-systems.org/posts/2026-04-29-functional-programmers-need-to-take-a-look-at-zig.html
7•xngbuilds•39m ago•0 comments

Transponders to be installed on New York area airport ground vehicles

https://apnews.com/article/laguardia-plane-crash-air-canada-transponders-18578e94f2f7ec67b5ed45e9...
2•geox•39m ago•0 comments

GitHub Is Sinking

https://dbushell.com/2026/04/29/github-is-sinking/
4•xngbuilds•42m ago•0 comments

Opus 4.7's New Tokenizer: What It Costs

https://openrouter.ai/announcements/opus-47-tokenizer-analysis
4•vinhnx•43m ago•0 comments

Scroll-Driven Animations

https://www.joshwcomeau.com/animation/scroll-driven-animations/
2•vinhnx•43m ago•0 comments

AI Groupchats app just launched

https://techcrunch.com/2026/04/29/meet-shapes-the-app-bringing-humans-and-ai-into-the-same-group-...
2•nooriee•44m ago•1 comments

Show HN: Lssh – Terminal-native remote access suite for SSH and cloud targets

https://github.com/blacknon/lssh
2•blacknon•46m ago•1 comments

What is something you started and then wish you started earlier?

https://old.reddit.com/r/AskReddit/comments/1szjkl5/comment/oj2a8b7/
3•eeko_systems•48m ago•0 comments

I Choose Email over Messaging

https://www.spinellis.gr/blog/20250926/
3•fagnerbrack•49m ago•0 comments

The TypeScript AI Framework – Mastra

https://mastra.ai/
2•fagnerbrack•50m ago•0 comments

Build programmatic agents with the Cursor SDK

https://cursor.com/blog/typescript-sdk
2•2arrs2ells•51m ago•0 comments

The AI Compute Extensions (ACE) for x86 [pdf]

https://x86ecosystem.org/wp-content/uploads/2026/03/ACE-Whitepaper-v1.pdf
3•matt_d•57m ago•0 comments

Microsoft open sources DOS 1.00 on 45th anniversary

https://opensource.microsoft.com/blog/2026/04/28/continuing-the-story-of-early-dos-development/
11•hackthemack•57m ago•1 comments

Beyond Conventional Drones: A Review of Unconventional Rotary-Wing UAV Design

https://www.mdpi.com/2504-446X/9/5/323
3•CarbonBasedUnit•57m ago•0 comments

Warm Burnout: editor and terminal color scheme

https://warmburnout.com/
5•cdrnsf•59m ago•0 comments

IBM Releases Granite 4.1 family of models

https://research.ibm.com/blog/granite-4-1-ai-foundation-models
5•ibgeek•1h ago•0 comments

Agents can now create Cloudflare accounts, buy domains, and deploy

https://blog.cloudflare.com/agents-stripe-projects/
2•tech234a•1h ago•0 comments

QuaryLite

https://github.com/sardortpd-eng/QuaryLite
2•sardor-sam•1h ago•0 comments
Open in hackernews

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

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