frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: BannedWhere – scan a US food barcode, see what Europe (EU) bans in it

https://bannedwhere.com
1•spacecommander•4m ago•0 comments

Warren Buffett Dies at 96

https://www.foxbusiness.com/business-leaders/warren-buffett-billionaire-investor-who-built-berksh...
1•emrah•5m ago•0 comments

Linear Regression and Gradient Descent from Scratch (PyTorch, Video Lecture)

https://www.youtube.com/watch?v=D8Exwj1_yEQ
1•lochanjangid•8m ago•0 comments

Show HN: Red Yarn Reader, a static, self-hostable screenplay viewer for the web

https://redyarnreader.kyefox.com
1•Kye•8m ago•0 comments

DOJ Sent Subpoenas to Nvidia for Help in Chip Smuggling Probes

https://news.bloomberglaw.com/tech-and-telecom-law/doj-sent-subpoenas-to-nvidia-for-help-in-chip-...
1•mfiguiere•9m ago•0 comments

Salazar vs. Paramount Global

https://www.oyez.org/cases/2026/25-459
1•stygiansonic•9m ago•0 comments

Hledger v2.0

https://github.com/hledgerorg/hledger/releases/tag/2.0
2•olexsmir•11m ago•0 comments

AI-Written SQL (and Stored Procedures) from "Works" to "Trusted"

https://github.com/SPLWare/SQLazy/blob/master/AI-Written%20SQL%20%20From%20%E2%80%9CWorks%E2%80%9...
1•Judyrabbit•14m ago•0 comments

Show HN: Spend Warren Buffett Money – In Tribute to the Oracle of Omaha

https://spendwarrenbuffettmoney.com/
1•humphrey_liu•14m ago•0 comments

Repository Is Maintained by the New Official Heretic Community

https://github.com/Vinay-Umrethe/heretic
2•jacquesm•17m ago•0 comments

What I Learned Building a Static Site Generator in Rust

https://reverentgeek.com/what-i-learned-building-a-static-site-generator-in-rust/
1•reverentgeek•20m ago•0 comments

Explain How Agent Harnesses Work with Graph

https://gangtao.github.io/how_harness_works/
1•gangtao•21m ago•0 comments

November Digest of HCS

https://higher-categorical-semantics.pages.dev/announcements/digest-2026-11
1•measurablefunc•25m ago•0 comments

Easl – Enhanced Abstraction Shader Language

https://easl-lang.org/
2•camilleroux•29m ago•0 comments

State of email and domain security in the topk sites (December 2026)

https://httpfy.io/research/email-security-2026-12
1•samso26•30m ago•0 comments

I ported my Vulkan game engine to macOS in one day

https://gamesbymason.com/blog/2026/porting-nyc-to-macos/
1•birdculture•35m ago•0 comments

Barbie smartwatch with calorie counter sparks eating disorder fears

https://www.theguardian.com/technology/2026/dec/02/barbie-smartwatch-eating-disorder-fears-calori...
1•thunderbong•36m ago•0 comments

When your kids cut snowflakes this December, teach them prime factorization

https://moultano.wordpress.com/2026/05/01/cutting-snowflakes-and-prime-factorization/
1•moultano•37m ago•0 comments

The Next Way to Talk to A.I. Might Be Not Talking at All

https://www.nytimes.com/2026/12/01/technology/tacit-ai-dictation.html
1•nreece•41m ago•0 comments

What do your MCP tools cost your agent before it starts?

https://github.com/Egoushka/switchboard
1•nimus•48m ago•0 comments

Ask HN: What do you think of this YouTube AI slop ad I was just served? [video]

https://www.youtube.com/watch?v=ASPimIeI-_8
2•godwinson__4-8•49m ago•3 comments

Anthropic: A Commodity Priced as a Monopoly

https://seekingalpha.com/article/4972648-anthropic-a-commodity-priced-as-a-monopoly
2•andsoitis•49m ago•2 comments

Fluxer is a free, open-source Discord alternative

https://fluxer.com
1•pentagrama•50m ago•0 comments

AWS Continuum for software supply chain (Preview)

https://aws.amazon.com/about-aws/whats-new/2026/12/continuum-software-supply-chain-preview/
1•yackrru•50m ago•0 comments

Code-driven AI illustrations are more useful than images from image models

https://simonwillison.net/2026/Nov/28/code-driven-ai-illustrations/
5•gmays•52m ago•1 comments

Perplexity fends off some claims in Amazon lawsuit over AI shopping agents

https://www.reuters.com/legal/government/perplexity-fends-off-some-claims-amazon-lawsuit-over-ai-...
1•ComputedCamp995•56m ago•0 comments

Ask HN: Why is coding "solved", but AI hasn't conquered the software world yet?

1•Marczelloni•58m ago•6 comments

No sign of autonomous AI in spending data

https://ramp.com/data/no-sign-of-autonomous-ai-in-spending-data
2•_delirium•1h ago•0 comments

Democratizing Megakernels for Any Workload with VibeSys

https://syfi.cs.washington.edu/blog/2026-11-30-megakernels/
1•matt_d•1h ago•0 comments

Nvidia Launches Kyber Galaxy Space Computing Platform

https://nvidianews.nvidia.com/news/nvidia-launches-vera-rubin-nvl72-space-computing-platform-in-p...
1•ByteAtATime•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?