frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Skills as a Service via MCP –> Coding Agent Skill Library

https://github.com/mmccalla/coding-agent-skill-library
1•get-analyst-01•2m ago•0 comments

Linux Transparent Proxy Internals

https://allhailthetopology.substack.com/p/linux-transparent-proxy-internals
1•ldelossa•2m ago•1 comments

Google probed by Swiss regulator over Android default search feature

https://www.reuters.com/legal/litigation/google-probed-by-swiss-regulator-over-android-default-se...
1•1vuio0pswjnm7•3m ago•0 comments

Why design matters for a web framework: a 7-year evolution

https://wasp.sh/blog/2026/07/13/why-design-matters-for-a-web-framework
2•matijash•3m ago•0 comments

Show HN: Megaphone – On-device macOS dictation built on Apple's SpeechAnalyzer

https://github.com/Kuberwastaken/megaphone
1•kuberwastaken•4m ago•0 comments

Show HN: Orbital PAI a personal AI assistant

https://github.com/Dream-Mosaic/orbital-pai
1•kalcode•4m ago•0 comments

K (1993)

https://web.archive.org/web/20160330020952/http://archive.vector.org.uk/art10010830
1•tosh•4m ago•0 comments

IBM warns AI boom is squeezing software budgets; shares sink in sector rout

https://www.reuters.com/business/ibm-expects-second-quarter-revenue-below-estimates-2026-07-14/
3•lilerjee•6m ago•0 comments

The Reverse Information Paradox

https://snscratchpad.com/posts/reverse-information-paradox/
2•jack1689•6m ago•1 comments

Many US cities will see record overnight temperatures

https://apnews.com/article/heat-dome-record-temperatures-fb7664f71743f71beca4ce7447562ca2
2•geox•8m ago•1 comments

Show HN: Opening lines of famous literary works

https://www.verbaprima.com/
8•plicerin•8m ago•0 comments

WhatsApp forensics in 2026 and what survives end-to-end encryption

https://andreafortuna.org/2026/07/14/whatsapp-forensics-2026/
2•iamnothere•9m ago•0 comments

Turned the Pitch into a Market

https://twitter.com/MuratLite/status/2077038661724672306
2•Jellyd•9m ago•1 comments

Show HN: Pulsys – Pull-through cache for Hugging Face built with io_uring

https://github.com/pulsys-io/pulsys
2•poshmosh•10m ago•1 comments

Questions for the Center-Left

https://www.natesilver.net/p/12-questions-for-the-center-left
2•7777777phil•10m ago•0 comments

Reconstructing Pelé's lost goal [video]

https://www.youtube.com/watch?v=R-Yqes8AotY
2•simonpure•11m ago•0 comments

8086 CPU, chipset, 640 KB RAM, floppy, keyboard and VGA screen in one CSS file

https://css-dos.ahmedamer.co.uk
2•zdw•11m ago•0 comments

Intention Is All You Need

https://sbloz.com/intention-is-all-you-need/
2•sbloz•12m ago•0 comments

Show HN: Sol – a validated computational artifact for human-agent handoffs

https://github.com/LopezNuance/Sol
2•jamweba•12m ago•0 comments

Panasonic's PV-460 Camcorder Stabilized Shaky Videos

https://spectrum.ieee.org/panasonic-camcorder-ieee-milstone
2•Brajeshwar•12m ago•0 comments

I'm a USB-C Maximalist

https://shkspr.mobi/blog/2026/07/im-a-usb-c-maximalist/
2•speckx•12m ago•0 comments

Competition Is for Losers

https://www.wsj.com/articles/peter-thiel-competition-is-for-losers-1410535536
2•ronfriedhaber•14m ago•0 comments

Trust is not Governance: an essay from inside Google DeepMind

https://www.blackhc.net/essays/trust_is_not_governance/
2•nervai•14m ago•0 comments

Show HN: Open-source]IntentGuard: Catch PRs that pass tests but miss the ticket

https://github.com/derrickchiang1024/intentguard
2•CHIA_CHIANG•15m ago•0 comments

Are we offloading too much of our thinking to AI?

https://www.artfish.ai/p/offloading-thinking-to-ai
5•yenniejun111•15m ago•0 comments

Single-Rollout Asynchronous Optimization for Agentic Reinforcement Learning

https://arxiv.org/abs/2607.07508
2•gmays•16m ago•0 comments

The First Photonic Reasoning Processor

https://www.akhetonics.com/
3•binyu•17m ago•0 comments

Why Did IBM Stock Crash 25% Today?

https://www.disruptionbanking.com/2026/07/14/why-did-ibm-stock-crash-25-today/
4•emsidisii•19m ago•0 comments

After Such Knowledge

https://www.5jt.com/after-such-knowledge
2•tosh•20m ago•0 comments

The Reverse Information Paradox

https://twitter.com/satyanadella/status/2076323181154230284
3•wslh•21m 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?