frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: PartSense – Smart inventory and BOM management for hardware labs

https://partsense.app
1•loicd31•2m ago•0 comments

Show HN: AI Meter – Local token usage with energy and water estimates

https://ai-meter.app
1•zeko1195•2m ago•0 comments

Names with the largest count in their first appearance on the national list

https://nobodynamed.com/viz/debut-of-the-year
1•michaelcolenso•2m ago•1 comments

Can AI Run a Food Truck Business?

https://foodtruckbench.com
1•handfuloflight•3m ago•0 comments

Kimi K3's Design Secret May Be in Its Thinking Traces

https://notes.designarena.ai/kimi-k3s-design-secret-may-be-in-its-thinking-traces/
2•giuliomagnifico•4m ago•0 comments

Classical Acceptance Is Not Hybrid Authentication: Measuring X.509 Verifier

https://arxiv.org/abs/2607.20800
1•sbulaev•6m ago•0 comments

Black Perl

https://en.wikipedia.org/wiki/Black_Perl
1•thunderbong•7m ago•0 comments

Japanese Firm to Train Robot with AI to Reproduce Runners' Movements

https://japannews.yomiuri.co.jp/science-nature/technology/20260403-320199/
1•mushstory•9m ago•0 comments

Setting up a remote environment for agentic coding on a VPS

https://ma.ttias.be/remote-coding-environment-vps/
1•nreece•11m ago•0 comments

Cut Token Costs in Half

https://tokenkits.vercel.app
1•mattmerrick•20m ago•0 comments

IT Atlas

https://www.levels.fyi/atlas
2•trekhleb•25m ago•0 comments

Show HN: RMCP.dev – An MCP server that finds other MCP servers

https://rmcp.dev/
1•garazy•26m ago•0 comments

Fountible: Agentic Figma

https://fountible.com/
1•handfuloflight•27m ago•0 comments

Reddit Calls Anthropic a 'Freeriding Pirate'

https://runtimewire.com/article/reddit-calls-anthropic-a-freeriding-pirate-and-cites-ruling-behin...
2•ryanmerket•28m ago•0 comments

Starship's Thirteenth Test Flight

https://www.spacex.com/launches/starship-flight-13v
1•JumpCrisscross•29m ago•0 comments

Hannah Fry Wins the Leelavati Prize in 2026 for Mathematics Outreach

https://www.maths.cam.ac.uk/features/professor-hannah-fry-wins-leelavati-prize
2•agnishom•29m ago•0 comments

US moves to regulate hidden car handles

https://www.semafor.com/article/07/23/2026/us-moves-to-regulate-hidden-car-handles
2•jmsflknr•33m ago•0 comments

Show HN: Maps of >100 theories for how society works inc. Graham / Thiel / Smith

https://society.clearerthinking.org/
1•bestOfSocrates•34m ago•0 comments

IBM Acquiring HRL Laboratories

https://newsroom.ibm.com/2026-07-23-ibm-to-acquire-hrl-laboratories-to-power-the-future-of-quantum
1•osnium123•35m ago•2 comments

Midjourney Releasing v8.2

1•endmund•43m ago•1 comments

Pliny the Liberator claims universal jailbreak of models

https://twitter.com/elder_plinius/status/2080767011614015543
2•dnw•46m ago•0 comments

Trump's Plan for Science: More Money for A.I., Less for Universities

https://www.nytimes.com/2026/07/22/us/politics/trump-research-funding-artificial-intelligence.html
4•cratermoon•52m ago•1 comments

22 Years of Rails

https://twitter.com/rails/status/2080580838530355432
1•vinnyglennon•1h ago•0 comments

Show HN: Codebeat – turn any function into a song (no signup)

https://www.codedswitch.com/codebeat
1•Asume21•1h ago•0 comments

A Great Deal of Information About Hacker News

https://vale.rocks/posts/hacker-news
2•OuterVale•1h ago•0 comments

Show HN: Jolta – Automatic per-project JDK switching (like Volta, for Java)

https://oneappplatform.github.io/jolta/
1•pdxdave•1h ago•0 comments

Ukraine' Simple But Effective Protection Against Russian Starlink Jamming (2023)

https://www.technology.org/2023/08/01/did-russia-learn-to-jam-starlink-satellites-ukraine-is-alre...
5•pinkmuffinere•1h ago•0 comments

Exercise Erased Half the Molecular Signature of Muscle Aging

https://www.gethealthspan.com/research/article/exercise-molecular-signature-muscle-aging?zp_type=...
2•bilsbie•1h ago•1 comments

Evaluation of a pentapropellant upper stage (1970) [pdf]

https://ntrs.nasa.gov/api/citations/19700022572/downloads/19700022572.pdf
2•Eridanus2•1h ago•0 comments

Show HN: Modelfac

1•IceRay•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?