frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Gagan Biyani: how I feel about Udemy's sale to Coursera

https://twitter.com/gaganbiyani/status/2044092914582822936
1•nadis•41s ago•0 comments

BankToCSV – Convert bank statement PDFs to clean CSVs

https://banktocsv.vercel.app
1•pixelpushr•1m ago•0 comments

EIU Democracy Index 2025: democracy stabilises after eight years of decline

https://www.economistgroup.com/press-centre/economist-enterprise/eiu-democracy-index-2025-democra...
1•Bondi_Blue•1m ago•0 comments

Researchers Asked LLMs for Strategic Advice. They Got "Trendslop" in Return

https://hbr.org/2026/03/researchers-asked-llms-for-strategic-advice-they-got-trendslop-in-return
2•cdrnsf•3m ago•0 comments

Is GitHub Down Again?

1•codehead•3m ago•0 comments

The Wisdom of the People's Computer Company

https://arbesman.substack.com/p/the-wisdom-of-the-peoples-computer
1•arbesman•6m ago•0 comments

Tesla FSD Europe launch backlash: HW3 owners launch claim site

https://electrek.co/2026/04/14/tesla-fsd-europe-hw3-owners-dutch-claim/
1•breve•7m ago•0 comments

Show HN: ContextPack – CLI that maps any codebase into ranked context

https://github.com/Sashank006/Context-Engine
1•Sashank06•7m ago•0 comments

Zelensky: Ukraine's defense industry can produce FPV drones annually

https://www.ukrinform.net/rubric-defense/4112129-zelensky-ukraines-defense-industry-can-produce-m...
1•doener•10m ago•0 comments

Comparison of Payment Methods

https://eylenburg.github.io/payments.htm
1•Cider9986•10m ago•0 comments

Terminator: Code You See Onscreen [video]

https://www.youtube.com/watch?v=NebvccLHutQ
1•ingve•11m ago•0 comments

Data Discovery – plain-English to discovering and acquiring data using AI

https://datris.ai/videos/data-discovery-ingestion-consumption
1•tfearn•11m ago•1 comments

Patches for Linux 7.1 May Have Negative Impact on 32-Bit Systems

https://www.phoronix.com/news/Linux-7.1-VFS-Kino-32-bit
1•doener•12m ago•0 comments

How to diagnose RAG failures from traces

https://www.siquick.com/blog/diagnose-rag-failures-from-traces
1•siquick•19m ago•0 comments

Did games really get more costly to make?

https://newsletter.hushcrasher.com/p/did-games-really-get-more-costly
1•juliebelz•21m ago•1 comments

Stack Overflow moderator publicly leaks private flagger information

https://meta.stackoverflow.com/questions/438679/why-is-a-moderator-harassing-me-about-an-answer-i...
3•hskdididn•22m ago•1 comments

Are ClickHouse JOINs Slow? A 2026 PR-by-PR Analysis

https://dataanalyticsguide.substack.com/p/clickhouse-join-performance-2026
1•manveerc•24m ago•0 comments

Sandyaa: Recursive-LLM source code auditor that writes exploitable PoCs

https://github.com/securelayer7/sandyaa
1•sandeep_kamble•25m ago•1 comments

How Not to 'Pilet' a Kickstarter

https://c33tech.com/blog/2026/04/how_not_to_pilet_a_kickstarter/
1•mikeflynn•26m ago•0 comments

Michael O. Rabin has passed away

https://en.wikipedia.org/wiki/Michael_O._Rabin
2•statusreport•26m ago•1 comments

Connect iMessage to your Claude Code assistant

https://github.com/anthropics/claude-plugins-official/tree/main/external_plugins/imessage
1•rob•26m ago•0 comments

New (Twin) Dad Advice

https://hec.works/blog/new-twin-dad/
2•dividedcomet•28m ago•2 comments

Show HN: Turned a viral DevOps debugging tweet into a playable incident SIM

https://youbrokeprod.com/login?redirect=%2Fplay%2Frunaway-process-001
1•cdnsteve•30m ago•0 comments

Anthropic Redesigns Claude Code Desktop

https://twitter.com/claudeai/status/2044131493966909862
1•Nevin1901•31m ago•1 comments

Show HN: Start Using Claude Managed Agents Today – Posse

https://github.com/oguzbilgic/posse
1•obilgic•31m ago•0 comments

I Went to China to See Its Progress on A.I. We Can't Beat It

https://www.nytimes.com/2026/04/13/opinion/china-ai-america-chipmakers.html
3•suvan•32m ago•1 comments

Show HN: Would you score a podcast debate?

1•fcpguru•33m ago•0 comments

California moves forward with its 'Stop Nick Shirley Act'

https://www.deseret.com/politics/2026/04/14/stop-nick-shirley-act-california-fraud/
3•donsupreme•35m ago•1 comments

Agent Skill for Jj Jujutsu VCS

https://github.com/danverbraganza/jujutsu-skill
1•nvader•38m ago•0 comments

Android IRCx

https://github.com/AndroidIRCx/AndroidIRCx
1•sans_souse•39m ago•0 comments
Open in hackernews

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

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