frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Work of Hong Wang

https://arxiv.org/abs/2609.40161
1•woopwoop•1m ago•0 comments

Hotpath Record an AI agent once, replay it as a deterministic workflow

https://github.com/mourad-baazi/hotpath
1•vonkey•2m ago•0 comments

Cloudflare AI Search is now generally available

https://blog.cloudflare.com/ai-search-ga/
1•fourfire•2m ago•0 comments

What Is an Enterprise MCP Gateway

https://www.speakeasy.com/resources/enterprise-mcp-gateway
1•ritzaco•3m ago•0 comments

RacketCon Is Saturday

https://con.racket-lang.org/
2•spdegabrielle•3m ago•1 comments

Award-winning microscopy image used AI

https://www.nature.com/articles/d41586-026-03086-z
1•rndsignals•4m ago•0 comments

My Python has more frontend than your JavaScript library

https://marimo.io/blog/introducing-marimo-studio
2•peter-gy•5m ago•0 comments

Supabase production DB down 12 hours, Urgent tickets unanswered

https://github.com/orgs/supabase/discussions/51135
1•jdanfossi•6m ago•0 comments

6 Banks Failed in 2026, the Most This Decade. What That Says About the Economy

https://www.disruptionbanking.com/2026/10/01/six-us-banks-failed-in-2026-the-most-in-a-decade-wha...
1•bmcdresson•6m ago•0 comments

What is the PMAD SIM and why is everyone talking about it?

https://pmad-sim.org/
1•luggermcugger•6m ago•0 comments

Nicolas Cage Says the MCU 'Is Becoming a Well-Funded and Glorified WWE'

https://variety.com/2026/film/news/nicolas-cage-marvel-cinematic-universe-wwe-1236893541/
2•Michelangelo11•9m ago•0 comments

Context Language Models

https://arxiv.org/abs/2609.37725
1•emersonmacro•10m ago•0 comments

Show HN: Rename screenshots into searchable filenames with AI

https://www.nevorago.com
1•glcyming•11m ago•0 comments

Pete Hegseth appoints Elon Musk to US taskforce on future of warfare

https://www.theguardian.com/technology/2026/sep/30/pete-hegseth-elon-musk-taskforce-warfare
4•downbad_•12m ago•1 comments

No more surprise bills from AWS in the new signup experience

https://builder.aws.com/content/3K40wU1kLaw4K1mIPkvVxKkx7mV/learn-aws-without-a-surprise-bill-sta...
1•robdahaldev•12m ago•1 comments

Show HN: Sharedclipboard.com – Peer-to-peer encrypted clipboard in the browser

https://sharedclipboard.com/
1•oleksii88•12m ago•0 comments

Show HN: Textsnap – CPU OCR in <1 seconds/page

https://github.com/kouhxp/textsnap
1•mrkn1•15m ago•0 comments

Esp-Vim: Real Vim 9.2 running directly on the ESP32-P4 and ESP32-S3

https://github.com/omwah/esp-vim
1•zdw•15m ago•0 comments

Show HN: Chess in SQL

https://swingbit.github.io/quack-mate/
1•swingbit•15m ago•0 comments

Agent Development Environment (ADE)and orchestrator shipping with coding agents

https://cezar.run/
4•pkarwatka•16m ago•0 comments

Website Sucker – download a whole site as an offline ZIP, resumable

https://websitesucker.com/
1•carloslerma•18m ago•0 comments

John Carmack on Aliasing (2016)

https://www.facebook.com/100006735798590/posts/in-almost-all-of-the-public-vr-critiques-i-have-ma...
1•tosh•18m ago•0 comments

Claude for Government is now generally available

https://claude.com/blog/claude-for-government-is-now-generally-available
1•gmays•19m ago•0 comments

Show HN: An 8k-word essay whose word lengths draw a famous face

https://words2pixel.topmate.io
1•kool_dinesh•19m ago•0 comments

Cops Can Bypass iPhone's Automatic Reboot to Get into Locked Phones

https://www.404media.co/cops-can-bypass-iphone-automatic-inactivity-reboot-graykey/
4•speckx•23m ago•0 comments

Devrim GÜNDÜZ: Rust extensions started landing PostgreSQL RPM repository

https://people.planetpostgresql.org/devrim/
1•hnp9j9qtda•23m ago•0 comments

A Hacking Competition Shows the Power of China's 'Open Weight' A.I

https://www.nytimes.com/2026/10/01/science/hackerone-tenzai-china-open-weights.html
3•0in•25m ago•0 comments

Free list of 180K+ disposable email domains, growing daily

https://github.com/las-nish/disposable-emails
2•lasgawe•26m ago•2 comments

Two Kinds of SQL Query Builders

https://mechanicalrabbit.github.io/FunSQL.jl/stable/two-kinds-of-sql-query-builders/#Two-Kinds-of...
1•birdculture•26m ago•0 comments

Ask HN: Which "AI" provider would you choose?

1•EbNar•26m 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?