frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

A Billion Dollars

https://kevinkelly.substack.com/p/a-billion-dollars
1•thm•38s ago•0 comments

Show HN: Mnemosyne – No-back end visual novel engine (Vue 3 and Pinia)

https://github.com/Maris-CHALDEAS/MNEMOSYNE
1•souls-syntax•2m ago•0 comments

Show HN: Scant helps you find barely used Python dependencies

https://github.com/alan707/scant
1•squeakywheel•2m ago•0 comments

Manhattan Eruv – Status, Map and Boundaries

https://eruv.nyc/
1•cosmojg•3m ago•0 comments

Stream Deckin My Bots

https://chad.cm/thought/2026-8-24-stream-deckin-my-bots
1•carimura•4m ago•0 comments

Reasons to Start a Personal Website

https://jamesg.blog/2026/07/09/75-reasons-to-start-a-personal-website
1•speckx•5m ago•0 comments

Octopus intelligence may be related to never-before-seen mutation

https://www.smithsonianmag.com/smart-news/why-are-some-octopuses-so-smart-the-answer-might-lie-in...
1•bookofjoe•6m ago•0 comments

Mojang is enforcing "inappropriate" MOTDs even on private whitelisted servers

https://www.reddit.com/r/MinecraftServer/comments/1vwi3nb/mojang_is_apparently_enforcing_inapprop...
2•tech234a•9m ago•0 comments

The On-Line Encyclopedia of Bongard Problems

https://oebp.org/
1•m-hodges•10m ago•0 comments

Claude Code Tips

https://github.com/ykdojo/claude-code-tips
1•yoyoyosss•10m ago•0 comments

World Humanoid Robot Games 2026 Begin in Beijing [video]

https://www.youtube.com/watch?v=BF4ie98yHOk
1•yogthos•10m ago•0 comments

Xiaomi officially announces its next-gen flagship Xring SoC

https://www.notebookcheck.net/Xiaomi-officially-announces-its-next-gen-flagship-Xring-SoC.1376173...
1•yogthos•11m ago•0 comments

IBM and Arm Unveil Dual-Architecture Chip for Future Z and LinuxONE Mainframes

https://techstrongsemi.com/article/ibm-and-arm-unveil-dual-architecture-chip-plan-for-future-z-an...
1•CrankyBear•11m ago•0 comments

Text Like It's 2005

https://fulltalktime.com/
1•speckx•12m ago•0 comments

What I Built with Claude – sweet potatoes

https://www.reddit.com/r/ClaudeAI/comments/1vx6fyn/what_i_built_with_claude_sweet_potatoes/
1•neuralkoi•13m ago•0 comments

Adding 4 more 2.5GbE interfaces to the GMKtec NucBox G9

https://catskull.net/adding-4-more-25gbe-interfaces-to-the-gmktec-nucbox-g9.html
1•catskull•13m ago•0 comments

How Coding Interviews Evolved With AI, and Mostly Didn't

https://returnzero.dev/articles/coding-interviews-in-the-age-of-ai
1•mooreds•14m ago•0 comments

SF-isms – The lexicon of San Francisco tech slang

https://sfisms.org/
1•babelfish•14m ago•0 comments

Show HN: Headless Tools – No UI SaaS tools for agents

https://hdls.tools
1•fayazara•14m ago•0 comments

Concentrate AI: an LLM gateway that charges 0%

https://concentrate.ai
1•zacharymoskow•15m ago•0 comments

Ask HN: What AI companies provide human support?

1•kbrannigan•18m ago•0 comments

See how much your AI knows about you

https://www.withcorpus.com/knows
1•cgnry•18m ago•1 comments

The full-loop engineer: what comes after full-stack

https://andrewmurphy.io/blog/the-full-loop-engineer-what-comes-after-full-stack
2•mooreds•19m ago•0 comments

Heiligenstadt Testament

https://en.wikipedia.org/wiki/Heiligenstadt_Testament
1•tosh•19m ago•0 comments

US plans nuclear-powered merchant fleet to challenge China's shipbuilding

https://www.ft.com/content/bb60f5f1-bf4c-439e-b78b-3b018062c400
3•scrlk•20m ago•2 comments

Up to 30x More Work per Watt: Nvidia Vera Rubin NVL72

https://blogs.nvidia.com/blog/vera-rubin-nvl72-efficiency-ai-agents/
1•pama•22m ago•0 comments

Many ArXiv papers use various open LLMs

https://natolambert.substack.com/p/how-many-arxiv-papers-use-various
1•mariuz•22m ago•0 comments

Tell HN: HN Algolia Search not showing new results from the past 24 hours

1•infinitifall•22m ago•1 comments

China probes use of formaldehyde to keep cabbages fresh

https://www.bbc.com/news/articles/cy9ze48l2yeo
1•vinni2•23m ago•0 comments

Motif-Index of Folk Litterature

https://en.wikipedia.org/wiki/Motif-Index_of_Folk-Literature
1•dmbche•24m 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?