frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Inventor of Little Arrow That Tells You What Side the Fuel Filler Is on Has Died

https://www.jalopnik.com/2061179/inventor-little-arrow-what-side-fuel-filler-is-on-dies/
1•cf100clunk•42s ago•0 comments

Show HN: Year in Review – Breakout with your GitHub contributions

https://github.com/fchimpan/gh-kusa-breaker
1•r4mimu•5m ago•0 comments

Memelang: Token-efficient LLM query language

https://arxiv.org/abs/2512.17967
2•bri-holt•6m ago•0 comments

Show HN: LLM Sorter – Python package to sort lists of items using LLM calls

https://github.com/kalolad1/llm-sorter
1•dkalola•6m ago•0 comments

Show HN: SQL Data Builder – Visual schema and query builder

https://vps-commander.com/products/sql-data-builder/
1•tkrenn06•6m ago•0 comments

There has been NO warming in Antarctica since 1979

https://www.nature.com/articles/s41597-025-05175-6
2•bilsbie•7m ago•0 comments

Readeck: FOSS, self-hosted Instapaper/Pocket alternative

https://readeck.org/en/
1•rpgbr•8m ago•0 comments

How iRobot Lost Its Market Dominance Despite Leading the Robot Vacuum Industry?

https://xthe.com/news/how-irobot-lost-its-market-dominance/
1•xthe•9m ago•1 comments

The Discoveries in 2025

https://www.bbc.com/news/articles/c3v17ylvn57o
1•saikatsg•9m ago•0 comments

JustHTML is an example of vibe engineering in action

https://simonwillison.net/2025/Dec/14/justhtml/
1•nunodonato•11m ago•0 comments

The TTY Layer: The Past, Present, and Future [video]

https://www.youtube.com/watch?v=g4sZUBS57OQ
2•todsacerdoti•12m ago•0 comments

Zen-GC – policy-driven K8s garbage collection for automated cleanup

https://github.com/kube-zen/zen-gc
1•kubezen•15m ago•1 comments

I built a Redis clone in Go purely by vibe, and it's 1.9x faster

https://github.com/wutlu/boltcache
1•spotlayn•15m ago•0 comments

Tuxmate: The Missing Bulk App Installer for Linux

https://github.com/abusoww/tuxmate
1•thunderbong•16m ago•0 comments

Show HN: JJK Domain Expansions

https://jjk.ss.my/
1•natsu90•16m ago•0 comments

Examples of things that people with average computer literacy can "just" do

https://infosec.exchange/@0xabad1dea/114789211460000053
1•DoctorOW•17m ago•0 comments

Domer AI: All-in-One Image and Video Generator Tool

https://domer.io
1•duanhjlt•20m ago•0 comments

Taiwan rattled by 7.0 magnitude quake, no major damage reported

https://www.reuters.com/business/environment/taiwan-rattled-by-70-magnitude-quake-2025-12-27/
1•keepamovin•22m ago•0 comments

Show HN: Goodreads Analyzer – AI roast and book recs from your reading history

https://goodreads-analyst.vercel.app/
1•DoingSomeThings•24m ago•1 comments

General strike cripples Bolivia over so-called "Gasolinazo"

https://en.mercopress.com/2025/12/23/general-strike-cripples-bolivia-over-so-called-gasolinazo
2•clanky•26m ago•2 comments

Eilmeldung, a TUI RSS Reader

https://github.com/christo-auer/eilmeldung
3•christo-auer•36m ago•1 comments

Ask HN: STB libraries make your work easier or you makes no difference?

2•DenisDolya•36m ago•0 comments

Misspelled learning center receives $4M

https://www.foxnews.com/politics/misspelled-learning-center-no-children-inside-emmer-presses-walz...
2•silexia•36m ago•0 comments

So I started cloning the Wii U gamepad [video]

https://www.youtube.com/watch?v=jlbcKuDEBw8
3•ingve•37m ago•0 comments

Show HN: I built a MCP Server for stock analysis (9% alpha vs. VOO)

https://github.com/danielrz/investbuddy-mcp-server
2•investbuddy•37m ago•1 comments

A Century of Noether's Theorem

https://arxiv.org/abs/1902.01989
7•fanf2•39m ago•0 comments

New York to require social media platforms to display mental health warnings

https://www.reuters.com/legal/litigation/new-york-require-social-media-platforms-display-mental-h...
9•pseudolus•39m ago•7 comments

Claude Life Assistant: Personal accountability coach in your filesystem

https://github.com/lout33/claude_life_assistant
1•lout332•44m ago•0 comments

Flickers – Thoughts on consciousness, sentience, perception, and the self in AI

https://samanthawhite274794.substack.com/p/flickers
1•Errorcod3•45m ago•1 comments

The Era of Private Space Stations Launches in 2026

https://singularityhub.com/2025/12/26/the-era-of-private-space-stations-launches-in-2026/
1•Brajeshwar•46m ago•0 comments
Open in hackernews

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

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