frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: MidaGX – Generate A/B Test Variants from a Prompt Using AI

https://www.mida.so/generative-experimentation
1•donaldng•1m ago•0 comments

Desperately Seeking Squircles

https://www.figma.com/blog/desperately-seeking-squircles/
1•fanf2•1m ago•1 comments

European Council president warns US not to interfere in Europe's affairs

https://www.theguardian.com/world/2025/dec/08/europe-leaders-no-longer-deny-relationship-with-us-...
1•mohi-kalantari•3m ago•0 comments

A Government Shutdown and a 1913 Data Assumption Caused an Outage in 2025

https://heyoncall.com/blog/total-real-returns-outage-government-shutdown
1•compumike•4m ago•0 comments

Saturday Morning Network Outage

https://devnonsense.com/posts/saturday-morning-network-outage/
1•speckx•4m ago•0 comments

A New Approach to GPU Sharing: Deterministic, SLA-Based GPU Kernel Scheduling

1•medicis123•5m ago•0 comments

Health insur. premiums rose nearly 3x rate of worker earnings over past 25 years

https://theconversation.com/health-insurance-premiums-rose-nearly-3x-the-rate-of-worker-earnings-...
1•bikenaga•5m ago•0 comments

Gilt Futurism

https://planetocracy.org/p/gilt-futurism
1•rbanffy•8m ago•0 comments

Public libraries in TX, LA, and MS no longer protected by the First Amendment

https://lithub.com/public-libraries-in-tx-la-and-ms-are-no-longer-protected-by-the-first-amendment/
1•stopbulying•9m ago•0 comments

Binary patching live audio software to fix a show-stopping bug

https://jonathankeller.net/ctf/playback/
1•NobodyNada•10m ago•0 comments

Microsoft will no longer use engineers in China for Department of Defense work

https://techcrunch.com/2025/07/19/microsoft-says-it-will-no-longer-use-engineers-in-china-for-dep...
3•WaitWaitWha•11m ago•0 comments

Elon Musk appeared on EU Parliament employee list with internal email address

https://www.euractiv.com/news/mail-for-musk-elon-shows-up-on-parliament-employee-list/
4•giuliomagnifico•13m ago•1 comments

Missionary Accountants

https://postround.substack.com/p/missionary-accountants
1•akharris•14m ago•0 comments

The Area 51 of New England

https://www.nytimes.com/2025/12/06/movies/strange-arrivals-betty-barney-hill.html
4•bookofjoe•14m ago•2 comments

An MCP that lets you play DOOM in ChatGPT

https://old.reddit.com/r/mcp/comments/1pexcic/an_mcp_that_lets_you_play_doom_in_chatgpt/
1•the_arun•15m ago•0 comments

Oseberg longship, built by Vikings, completes its final voyage

https://www.npr.org/2025/10/02/nx-s1-5550149/viking-age-oseberg-longship-oslo
1•throwoutway•16m ago•0 comments

Add, delete and move data points to create a particular regression line

https://line-fitter--johnhorton.replit.app/
1•john_horton•16m ago•0 comments

The Zero Point of Narcissism: A Developmental Pathway Without Mirroring

https://zenodo.org/records/17857386
1•MyResearch•17m ago•0 comments

U.S. to allow export of H200 chips to China

https://www.semafor.com/article/12/08/2025/commerce-to-open-up-exports-of-nvidia-h200-chips-to-china
2•nextworddev•18m ago•0 comments

Ask HN: How valuable is a domain like messenger.new?

1•darkhorse13•20m ago•1 comments

Why UBI is a trap and Universal Basic Equity is the fix

https://medium.com/@augustinsayer/why-ai-may-be-marxs-inadvertent-vindication-85689d8ad733
2•gussayer•23m ago•0 comments

Thoughts of a Neopagan / the Reconstruction of Neolithic Religion

1•5wizard5•24m ago•0 comments

Pyversity with Thomas van Dongen (Springer Nature)

1•CShorten•24m ago•0 comments

Affordances: The Missing Layer in Front End Architecture

https://fractaledmind.com/2025/12/01/ui-affordances/
1•Kerrick•26m ago•0 comments

(mis)Translating the Buddha (2020)

http://neuroticgradientdescent.blogspot.com/2020/01/mistranslating-buddha.html
1•eatitraw•27m ago•1 comments

The History of Xerox – A Monochromatic Star

https://www.abortretry.fail/p/the-history-of-xerox
1•rbanffy•29m ago•0 comments

Deprecations via warnings don't work for Python libraries

https://sethmlarson.dev/deprecations-via-warnings-dont-work-for-python-libraries
2•scolby33•29m ago•1 comments

Even rentals in San Francisco have bidding wars

https://sfstandard.com/2025/12/08/sf-apartment-rentals-bidding-wars/
2•randycupertino•30m ago•1 comments

WSJ article on Tennessee munitions plant explosion exposes an industry

https://www.wsws.org/en/articles/2025/11/19/qvwk-n19.html
3•PaulHoule•30m ago•1 comments

A history of AI in two line paper summaries (part one)

https://xquant.substack.com/p/what-if-we-simply-a-history-of-ai
1•nb_quant•31m ago•0 comments
Open in hackernews

Ask HN: How can I load test PostgreSQL but avoid changing actual data?

1•LawZiL•6mo 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•6mo 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•6mo 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•6mo 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•6mo ago
Load test against a clone instead of a DB whose contents you care about?