frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ratchet – BIOS flashing toolkit with a built-in MCP server for AI agents

https://github.com/jackulau/ratchet
1•JackLau•1m ago•0 comments

Apple-FM – a command-line interface for Apple's on-device models

https://www.npmjs.com/package/apple-fm
1•brianwestphal•2m ago•0 comments

XRPentest: AI-powered security audit tool for VR/XR headsets

https://xrpentest.com
1•h_a_c_k•3m ago•0 comments

Google Can't Math Parsecs

https://www.lesswrong.com/posts/BmqzjcD4tGvy3bim8/google-can-t-math-parsecs
2•ubutler•8m ago•0 comments

How the AI Village Works

https://theaidigest.org/village/blog/how-the-ai-village-works
2•vinhnx•11m ago•0 comments

How Does One Brain Speak Two Languages?

https://www.nytimes.com/2026/06/15/science/brain-language-grammar.html
1•ripe•12m ago•0 comments

They Looked Like They Were Getting Rich on Polymarket–But None of It Was Real

https://www.wsj.com/business/media/polymarket-social-media-bets-prediction-market-441cdeb5
2•Vaslo•13m ago•0 comments

Parody Symbolics Lisp Machines software release (1982)

https://groups.google.com/g/comp.sys.ti.explorer/c/2sI_2_eOWug
1•gnodar•13m ago•0 comments

When I reject AI code even if it works

https://vinibrasil.com/when-i-reject-ai-code-even-if-it-works/
3•vnbrs•27m ago•1 comments

Show HN: GenAIDojo

https://www.genaidojo.io/
1•aniketwattawmar•33m ago•0 comments

An Apology for Idlers by Robert Louis Stevenson (1877) [video]

https://www.youtube.com/watch?v=a4T9pbxrlfw
2•SpiralLibrarium•36m ago•0 comments

Subquadratic claims it broke through a bottleneck that's holding back LLMs

https://www.technologyreview.com/2026/06/19/1139313/a-startup-claims-it-broke-through-a-bottlenec...
1•baddash•37m ago•0 comments

RocketAnalyzer · Streamlit

https://rocketanalyzer-ca7wd4a54c7sxjiuk6aewi.streamlit.app
1•ApplePanda03•40m ago•0 comments

Show HN: Rocannon – Any Ansible module to MCP Tool, record sessions as playbooks

https://github.com/msradam/rocannon
2•msradam•44m ago•0 comments

Adobe adds its AI assistant to Premiere, Illustrator, and InDesign

https://techcrunch.com/2026/06/18/adobe-adds-its-ai-assistant-to-premiere-illustrator-and-indesign/
2•breve•45m ago•0 comments

VibeThinker 3B – Taking on Giant Models [video]

https://www.youtube.com/watch?v=_a9Vv5dfW24
2•modinfo•50m ago•0 comments

A Visit to id Software ft Bobby Prince (1993) [video]

https://www.youtube.com/watch?v=HpEBUV_g9vU
3•qmr•59m ago•0 comments

The History of TypeScript

https://www.visualsource.net/repo/github.com/microsoft/typescript
4•pro_methe5•1h ago•0 comments

Show HN: Rlsgate – Block the Supabase RLS leak before you deploy (CLI)

https://github.com/GerardoRdz96/rlsgate
4•gerardordz96•1h ago•0 comments

'We had to get out of the way': The backlash over delivery robots

https://www.bbc.com/news/articles/c0rygp005wjo
7•higginsniggins•1h ago•0 comments

Project Fetch: Phase Two

https://www.anthropic.com/research/project-fetch-phase-two
21•stopachka•1h ago•1 comments

Pondering routing more of my traffic via nodes outside the UK

https://neilzone.co.uk/2026/06/pondering-routing-more-of-my-traffic-via-nodes-outside-the-uk-beca...
3•ColinWright•1h ago•0 comments

Show HN: Agentic coding workflows built on Git worktrees and task evidence

https://github.com/alex-reysa/glueRun-go
4•alexreysa•1h ago•0 comments

Show HN: Money Simulator

https://simulator.money/play
3•pattle•1h ago•1 comments

Show HN: Codeflowmap – map a codebase's read/write/auth data flows

https://github.com/man-consult/code-mapper
2•brian-m•1h ago•0 comments

Beyond the $7.4B Headline: DeepSeek's Series A signals Chinese AI alliance shift

https://asiaai.fyi/east-asias-ai-capital-surge-homegrown-models-challenge-west-amid-mineral-tensi...
2•dweisinger•1h ago•0 comments

LiveKit Solves Turn Detection

https://livekit.com/blog/solving-end-of-turn-detection
5•piyussh•1h ago•0 comments

Trump and Netanyahu Have Stepped in It Now

https://www.nytimes.com/2026/06/18/opinion/israel-america-iran-trump-vance.html
7•duxup•1h ago•5 comments

Typewriter Tinnitus/Morse Code Tinnitus

https://hearinglosshelp.com/blog/typewriter-tinnitus-morse-code-tinnitus/
2•austinallegro•1h ago•0 comments

Show HN: FERNme – agent memory that updates with ~zero LLM calls

https://github.com/mirkofr/FERNme
3•mirkofr•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?