frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ring's 'Search Party' Feature Is Creepy, but You Can Disable It

https://lifehacker.com/tech/how-to-disable-rings-search-party-feature
1•CGMthrowaway•2m ago•0 comments

Why Section 230 Is a Good Law and Why Messing with It Would Be Bad

https://www.techdirt.com/2026/02/09/on-section-230s-30th-birthday-a-look-back-at-why-its-such-a-g...
1•speckx•2m ago•0 comments

GPT-5.3-Codex is rolling out in Cursor, Code, and GitHub

https://twitter.com/OpenAIDevs/status/2020921792941166928
1•tosh•2m ago•0 comments

Upcoming changes to Let's Encrypt and how they affect XMPP server operators

https://blog.prosody.im/2026-letsencrypt-changes/
1•zaik•4m ago•0 comments

Matt Stoller: A web tool that shows how Federal bills change existing U.S. Code

https://github.com/mattstoller/bill-diff-tool
1•coderintherye•5m ago•0 comments

Game Theory Patterns at Work (2016)

https://daeus.blog/2026/01/18/game-theory-patterns-at-work/
1•kurinikku•6m ago•0 comments

Tactis: An affordable, refreshable Braille and voice interface

https://braillepadpro.web.app/
1•sujalbhakare•6m ago•1 comments

How to elevate visual storytelling with Nano Banana Pro

https://www.theaithinker.com/p/how-to-elevate-visual-storytelling
1•faikadam•9m ago•0 comments

Show HN: DayTape – record thoughts, get transcripts, takeaways, and patterns

https://apps.apple.com/us/app/daytape/id6757109811
1•holaduder•10m ago•0 comments

Show HN: Orange Juice Hacker News browser extension

https://oj-hn.com
1•oj-hn-dot-com•10m ago•0 comments

Expectation and Copysets

https://buttondown.com/jaffray/archive/expectation-and-copysets/
1•shachaf•11m ago•0 comments

Show HN: PaperPod – Fast, no-setup sandboxes for AI agents

https://www.paperpod.dev
1•shassingh09•13m ago•1 comments

Likely You Understand Cycle Time Wrong

https://ksaweryskowron.substack.com/p/cycle-time-is-not-a-number
1•ksaweryskowron•14m ago•0 comments

Data Exfil from Agents in Messaging Apps

https://www.promptarmor.com/resources/llm-data-exfiltration-via-url-previews-(with-openclaw-examp...
2•sarelta•15m ago•0 comments

Remote Access Security Act Closes the Cloud Loophole in the US Export

https://exportcompliancemanager.com/articles/will-the-remote-access-security-act-close-the-cloud-...
1•sharpshadow•16m ago•0 comments

Global biodiversity loss, ecosystem collapse and national security [pdf]

https://assets.publishing.service.gov.uk/media/696e0eae719d837d69afc7de/National_security_assessm...
2•andyjohnson0•17m ago•0 comments

Asteroid Bennu Just Changed the Origin Story of Life

https://scitechdaily.com/asteroid-bennu-just-changed-the-origin-story-of-life/
3•geox•18m ago•0 comments

Dutch parties strike minority coalition after D66 election upset

https://www.theguardian.com/world/2026/jan/28/dutch-minority-coalition-after-d66-election-upset
1•PaulHoule•18m ago•0 comments

The dazzling discovery of Tutankhamun's tomb

https://www.bbc.com/culture/article/20260205-the-discovery-of-tutankhamuns-tomb
1•rolph•20m ago•0 comments

The Diary of Mary Cooper [pdf]

https://nationalhumanitiescenter.org/pds/becomingamer/peoples/text5/marycooper.pdf
1•whatisabcdefgh•20m ago•0 comments

Show HN: Distill – AI summaries and Worth It scores for YouTube videos

https://chromewebstore.google.com/detail/distill-youtube-video-sum/plllepklppgopiobiecalocnfcdoekjg
1•flashdoc•21m ago•0 comments

GPT-5.3-Codex is now generally available for GitHub Copilot

https://github.blog/changelog/2026-02-09-gpt-5-3-codex-is-now-generally-available-for-github-copi...
3•vyrotek•21m ago•0 comments

The Consequences of Outsourced Thinking

https://www.neilwithdata.com/outsourced-thinking
2•FeteCommuniste•23m ago•0 comments

In Memoriam – Robert Tinney Illustrations

https://tinney.net/in-memoriam
1•rbanffy•25m ago•0 comments

How do you use AI to program Three.js 3D games?

1•roschdal•26m ago•0 comments

Silicon Photonics in the Data Center: What a CMOS Exec Needs to Know

https://semiengineering.com/silicon-photonics-in-the-data-center-what-a-cmos-exec-needs-to-know/
2•matt_d•26m ago•0 comments

Postgres Backend Platform with full stack, instant cloning, branching and

https://github.com/simplyblock/vela
2•noctarius•27m ago•0 comments

Metaprogramming in Jai [video]

https://www.youtube.com/watch?v=0lGSTBqJ2nM
1•eudamoniac•28m ago•1 comments

What Is Claude? Anthropic Doesn't Know, Either

https://www.newyorker.com/magazine/2026/02/16/what-is-claude-anthropic-doesnt-know-either
2•littlexsparkee•29m ago•1 comments

Digital Sovereignty Initiatives and the U.S. Assault on Research

https://www.hpcwire.com/2026/02/09/digital-sovereignty-initiatives-and-the-u-s-assault-on-research/
2•rbanffy•30m ago•0 comments
Open in hackernews

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

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