frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Can AI agents do senior expert work? What the evidence says

https://estimandlab.com/insights/can-ai-agents-do-senior-expert-work/
1•spozveh•3m ago•0 comments

GeForce vs. Workstation GPUs: Nvidia's Half Rate, Priced

https://www.airealist.ai/p/nvidia-geforce-half-rate
1•julsimon•3m ago•0 comments

DockFrame is now live on CrowdSupply

https://www.crowdsupply.com/hw-media-lab/dockframe
1•hwlab•5m ago•0 comments

I tried to break a quantum computer (sort of)

https://medium.com/@jkim_tran/i-tried-to-break-a-quantum-computer-sort-of-d053602ae3fb
1•jennifer-trin•9m ago•0 comments

Show HN: A Cursor-like workspace for your LaTeX papers

https://github.com/cu1ch3n/papilot
1•cuichen•11m ago•0 comments

Beauty Is Everywhere. But What Is It For?

https://thereader.mitpress.mit.edu/beauty-is-everywhere-but-what-is-it-for/
1•prismatic•15m ago•1 comments

Tech Giants Ramp Up Resistance to ICE in Bid to Avoid Democratic Scrutiny

https://www.wsj.com/politics/policy/google-meta-ice-midterms-e6f2a6c4
1•JumpCrisscross•22m ago•1 comments

Guake Terminal

https://guake.github.io/
1•ankitg12•23m ago•0 comments

Show HN: Fabivo – Furniture design from a photo to a numbered cut list

https://www.fabivo.app/en
1•superpapotas•29m ago•0 comments

ArXiv is moving its database to cloud storage

https://blog.arxiv.org/2026/10/21/scheduled-database-maintenance/
1•anticensor•29m ago•0 comments

Ask HN: Why big LLMs use "it's not A, it is B" pattern? Shared dataset supplier?

2•jumasheff•30m ago•2 comments

Alphabet's Revenue Miss Reignites Fears over AI Spending Binge

https://www.bloomberg.com/news/articles/2026-10-28/alphabet-reports-disappointing-revenue-income-...
1•angry_impala•32m ago•0 comments

Free Expense Splitting App

https://sharebucks.app
1•ish-xyz•32m ago•1 comments

Single Mutable Ownership

https://cirw.in/blog/single-mutable-ownership
1•ankitg12•37m ago•1 comments

Build a better AI product with explicit classification

https://steadily.ca/newsletter/edition/better-ai-products-with-explicit-classification
1•dhruvio•39m ago•0 comments

The diameter and distribution of Sidon sets

https://terrytao.wordpress.com/2026/10/28/on-the-diameter-and-distribution-of-sidon-sets/
1•smilelamp•40m ago•0 comments

Edgar Allan Poe, Quintessential American Writer

https://slate.com/culture/2026/10/edgar-allan-poe-poems-stories-most-influential-american-writer-...
1•samclemens•41m ago•0 comments

Show HN: Supply chain security for open source maintainers

https://safedep.io/oss/
1•tech_solver•42m ago•0 comments

A small behavior model that beats frontier LLMs at predicting human reactions

https://cairolabs.app/rosetta
1•ferflowerssss•42m ago•0 comments

I built ASCII Studio-an app that turns photos into ASCII art

https://apps.apple.com/in/app/ascii-studio-photo-editor/id6821664919
1•hrmorhover•45m ago•0 comments

Oura sues rival Ultrahuman again, threatening its US smart ring comeback

https://techcrunch.com/2026/10/22/oura-sues-rival-ultrahuman-again-threatening-its-u-s-smart-ring...
1•gmays•49m ago•0 comments

Commits, pushes, reach new highs in 2026 as developers build with agents

https://github.blog/news-insights/octoverse/octoverse-commits-pushes-reach-new-highs-in-2026-as-d...
2•nreece•50m ago•0 comments

DigGitHub – add "dig" to any GitHub URL to see if the project is alive

https://diggithub.com/
1•ycgetax•53m ago•0 comments

Meta has a new AI pet app called Waddle World

https://techcrunch.com/2026/10/28/meta-has-a-new-ai-pet-app-called-waddle-world/
2•saikatsg•56m ago•1 comments

AI Chatbots Are Building an 'Algorithmic Self-Portrait' of You

https://gizmodo.com/ai-chatbots-are-building-an-algorithmic-self-portrait-of-you-2000775529
2•saikatsg•58m ago•0 comments

Stripe Introduces B2B CLI Payments

https://docs.stripe.com/cli/pay
2•meander_water•1h ago•1 comments

Free course: Build and deploy an AI web app with Django and DigitalOcean

https://www.aicertificationcouncil.com/
1•quietkernel•1h ago•0 comments

How to tell the birds from the flowers (1907)

https://archive.org/details/howtotellbirds00wood
2•the-mitr•1h ago•0 comments

Peltola campaign and national Dems recruited spoiler candidates according to NYT

https://alaskapublic.org/news/politics/elections/2026-10-28/peltola-campaign-and-national-dems-re...
2•lakeviewterrace•1h ago•0 comments

Nono: Agent Runtime Security

https://nono.sh
1•handfuloflight•1h ago•1 comments
Open in hackernews

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

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