frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Kekdksbdn

1•uieuduurj•33s ago•0 comments

China's robots race ahead

https://www.theverge.com/tech/986167/china-humanoid-robot-games-race
1•Brajeshwar•1m ago•0 comments

ReactOS 0.4.16

https://reactos.org/project-news/reactos-0416-released/
1•birdculture•1m ago•0 comments

Own Your Intelligence: A How-To Guide

https://twitter.com/sonyatweetybird/status/2089390902162895350
1•gmays•1m ago•0 comments

Rust flight controller for the M5Stack Stamp Fly

https://github.com/staszewski/stampfly-rust/tree/main
1•kamilstaszewski•2m ago•0 comments

Real Fly Brain – chase and squash bugs with your cursor

https://www.realflybrain.com/
1•logicallee•2m ago•0 comments

Show HN: Spewer – Delegate Codex/Claude tasks to cheaper models

https://github.com/modiqo/spewer
1•conikeec•4m ago•1 comments

Employers Are Making Job Candidates Jump Through Hoops to Prove They're Real

https://www.wsj.com/lifestyle/careers/remote-job-interview-applications-fraud-c9022cbe
1•bryan0•4m ago•1 comments

Tell HN: HN's IPv6 address is down

2•nneonneo•9m ago•0 comments

2027 AI Power Shortfall of 15 GW

https://grok.com/share/bGVnYWN5_4f06d401-90e9-4ed4-bad8-89e3b4fadde2
2•gmays•13m ago•1 comments

Show HN: Murmell – Collaborative cloud canvas for coding agents

https://murmell.com/
3•Mossab22•14m ago•2 comments

Dolphins and Other Lovers

https://aeon.co/essays/why-the-andoque-of-the-amazon-fear-the-seductive-dolphin
2•the-mitr•16m ago•0 comments

What agent skills are made of: programming languages

https://plicara.ai/research/agent-skill-programming-languages/
2•3Mathematicians•17m ago•0 comments

Show HN: Sapporta – build database applications for power users

https://sapporta.com/
2•jasim•20m ago•0 comments

Revision Prompting asks the LLM for a patch when the input changes

https://revisionprompting.info/home
1•blasssky•20m ago•0 comments

Wealthy Americans Find Another Tax-Free Way to Invest

https://www.wsj.com/finance/investing/a-roth-ira-on-steroids-wealthy-americans-find-another-tax-f...
2•Betelbuddy•23m ago•0 comments

Zig: Pointer Stability for ArrayLists

https://ziglang.org/devlog/2026/#2026-08-27
2•tosh•24m ago•0 comments

Scaling Domain Data Repetition in LLM Pretraining

https://arxiv.org/abs/2608.14071
1•gmays•27m ago•0 comments

Emacs vs. Vim 2026: 24.3% vs. 8% Usage, 20x Memory Gap

https://tech-insider.org/emacs-vs-vim-2026/
5•pir8life4me•29m ago•0 comments

Free and Open-Source Web Search for Your AI Agents

https://pypi.org/project/simurg/
1•lebagetdefrance•30m ago•0 comments

Remembering the King who Drowned

https://komando1.substack.com/p/remembering-the-king-who-drowned
2•inglor_cz•30m ago•2 comments

Show HN: FinBridge – Korean stock market data for AI agents (MCP)

https://www.gronox.kr/
1•gronox-kr•32m ago•0 comments

Keeping an open source project going when GitHub stars slow down

https://twitter.com/paul_h0rn/status/2094070350120091915
3•BlueBerry2001•33m ago•1 comments

Ethical Issues in Advanced Artificial Intelligence

https://nickbostrom.com/ethics/ai
2•Anon84•34m ago•0 comments

Show HN: Cushion – PouchDB on Deno KV

https://jsr.io/@mikehall314/cushion
4•mikehall314•34m ago•1 comments

DNS Abuse and Criminal Infrastructure

https://labs.ripe.net/author/andrew_campling/dns-abuse-and-criminal-infrastructure-beyond-definit...
2•jruohonen•35m ago•0 comments

Doom Played on Series of 555 Timers

https://hackaday.com/2026/08/28/doom-played-on-series-of-555-timers/
2•nickbild•35m ago•0 comments

Europe's summer drought is so extreme that desertification is a growing threat

https://fortune.com/2026/08/29/europe-summer-drought-desertification-threat-rivers-fish/
17•Brajeshwar•36m ago•2 comments

Getting into Flow with AI Coding

https://www.natashatherobot.com/p/flow-ai-coding
2•ingve•37m ago•1 comments

Founder Mode vs. Founder Drift

https://keithbrown.com/founder-mode-vs-drift/
1•tech-pulse•37m 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?