frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

America's Open-Model Paradox

https://twitter.com/DeanMeyerrr/status/2077834267086729674
1•aivantg•6m ago•0 comments

Show HN: We Want to Improve the Linux Experience on T2 Macs with KaiT2en Fedora

https://github.com/kaiT2en/KaiT2en-Fedora/
1•4l3x4f1sh3r•10m ago•1 comments

Grep by example: Interactive guide

https://antonz.org/grep-by-example/
2•saikatsg•10m ago•0 comments

Pushinka

https://en.wikipedia.org/wiki/Pushinka
2•benbreen•11m ago•0 comments

Gist of Go: Concurrency

https://antonz.org/go-concurrency/
1•saikatsg•11m ago•0 comments

We're Going to Make Out Like Bandits

https://www.rocketpoweredjetpants.com/2026/04/were-going-to-make-out-like-bandits/
1•birdculture•17m ago•0 comments

Passwork Shares Data with State-Certified Russian Firm

https://www.occrp.org/en/investigation/european-password-manager-shares-origins-and-updates-with-...
2•u1hcw9nx•19m ago•0 comments

Isvisible.ai, check if AI crawlers can access your site

https://isvisible.ai
1•alpkorpe•19m ago•0 comments

Show HN: Flick – Swipe Your Email

https://flicked.email/
2•Belkins•22m ago•1 comments

A few thoughts on building a terminal ePub reader with AI

https://github.com/newptcai/repy
2•dawdler-purge•23m ago•1 comments

Show HN: Open-source control engine for agents

https://attestorportal.com/
1•Oxlamarr•24m ago•0 comments

Netflix says around 300 titles used generative AI

https://www.theverge.com/streaming/966633/netflix-ai-titles-q2-2026-earnings
2•JamesAdir•25m ago•0 comments

Tech note: making your own V-I plots at home

https://lcamtuf.substack.com/p/tech-note-making-your-own-v-i-plots
1•surprisetalk•25m ago•0 comments

MongoDB Access Control – Users, Roles, and Permissions

https://visualeaf.com/blog/mongodb-access-control-users-roles-and-permissions/
3•mike_codes•28m ago•0 comments

Yggvault: Mirror Your Dependencies in One Binary

https://hackaday.io/project/206175-yggvault-mirror-your-dependencies-in-one-binary
1•SUNsung•30m ago•0 comments

Databricks is raising funding at $188B valuation

https://www.databricks.com/company/newsroom/press-releases/databricks-raising-strategic-round-fun...
1•shenli3514•33m ago•0 comments

VitaSet LLC's planning to add to LLVM's circt to make a FOSS Vita FPGA Compiler

1•VitaSetLLC•33m ago•0 comments

Show HN: Velora – On-device macOS dictation (Whisper and a local LLM, no cloud)

https://github.com/sushilk1991/velora
1•sushilk1991•33m ago•0 comments

Storm [video]

https://www.youtube.com/watch?v=HhGuXCuDb1U
1•nomilk•33m ago•0 comments

LLM Evaluators are Biased across Languages

https://arxiv.org/abs/2607.14480
1•sbulaev•33m ago•1 comments

Trump to declare emergency around midterms, former White House attorney says

https://www.pbs.org/newshour/show/trump-setting-stage-to-declare-emergency-around-midterms-former...
2•Alien1Being•34m ago•0 comments

The Determinist Fallacy

https://medium.com/luminasticity/the-determinist-fallacy-ae25f8bc50ed
1•bryanrasmussen•35m ago•0 comments

Show HN: I removed the LLM from my French grader – it marked correct words wrong

https://apostrophe-app.fr/en/
1•lienmt•35m ago•0 comments

Ask HN: Best approach to dependency vulnerability scanning in CI?

1•usman_oiu•36m ago•0 comments

Chinese Nvidia alternatives project massive sales as AI chip demand surges

https://www.scmp.com/tech/tech-trends/article/3360908/chinese-nvidia-alternatives-project-massive...
1•departed•38m ago•0 comments

Pluto fly-by mission wakes after long sleep nearly 9.5B kilometres from Earth

https://www.rnz.co.nz/news/science-and-technology/734969/pluto-fly-by-mission-wakes-after-long-sl...
3•billybuckwheat•39m ago•0 comments

Argc and argv in early Research Unix

https://utcc.utoronto.ca/~cks/space/blog/unix/EarlyUnixArgcAndArgv
3•ingve•39m ago•0 comments

The Download: OpenAI unveils GPT-Red and heat pumps rise in the US

https://www.technologyreview.com/2026/07/16/1140600/the-download-openai-unveils-gpt-red-heat-pump...
1•joozio•39m ago•0 comments

Can a Sticky Note Task Manager make me 100x more productive?

https://www.taskloco.com/
1•taskloco_nyc•43m ago•1 comments

Mosquito Killing Micro-Drone

https://tornyol.com/
2•gabriele4me•46m ago•1 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?