frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Don't Build Mindreading

https://keller.substack.com/p/dont-build-mindreading
1•celer•5m ago•0 comments

Show HN: Hosted LLM Wiki

https://getmana.md/
2•zintus•13m ago•0 comments

Rcarmo/wrdp: Experimental xrdp/sesman-like setup for Wayland-backed desktops

https://github.com/rcarmo/wrdp
1•rcarmo•17m ago•0 comments

World-class higher education targeting <$10k for degree

https://khanted.org
1•JSR_FDED•18m ago•0 comments

CATL Secures 2GWh Sodium-Ion Storage Deal with Solarpro for Eastern Europe

https://fuelcellsworks.com/2026/07/21/battery/catl-secures-2gwh-sodium-ion-storage-deal-with-sola...
1•jamesblonde•19m ago•1 comments

Tlbic v11.0 (French Edition): Bottom-Up Governance and AI Audit

https://drive.google.com/file/d/1XLbJ-tTlnFNgrzRxlYXE4FmVSpSoQMIm/view?usp=drive_link
1•michikawa59•20m ago•1 comments

Grammelot

https://en.wikipedia.org/wiki/Grammelot
1•schandmaul•24m ago•0 comments

The Fifteen-Minute Principal Engineer

https://markatwood.substack.com/p/the-fifteen-minute-principal-engineer
1•slyall•27m ago•0 comments

Building my own project management tool on Cloudflare

https://tom-dickson.com/blog/projektor-mcp-issue-tracker-cloudflare-workers/
1•tajd•27m ago•1 comments

Code harness for DeepSeek V4? OpenCode vs. pi vs. jcode vs. reasonix

https://grigio.org/which-is-the-best-coding-harness-for-deepseek-v4-opencode-vs-pi-vs-jcode-vs-re...
1•grigio•28m ago•0 comments

Google doesn't need the LLM crown

https://www.semafor.com/article/08/07/2026/google-doesnt-need-the-llm-crown
1•theanonymousone•32m ago•1 comments

Show HN: Appealr – 15s live face-offs ranked by human votes (not AI)

https://appealr.vercel.app
1•arian_•37m ago•0 comments

The Vampire Theorem Prover

https://github.com/vprover/vampire
1•modinfo•39m ago•0 comments

American oil company prepares to drill in Greenland

https://www.theguardian.com/world/2026/aug/08/greenland-iwarning-trump-linked-oil-firm-prepares-d...
1•qprofyeh•45m ago•0 comments

The screwdriver test, or What separates real engineers from the rest

https://carette.xyz/posts/a_story_of_screwdriver_drivers/
6•LucidLynx•48m ago•0 comments

Show HN: I updated my unofficial Substack Posting API

https://apisubstack.com/
2•bigmuzzy•49m ago•1 comments

From constraint models to playable puzzle games

https://zayenz.se/blog/post/constraint-generated-puzzle-games/
2•thunderbong•54m ago•0 comments

Conway's Law

https://martinfowler.com/bliki/ConwaysLaw.html
1•pykello•59m ago•0 comments

Big Ball of Mud

https://www.laputan.org/mud/mud.html
1•pykello•1h ago•0 comments

Grindr CEO Says AI Is Doing the Work of 200 Engineers

https://ai-updates.net/grindr-ceo-says-ai-is-doing-the-work-of-200-engineers/
4•ashurandi•1h ago•0 comments

How to Be a Consultant, a Freelancer, or an Independent Contractor (2011)

https://jacquesmattheij.com/be-consultant/
1•downbad_•1h ago•0 comments

Show HN: Non-custodial Monero->BTC/LTC atomic swaps in the browser (testnet)

https://testnetswap.com/
1•Tech1k•1h ago•0 comments

I'm leaving OpenAI to build Jurassic Park

https://taylor.town/leaving-openai
7•birdculture•1h ago•1 comments

How to Keep Thinking

https://www.seangoedecke.com/how-to-keep-thinking/
1•vinhnx•1h ago•0 comments

To Save C, We Must Save ABI

https://thephd.dev/to-save-c-we-must-save-abi-fixing-c-function-abi
1•gurjeet•1h ago•0 comments

Roku now has a 24/7 AI slop channel

https://www.theverge.com/entertainment/976939/roku-fairground-ai-fast-channel
3•BlueBerry2001•1h ago•0 comments

Show HN: ContentIQ – Evaluate and optimize content quality before publishing

https://app.contentiq.net/
1•Sharanxxxx•1h ago•0 comments

Europe's wildfires have raised the danger posed by unexploded WWII bombs

https://theconversation.com/europes-wildfires-have-raised-the-danger-posed-by-unexploded-wwii-bom...
2•jjp•1h ago•0 comments

It Looks Like You're Trying to Take over the World (2022)

https://gwern.net/fiction/clippy
1•vinhnx•1h ago•0 comments

A look into AP2 and HTTP 402 illustrated

https://blog.owulveryck.info/2026/06/25/from-isolated-agents-to-agentic-mesh-orchestrating-sdlc-w...
1•owulveryck•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?