frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Laid-Off Developers Create AI Model to Replace CEOs and Other Executives

https://uk.pcmag.com/ai/167048/laid-off-developers-create-ai-model-to-replace-ceos-and-other-exec...
2•taubek•2m ago•0 comments

BSX market stats now with Nostr relay and skynet

https://markets.basicswapdex.com
1•dRK-U•2m ago•0 comments

YC founders, I see you

https://skop.finitynetwork.com/p/18916c3c-f6ae-4902-ba1c-7cbceb31ed31
1•tosh•3m ago•0 comments

I Made a Non-Wi-Fi Mitsubishi AC Smart with an ESP32

https://medium.com/@ivangomezarnedo/how-i-added-a-non-wi-fi-mitsubishi-ac-to-home-assistant-22770...
1•ichacas•5m ago•0 comments

0x024 – X402

https://unzip.dev/0x024-x402/
1•vismit2000•8m ago•0 comments

The Human Is Becoming Latency

https://www.gonzocapital.net/the-human-is-becoming-latency/
1•gonzocapital•11m ago•0 comments

Zynthoro

https://zynthoro.ai/
1•Zynthoro•12m ago•0 comments

My Interesting Conversation with Jared Diamond

https://marginalrevolution.com/marginalrevolution/2026/09/my-very-interesting-conversation-with-j...
1•smitty1e•13m ago•0 comments

How to Sequence Fundamental Biophysics

https://blog.escalante.bio/how-to-sequence-fundamental-biophysics/
1•magni121•18m ago•0 comments

Deobfuscation in the Age of Agentic Reverse Engineering [video]

https://www.youtube.com/watch?v=3-gJ6EUFoKM
2•nicolodev•21m ago•0 comments

Monitor AI visibility with n8n in five nodes

https://heeb.ai/blog/monitor-ai-visibility-with-n8n
1•cabrian•21m ago•0 comments

Hepburn Romanization: How to Read Japanese in the Latin Alphabet

https://www.fink-translate.com/blog/hepburn-romanization.html
1•miuraboy•24m ago•0 comments

Finding Slow Code with Wrapture

https://grahamdumpleton.me/posts/2026/09/finding-slow-code-with-wrapture/
2•lumpa•25m ago•0 comments

Instagram CEO warns against turning off algorithm

https://www.abc.net.au/news/2026-09-10/instagram-ceo-adam-mosseri-algorithm-laws/107136992
3•Raouel•26m ago•1 comments

Reducing cost and improving performance with Claude Platform

https://claude.com/blog/reducing-cost-and-improving-performance-with-claude-platform
1•lumpa•28m ago•0 comments

Agentic Automation: Skills and MCP That Evolve with Our Product

https://medusajs.com/blog/agentic-automation-skills-and-mcp-that-evolve-with-our-product
1•shahednasser•29m ago•0 comments

Analysis of 88,975 HN Who Is Hiring Job Posts

https://mljar.com/blog/remote-python-data-job-hacker-news/
1•pplonski86•30m ago•0 comments

Iran likely to reverse-engineer captured US underwater drone

https://www.reuters.com/world/middle-east/iran-likely-reverse-engineer-captured-us-underwater-dro...
2•geox•31m ago•0 comments

Show HN: Stroq – a firewall that knows why your AI agent ran that command

https://github.com/AGGIB/Stroq
1•Agybay•32m ago•0 comments

Show HN: Starkomand – Mission Control for Your Agents. One Canvas

https://starkomand.com/
2•thedevtimeline•32m ago•0 comments

What algorithm did Windows XP use to choose your initial user picture?

https://devblogs.microsoft.com/oldnewthing/20260909-00/?p=112683
2•soheilpro•33m ago•0 comments

An alignment assessment of recent cybersecurity incidents

https://www.anthropic.com/research/alignment-assessment-cybersecurity-incidents
1•lumpa•33m ago•0 comments

Shot Ease – Capture, Annotate and Share Screenshots in One Flow

https://chromewebstore.google.com/detail/shot-ease-screen-capture/cejbjpbkachlmgbphckaikicmnpmfjdn
1•lucakk•34m ago•0 comments

Home Hardware, Part 2: Width Matters

https://blog.jessfraz.com/post/home-hardware-part-two/
1•tosh•35m ago•0 comments

Show HN: Autark – a self bootstrapping build system

https://autark.dev/
1•adamansky•35m ago•0 comments

Crazy Cursor – Magical Particle Mouse Effects for Chrome

https://chromewebstore.google.com/detail/crazy-cursor-magical-part/eejfljdgkaanachdckmpmfgjhncihfmd
1•lucakk•36m ago•0 comments

AI-Translation-Stack

https://github.com/antonihabek/AI-translation-stack
1•antonihabek•36m ago•0 comments

Some remarks on being stuck, with digressions on David Hockney

https://www.henrikkarlsson.xyz/p/creative-block
2•jger15•40m ago•0 comments

Are credit rating agencies getting fed up with hyperscalers?

https://www.ft.com/content/623c286b-c973-4488-83f3-97e9016e85f6
1•Betelbuddy•44m ago•0 comments

"When I Created Raspbian for the Raspberry Pi..."

https://twitter.com/OfMikeAndMen/status/2097894902201790904
3•notRobot•47m 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?