frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Your Company Is a Skill Now

https://arlo.substack.com/p/your-company-is-a-skill-now
1•bizgrayson•48s ago•0 comments

CountMediQ – Count Pills from a Photo on iOS

https://apps.apple.com/us/app/countmediq-pill-counting-app/id6463065655
1•sam_son•1m ago•0 comments

Show HN: Einlang, a math-intuitive language with lots of good stuff

https://github.com/einlang/einlang
1•amazing42•1m ago•0 comments

Anthropic's Mythos AI model sparks fears of turbocharged hacking

https://arstechnica.com/ai/2026/04/anthropics-mythos-ai-model-sparks-fears-of-turbocharged-hacking/
1•tartoran•1m ago•0 comments

Peter Thiel Is Building a Parallel Justice System – Powered by AI

https://www.codastory.com/polarization/can-we-trust-an-ai-jury-to-judge-journalism/
1•cdrnsf•2m ago•0 comments

PyTexas 2026 Recap

https://bernat.tech/posts/pytexas-2026-recap/
1•gaborbernat•2m ago•1 comments

Borumi – Create videos, without the hassle

https://borumi.com/
1•mvdwoord•3m ago•1 comments

Housing constraints: why Silicon Valley hasn't done more for most Americans

https://www.slowboring.com/p/why-silicon-valley-hasnt-done-more
1•firasd•4m ago•0 comments

CIAM in the Sky

https://ciamweekly.substack.com/p/ciam-in-the-sky
1•mooreds•5m ago•0 comments

Javier Milei Wants to Rewire the Argentine Mind

https://www.nytimes.com/2026/04/20/world/americas/argentina-president-milei-inflation-economic-re...
1•mitchbob•6m ago•0 comments

Show HN: Gyrus :Open-Source AI Agents for Snowflake, SQL and Postgres

https://github.com/orgs/Gyrus-Dev/repositories
1•MalviyaPriyank•7m ago•0 comments

App host Vercel says it was hacked and customer data stolen

https://techcrunch.com/2026/04/20/app-host-vercel-confirms-security-incident-says-customer-data-w...
1•speckx•9m ago•0 comments

Show HN: Tmux-bar – One-tap switching between windows in current tmux session

https://github.com/daxliar/tmux-bar
1•zonovar•10m ago•0 comments

Show HN: Themeable HN

https://github.com/insin/comments-owl-for-hacker-news/releases/tag/v3.6.1
1•insin•10m ago•0 comments

The Vibe Code 103,000 AI-generated repos, only 1% production ready

https://useastro.com/vibe-code-report/
2•nishikawa7863•11m ago•0 comments

Tell HN: Codex/Claude Code one-off credit purchases are a money sink

1•mavsman•12m ago•0 comments

What I Learned About Billionaires at Jeff Bezos's Private Retreat

https://www.theatlantic.com/magazine/2026/05/billionaire-consequence-free-reality/686588/
3•robtherobber•13m ago•0 comments

Germany's Merz says industrial AI needs less stringent EU regulation

https://www.reuters.com/business/germanys-merz-says-industrial-ai-needs-less-stringent-eu-regulat...
1•ulrischa•14m ago•0 comments

Are Strings Still Our Best Hope for a Theory of Everything?

https://www.quantamagazine.org/are-strings-still-our-best-hope-for-a-theory-of-everything-20260323/
1•digital55•14m ago•0 comments

Claude helped build a wetlab+sequence my DNA at home, with 0 lab experience

https://vibe-genomics.replit.app/
1•banana-bae•15m ago•1 comments

Effectful Recursion Schemes

https://effekt-lang.org/blog/recursion-schemes/
1•marvinborner•16m ago•0 comments

Did Artemis II mission do lunar science or go to the Moon for humanity?

https://jatan.space/moon-monday-issue-271/
1•JPLeRouzic•17m ago•0 comments

Physical Media Is Pretty Cool

https://michaelenger.com/blog/physical-media-cool/
1•speckx•17m ago•0 comments

Show HN: Mailto.Bot – Email API for AI agents with native MCP support

https://mailto.bot
1•jerryluk•17m ago•0 comments

Engineers Kick-Started the Scientific Method

https://spectrum.ieee.org/francis-bacon-scientific-method
1•Brajeshwar•20m ago•0 comments

Can LLMs Flip Coins in Their Heads?

https://pub.sakana.ai/ssot/
1•hardmaru•20m ago•0 comments

Itanium: Intel's Great Successor [video]

https://www.youtube.com/watch?v=-K-IfiDmp_w
1•vt240•22m ago•0 comments

The Abstraction Fallacy: Why AI Can Simulate but Not Instantiate Consciousness

https://deepmind.google/research/publications/231971/
2•LopRabbit•22m ago•0 comments

Students are speeding through their online degrees in weeks, alarming educators

https://www.washingtonpost.com/education/2026/04/19/accelerated-college-degree-hacking/
1•delichon•22m ago•0 comments

Deezer says 44% of songs uploaded to its platform daily are AI-generated

https://techcrunch.com/2026/04/20/deezer-says-44-of-songs-uploaded-to-its-platform-daily-are-ai-g...
3•FiddlerClamp•23m 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?