frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

1,600 C reactor can melt raw Moon dust into finished solar cells, glass and wire

https://www.autonocion.com/us/reactor-moon-solar-cells/
1•Jimmc414•46s ago•0 comments

IBM Outlines Sub-1nm Nanostack Transistor Technology

https://www.servethehome.com/ibm-outlines-sub-1nm-nanostack-transistor-technology/
1•ksec•1m ago•0 comments

What is the best way to get survey answers?

1•Lil-Finance-Bro•3m ago•0 comments

Tabularis: Open-source desktop SQL client your AI agent can use

https://tabularis.dev/
1•maxloh•4m ago•0 comments

Code review is dead. Long live code review

https://blog.codacy.com/code-review-is-dead-why-ai-generated-code-needs-verification-not-human-ap...
1•claudiacsf•4m ago•0 comments

Windows 10 quietly gets one more year of support and updates

https://www.neowin.net/news/windows-10-quietly-gets-one-more-year-of-support-and-updates/
1•bundie•4m ago•0 comments

Measuring tech debt in tokens instead of engineering hours

https://heysoup.co/notes-tech-debt-token-function
1•heysoup•4m ago•0 comments

Show HN: Use AI once to build the automation, then run it with $0 in AI

https://www.visualbuild.me
2•visualbuildme•7m ago•0 comments

Show HN: VibeDrift – measuring AI coding drift across open source repos

https://www.vibedrift.ai
2•samiahmadkhan•8m ago•0 comments

The Boeing 747 Begins Its Final Descent

https://www.theatlantic.com/magazine/2026/07/boeing-747-retirement/687304/
2•dbl000•9m ago•1 comments

Cultures of Making and Relating

https://blog.khinsen.net/posts/2026/06/25/cultures.html
1•akkartik•10m ago•0 comments

Ghostty/Agents.md

https://github.com/ghostty-org/ghostty/blob/main/AGENTS.md
1•adithyassekhar•10m ago•0 comments

Technical feedback on a client-side microkernel enclave?

https://eunomia.adeno.ltd/portal/eunomia-demo.html
1•renrenrenren•11m ago•1 comments

Daytona is going closed source

https://www.daytona.io/dotfiles/updates/daytona-is-going-closed-source
1•ushakov•12m ago•0 comments

In Meta's Reality Lab: Your body's data was only valuable once

https://www.nplusonemag.com/online-only/online-only/in-the-reality-lab/
1•johnshades•12m ago•0 comments

The principle of least power (2007)

https://blog.codinghorror.com/the-principle-of-least-power/
1•pramodbiligiri•12m ago•0 comments

YouTube Video ID Allowance

https://michaelchadwick.info/blog/2026/02/02/youtube-video-id-allowance/
3•speckx•13m ago•1 comments

Everyone's Been Drawing Pterosaur Wings Wrong

https://nautil.us/everyones-been-drawing-pterosaur-wings-wrong-1282235
1•Brajeshwar•15m ago•0 comments

Object-oriented OS with many features of popular niche Linux distributions

https://github.com/Jonathan-R-Anderson/anonymOS/
2•rockbeatspaper•15m ago•1 comments

Show HN: Hikaru Labs – Bulk image and file processing, 100% in-browser

https://hikarulabs.xyz
2•CFBL•15m ago•1 comments

Calling everything AI-generated is lazy

https://00f.net/2026/06/25/stop-calling-everything-ai-generated/
1•Tomte•15m ago•0 comments

A Herculaneum scroll has been read for the first time

https://scrollprize.org/firstscroll
1•verditelabs•16m ago•1 comments

Billionaire's Warning: I'm Selling. The Crash Is Here [video]

https://www.youtube.com/watch?v=32u5T6lO8qk
2•hsnewman•18m ago•0 comments

Claude Code Hints at Fable Return

https://twitter.com/synthwavedd/status/2069813760622043483
4•thedebuglife•18m ago•3 comments

The Trump White House Is over Anthropic CEO Dario Amodei

https://www.wired.com/story/the-trump-white-house-is-over-anthropics-dario-amodei/
4•thedebuglife•19m ago•0 comments

What if some of history's earliest kings were queens?

https://www.nationalgeographic.com/history/article/history-earliest-kings-ur-sumeria
2•bookofjoe•19m ago•0 comments

Route Through Dead Zones. 302x Faster Than Google

https://www.elara-cortex.com/
1•jkuria•20m ago•0 comments

My New Life with the Palantir Chore Coat

https://www.theatlantic.com/technology/2026/06/palantir-chore-coat/687686/
2•jonah•20m ago•0 comments

Anthropic accuses Alibaba of largest distillation attack to date

https://www.cnbc.com/2026/06/24/anthropic-alibaba-distillation-campaign.html
2•paulddraper•20m ago•0 comments

Ask HN: Do you thank your agents when they did a good job?

3•ex-aws-dude•21m 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?