frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: PDF to ePub Conversion Tool for Mac

https://github.com/bnlcas/pdf2epub
1•blululu•38s ago•0 comments

Apples to Apples: Getting Type Mappings Right in LLM-Based Code Translation

https://www.codemetal.ai/research/apples-to-apples-getting-type-mappings-right-in-llm-based-code-...
1•matt_d•59s ago•0 comments

Learning What to Investigate Next: Meta-Reasoning for Long-Horizon Agents

https://arxiv.org/abs/2610.02525
1•matt_d•4m ago•0 comments

KBEmacs, MIT's Programmer's Apprentice, Reanimated

https://github.com/jeffshrager/kbemacs
1•abrax3141•6m ago•0 comments

Ask HN: Where has creativity in software gone?

2•piratesAndSons•6m ago•0 comments

Show HN: Built a Rome City Builder

https://tiberava.pages.dev/
1•granga•6m ago•0 comments

DOJ arrests 2, seizes 187 devices in North Korean laptop farm crackdown in Texas

https://www.reuters.com/legal/government/doj-arrests-two-seizes-187-devices-north-korean-laptop-f...
2•usernomdeguerre•10m ago•0 comments

I built a tool to track what AI leaders say and how their views change on video

https://blumify.io/people
1•gcsydney•11m ago•0 comments

High-speed video reveals how honey bee stingers pump venom

https://arstechnica.com/science/2026/10/honey-bee-stingers-are-double-piston-venom-pumps/
3•gumby•15m ago•0 comments

Character.ai files for Chapter 11 bankruptcy. Disney makes a bid

https://www.cnbc.com/2026/10/13/character-ai-chapter-11-disney-bid.html
1•Gaishan•15m ago•1 comments

The Feeling of Power

https://hex.ooo/library/power.html
2•layer8•15m ago•0 comments

1 in 8B: A Life Simulation Game

https://1in8b.life/en/
2•nogajun•17m ago•0 comments

Fine-tuning decision models – Server Logs and IoT Fleets

https://hive.technology/lab-notes/fine-tune-decision-models/
1•tylermhall•18m ago•0 comments

Show HN: Using the long book of the law to improve PA health insurance appeals

https://gemini.google.com/share/ac24e893cfcf
1•Steaglsz•19m ago•0 comments

Do Frameworks Matter Anymore?

https://brookslybrand.com/posts/do-frameworks-matter-anymore/
3•fagnerbrack•19m ago•0 comments

Who Decided AI Gets to Have Feelings?

https://middlelayer.substack.com/p/who-decided-ai-gets-to-have-feelings
3•logan1085•22m ago•1 comments

A recent doubling of global warming rate signals a 1.5°C breach by 2028

https://www.nature.com/articles/s41612-026-01561-y
1•littlexsparkee•22m ago•0 comments

Topgolf saved over $11.3M after leaving VMware

https://arstechnica.com/information-technology/2026/10/topgolf-saved-over-11-3-million-after-leav...
8•canucker2016•26m ago•0 comments

Creating a Garmin "MCP"

https://jackantico.io/garmin-mcp
4•ricotico060•28m ago•0 comments

The Machines That Make the Machines

https://developer.nvidia.com/blog/the-machines-that-make-the-machines/
2•gmays•30m ago•0 comments

U.S. Treasury Announces Record Enforcement Actions Against Bank of America

https://home.treasury.gov/news/press-releases/sb0657
6•hippich•34m ago•1 comments

HN: Encrypted Privacy Aware Emails, ZyMail Hit the Globe

2•ZachQ•37m ago•0 comments

Ask HN: Could you find funding if you didn't want to build a $1-10B business?

4•FrenchDevRemote•38m ago•0 comments

AI, Hyperwar and End Times Fascism

https://efturnip.substack.com/p/ai-hyperwar-and-end-times-fascism
4•dopple•39m ago•0 comments

Show HN: Fresh cleanup and reset a project after coding agent prs

https://github.com/Obedience-Corp/fresh
2•lancekrogers•40m ago•0 comments

Cargo-Litmus

https://github.com/Ellipsis-Labs/cargo-litmus
1•gametorch•42m ago•0 comments

The Law of Leaky Abstractions

https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-abstractions/
2•jr-14•45m ago•0 comments

Linear's CI playbook for agents

https://starsling.dev/blog/linear-ci
2•yonasb•45m ago•0 comments

SlowBooks Pro – From-scratch implementation of QuickBooks Pro 2003 for all OSes

https://www.slowbookspro.com/
1•ethanpil•45m ago•0 comments

What I've been seeing lately (in software)

https://mei.puppycat.house/w/seeing-261010
4•birdculture•48m ago•0 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?