frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

NirCmd – Windows command line tool

https://www.nirsoft.net/~nirsoft/utils/nircmd.html
1•thunderbong•3m ago•0 comments

Paul Pelosi in hit-and-run in Napa County wine country, police say

https://www.sfgate.com/news/politics/article/paul-pelosi-in-hit-and-run-in-napa-county-wine-22332...
1•turtlegrids•4m ago•0 comments

BESS deployment to escalate as lenders see the light

https://tamarindo.global/insight/analysis/bess-deployment-to-escalate-as-lenders-see-the-light/
1•zeristor•4m ago•0 comments

Fast Software, the Best Software

https://craigmod.com/essays/fast_software/
1•ustad•10m ago•0 comments

Electronic Engineers Master Catalog

https://archive.org/details/electronicengine00unse_8
1•ustad•11m ago•0 comments

Reducing Assumptions, Exploding Your Code

https://ryelang.org/blog/posts/reducing_assumptions_but_exploding/
1•mpweiher•13m ago•0 comments

Dark Mode with Web Standards

https://olliewilliams.xyz/blog/dark-mode/
2•thm•18m ago•0 comments

Splitzen – Split group expenses with one link, no sign-up

https://getsplitzen.vercel.app
1•piprads•18m ago•0 comments

Authors Sue Anthropic for $75M

https://theguptalog.blogspot.com/2026/07/100-authors-sue-anthropic-for-75m.html
1•guptalog•19m ago•0 comments

Show HN: WakaWiki, a CLI that maintains agent documentation for your codebase

https://github.com/sonyarianto/wakawiki
1•sonyarianto•19m ago•0 comments

Meta's Brain2Qwerty v2: A non-invasive brain-computer interface

https://facebookresearch.github.io/brain2qwerty/
1•mgh2•19m ago•0 comments

Codex Threads

https://github.com/kcosr/codex-threads
1•handfuloflight•24m ago•0 comments

New Android security setting spots bad networks and fake cell towers

https://www.zdnet.com/article/android-security-setting-spots-bad-networks-and-fake-cell-towers-ho...
2•tlhunter•25m ago•0 comments

Will co-located solar and BESS be the main driver of Europe's energy transition?

https://tamarindo.global/insight/analysis/will-co-located-solar-bess-be-the-main-driver-of-europe...
1•zeristor•30m ago•0 comments

Hunch – a Git-native decision graph your AI assistant obeys

https://hunch-pi.vercel.app
1•huchdave•30m ago•0 comments

Mysterious debris could be 'space balls'– may contain toxic rocket fuel

https://www.theguardian.com/australia-news/2026/jul/05/mysterious-debris-found-on-queensland-beac...
4•defrost•33m ago•0 comments

Nuclear Startups Hit a Big Milestone. Why It Matters–and Why It Doesn't

https://www.wired.com/story/nuclear-startups-hit-milestone-why-it-matters/
4•joozio•34m ago•0 comments

Agentsnap – find which config change broke your AI agent

https://drive.google.com/file/d/1oPTmOOkBtE0IRV4oy0K4NuuLxYBezXRc/view?usp=sharing
1•Gladi•38m ago•0 comments

Light Painting Tutorial, How to Light Paint a Light Man(2016)

https://lightpaintingphotography.com/light-painting-photography/light-painting-tutorial-how-to-li...
1•hopelessluca•44m ago•0 comments

GetSuperpower, an installable skill tree for coding agents

https://github.com/0xroylee/getsuperpower
2•1997roylee•44m ago•0 comments

'It's whack-a-mole': how Europe's smart border melted down

https://www.ft.com/content/3ed70f64-7443-4241-ac0f-38eabe218913
2•thm•47m ago•1 comments

Bending Spoons built a $23B tech empire from struggling brands

https://www.ft.com/content/040aac86-f458-400b-a353-7ff2ee5aa34f
3•mmarian•47m ago•1 comments

Notion based no code form builder

https://ndbforms.myurll.in/
1•nookeshkarri7•49m ago•0 comments

The Graduate-School Dropout Toppling China's Academic Stars

https://www.wsj.com/science/the-graduate-school-dropout-toppling-chinas-academic-stars-3c1e5d86
2•alecco•51m ago•1 comments

Toyota's CEO Warns the Company Might Not Survive

https://www.autonocion.com/us/toyota-crisis-chinese-evs/
2•Alien1Being•51m ago•0 comments

Show HN: Devflow CMS – Hybrid CMS Alternative to Joomla, Drupal, and WordPress

https://github.com/getdevflow
1•7mediaws•54m ago•0 comments

Is The Economist Always Wrong?

https://economist.com/interactive/finance-and-economics/2026/07/02/is-the-economist-always-wrong
1•andsoitis•55m ago•0 comments

Sollya: An environment and library for safe floating-point code development

https://www.sollya.org/
2•RossBencina•1h ago•0 comments

EV Batteries Are Defying Expectations After Miles

https://www.wsj.com/business/autos/ev-batteries-are-defying-expectations-after-hundreds-of-thousa...
18•apparent•1h ago•9 comments

Fidx – local semantic search in one SQLite file, no LLM at query

https://github.com/williamliu-ai/fidx
1•williamliu_ai•1h 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?