frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Analyzing 14M Chess Games

https://loganharless.com/blog/analyzing-5-billion-chess-games
1•myhandleisbest•35s ago•0 comments

Why is everything so ugly?

https://www.nplusonemag.com/issue-44/the-intellectual-situation/why-is-everything-so-ugly/
1•jxmorris12•3m ago•0 comments

Show HN: Pivot – A Simple Text Game

https://leahey.org/pivot/
1•tldrthelaw•5m ago•0 comments

Show HN: Dttb – Add timestamps to Python tracebacks with one line of code

https://github.com/rocky-d/dttb
1•rocky-d•5m ago•0 comments

Dvorak, Colemak and the German QWERTZ keyboard layouts

https://www.typequicker.com/updates/adding-support-for-qwertz-dvorak-colemak-and-uk-qwerty
1•absoluteunit1•6m ago•0 comments

How to Spot Fake Breakouts in Crypto Trading

https://chartscout.io/how-to-spot-fake-breakouts-crypto
1•chartscout•7m ago•0 comments

Postgres Postmaster does not scale

https://www.recall.ai/blog/postgres-postmaster-does-not-scale
3•davidgu•7m ago•0 comments

Python Is Dead. Long Live Python: With the Creators of Pandas and Parquet

https://hugobowne.substack.com/p/python-is-dead-long-live-python-with
1•tosh•9m ago•0 comments

Show HN: ARIA – P2P distributed inference protocol for 1-bit LLMs on CPU

https://github.com/spmfrance-cloud/aria-protocol
1•anthonymu•9m ago•0 comments

The Sandwich Generation (2013)

https://www.pewresearch.org/social-trends/2013/01/30/the-sandwich-generation/
1•wslh•10m ago•0 comments

Intelligence Ratchet-Theoretical Framework: Self-Stabilizing Superintelligence

https://zenodo.org/records/18482335
1•DarcStar•10m ago•0 comments

Why Bitcoin's is failing its role as a 'safe haven' versus gold

https://www.coindesk.com/markets/2026/01/24/here-s-why-bitcoin-s-is-failing-its-role-as-a-safe-ha...
2•PaulHoule•12m ago•0 comments

Writing a SQL database, take two: Zig and RocksDB

https://notes.eatonphil.com/zigrocks-sql.html
1•ibobev•14m ago•0 comments

Converting data to hexadecimal outputs quickly

https://lemire.me/blog/2026/02/02/converting-data-to-hexadecimal-outputs-quickly/
1•ibobev•14m ago•0 comments

Judgment Isn't Uniquely Human

https://stevenadler.substack.com/p/judgment-isnt-uniquely-human
1•gmays•14m ago•0 comments

Expansion Microscopy Has Transformed How We See the Cellular World

https://www.quantamagazine.org/expansion-microscopy-has-transformed-how-we-see-the-cellular-world...
1•ibobev•16m ago•0 comments

WebCad – free browser-based CAD with AI (export STEP)

https://app.webcad.ca/
1•tonio67•18m ago•1 comments

Show HN: Backseat Writer – AI pair writing

https://backseat-writer.vercel.app/demo
4•Dansvidania•19m ago•1 comments

Show HN: Implementation of Google's PaperBanana (diagram generation from text)

https://github.com/llmsresearch/paperbanana
1•dippatel1994•22m ago•0 comments

Clean Coder: The Dark Path (2017)

https://blog.cleancoder.com/uncle-bob/2017/01/11/TheDarkPath.html
1•andrewjf•22m ago•1 comments

What Do You Think of My Business Idea? (Claude Ad) [video]

https://www.youtube.com/watch?v=De-_wQpKw0s
3•eamag•25m ago•0 comments

Show HN: Grok Imagine – High-fidelity FLUX.1 generation with cinematic video

https://grok-imagine.me/
1•thenextechtrade•25m ago•0 comments

Show HN: Seren – Serverless Postgres, Rust SDK, CLI, & MCP Server for AI Agents

https://github.com/serenorg/seren
2•taariqlewis•26m ago•0 comments

Recursive Knowledge Synthesis for Multi-LLM Systems

https://arxiv.org/abs/2601.08839
1•bob1029•28m ago•0 comments

Microsoft's Pivotal AI Product Is Running into Big Problems

https://www.wsj.com/tech/ai/microsofts-pivotal-ai-product-is-running-into-big-problems-ce235b28
11•fortran77•29m ago•2 comments

Even after cutting EV incentives, Norway only sold 98 diesel cars in January

https://electrek.co/2026/02/03/even-after-cutting-ev-incentives-norway-only-sold-98-diesel-cars-i...
3•ceejayoz•30m ago•1 comments

Show HN: CuaBot – Co-op computer-use for any coding agent

https://github.com/trycua/cua
1•frabonacci•31m ago•0 comments

Forensic Photonics verifies digital evidence with Content Credentials

https://contentauthenticity.org/blog/how-forensic-photonics-verifies-digital-evidence-with-conten...
1•hasheddan•32m ago•0 comments

Show HN: DuoBolt – a review-first duplicate file finder powered by BLAKE3

https://duobolt.app/
2•r9ne•33m ago•1 comments

LibreQoS: Online Bufferbloat Test

https://bufferbloat.libreqos.com/
1•goodburb•33m ago•0 comments
Open in hackernews

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

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