frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

My 2025 Bug Bounty Stories

https://joshua.hu/2025-bug-bounty-stories-fail
2•karel-3d•4m ago•1 comments

BullSheet – My Local Quantitative Finance Engine

https://bayramovanar.substack.com/p/why-i-built-bullsheet-part-1
1•Bayramovanar•5m ago•1 comments

A 1990s CMS That Still Ships: Exponential CMS Reaches PHP 8.5

https://vincentopar.com/
1•Vincent_Opar•6m ago•0 comments

DOGE staffers at Social Security agency may have violated Hatch Act, DOJ says

https://abcnews.go.com/US/2-doge-staffers-social-security-agency-violated-hatch/story?id=129393252
1•vaxman•6m ago•0 comments

Are 'toxic' personality traits useful test cases for AI or behavioral models?

https://github.com/FlDanyT/ai-celebrity-models
1•yakalmar2048•9m ago•1 comments

LiveContainer: Run iOS apps without installing them

https://github.com/LiveContainer/LiveContainer
1•handfuloflight•9m ago•0 comments

DragonSweeper: A minesweeper game that requires observation

https://dragonsweeper.org
1•wslh•10m ago•0 comments

WebRTC VPN Tunnel

https://github.com/Manav1011/webrtc-vpn
1•walterbell•12m ago•0 comments

DiffRatio – A One-Step Diffusion Model with SOTA quality and 50% less memory

https://www.arxiv.org/pdf/2502.08005
2•LoMoGan•13m ago•1 comments

The Issue with Special Issues: When Guest Editors Publish in Support of Self

https://arxiv.org/abs/2601.07563
1•wslh•14m ago•0 comments

Amazon Joins the Big-Box League with Its Largest-Ever Store

https://www.wsj.com/business/retail/amazon-orland-park-illinois-opening-13362c97
1•divbzero•19m ago•0 comments

When I Talk to AI About My Feelings, I Don't Want a Therapy Ad

https://www.theverge.com/news/864103/mixed-messaging
1•thor1122•19m ago•0 comments

Green vs. Blue

https://greenvblue.npeercy.com/
1•greenwallnorway•24m ago•0 comments

Sony to Transfer Home Entertainment Operations to Tcl-Led Joint Venture

https://xthe.com/news/sony-tv-business-tcl/
1•Sandhyaseo•25m ago•1 comments

Negotiating Relationships with ChatGPT

https://arxiv.org/abs/2601.13188
2•7777777phil•26m ago•0 comments

Why Submit to AI in Production: Speaking as a Tool for Better Work

https://www.r-bloggers.com/2026/01/why-submit-to-ai-in-production-speaking-as-a-tool-for-better-w...
1•7777777phil•28m ago•0 comments

Crates.io: Development Update

https://blog.rust-lang.org/2026/01/21/crates-io-development-update/
3•quapster•29m ago•0 comments

AT&T Archives: The Unix Operating System (1972) [video]

https://www.youtube.com/watch?v=tc4ROCJYbm0
1•vismit2000•30m ago•0 comments

Agentic RAG for Dummies

https://github.com/GiovanniPasq/agentic-rag-for-dummies
1•thunderbong•31m ago•0 comments

Mnemonic BTC Slots

https://coinables.github.io/mnemonic-slots/#
1•nicholasbraker•32m ago•0 comments

Welcome to Niji V7

https://nijijourney.com/blog/niji-7
1•ankitg12•34m ago•0 comments

Show HN: A Spectrum Album – Structuring AI-Generated Music with Suno

https://karbeyazalbum.replit.app/
2•ersinesen•34m ago•0 comments

Accidentally making $1000 for finding Security Bugs as a Back end Developer

https://not-afraid.medium.com/accidentally-making-1000-for-finding-security-bugs-as-a-backend-dev...
1•birdculture•35m ago•0 comments

Show HN: BSS Blue Hive Guide

https://www.bluehiveguide.com/index.html
1•andy846851797•35m ago•0 comments

Git Show

https://tonystr.net/blog/git
1•TonyStr•37m ago•0 comments

Show HN: LLM fine-tuning without infra or ML expertise

https://www.tinytune.xyz/
2•Jacques2Marais•37m ago•1 comments

Ask HN: How do you manage your morning catch-up routine?

2•Peterz_shu•41m ago•1 comments

Show HN: I built an enterprise weather intelligence platform with Lovable

https://preview--chrono-strata.lovable.app/shop
2•lavandar-admin•43m ago•0 comments

From 75% to 99.6%: The Math of LLM Ensembles

https://www.shibaprasadb.com/2026/01/20/llm-ensemble.html
2•bluebirdfirewin•44m ago•0 comments

Remote Authentication By-Pass in Telnetd (2026)

https://seclists.org/oss-sec/2026/q1/89
3•faebi•45m ago•0 comments
Open in hackernews

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

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