frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Is Wikipedia the 'Last Best Place on the Internet'?

https://www.nytimes.com/2026/10/21/books/review/the-last-best-place-on-the-internet-richard-cooke...
1•cainxinth•19s ago•0 comments

Auracast – Your Own Radio Station Wherever You Are

https://www.bluetooth.com/auracast/
1•bookofjoe•44s ago•0 comments

Show HN: A shared 3D Zoo in the browser where everyone sees the same animals

https://zooki.world
2•kagen•2m ago•0 comments

PHP 7.4 backport packages for older Ubuntu / Debian distros

https://github.com/Niek/php7
1•NiekvdMaas•5m ago•0 comments

Tesla posts surprise positive cash flow on lower-than-expected AI spending

https://www.reuters.com/business/media-telecom/tesla-revenue-beats-estimates-deliveries-rebound-e...
3•baal80spam•8m ago•0 comments

Show HN: I built an app to stop doomscrolling while waiting for Codex to finish

https://www.lightscroll.app/
1•juanferreras•8m ago•0 comments

Brain v2 – A minimal and extensible agent server for building agent applications

https://github.com/aexhq/brain
1•weilueluo•11m ago•0 comments

AI Is Anti-Punk

https://www.techdirt.com/2026/10/21/ai-is-anti-punk/
2•cdrnsf•12m ago•0 comments

How Witten Used Quantum Field Theory to Understand Knots

https://curtjaimungal.substack.com/p/how-witten-used-quantum-field-theory-105
1•paulpauper•13m ago•0 comments

France's OVHcloud plans frontier AI models to become Europe's second LLM player

https://www.reuters.com/world/asia-pacific/frances-ovhcloud-plans-frontier-ai-models-become-europ...
3•maelito•13m ago•0 comments

Faster, smaller Bloom filters in Parquet

https://pydantic.dev/articles/bloom-filter-folding-parquet-logfire
1•gazpacho•14m ago•0 comments

AMA – "Final Fantasy: The Spirits Within", milestone in CGI, is 25 years old

2•kaveh808•14m ago•0 comments

Show HN: Overdesigned Simple Solitaire

https://defaultsolitaire.app/
2•fsloth•15m ago•0 comments

Krillion Solver TUI

https://github.com/owenHochwald/krillion-solver
1•owenHochwald•16m ago•0 comments

Show HN: MCP for Dubbing Video and Audio Files from ChatGPT, by Kapwing

https://chatgpt.com/plugins/kapwing
1•jenthoven•19m ago•0 comments

I built a neural network using DOOM games

https://github.com/mottopanikeiku/doomformer
1•falperc•21m ago•0 comments

Clinical and genetic correlates of a circadian subtype of depression in study

https://www.cambridge.org/core/journals/the-british-journal-of-psychiatry/article/clinical-and-ge...
1•richardboegli•22m ago•0 comments

Skills Are Software

https://jm.sv/skills-are-software
1•handfuloflight•22m ago•0 comments

"Certificate Expired " Now What?

https://www.buoyant.io/blog/certificate-expired-now-what
1•PagCatOli•24m ago•0 comments

AI and the Enclosure of the Scientific Commons

https://arxiv.org/abs/2610.27251
2•Glyptodon•25m ago•0 comments

Humancrafted

https://humancrafted.discourse.group/
2•bitbasher•28m ago•0 comments

These Snakes Can Cartwheel Away from Danger

https://www.smithsonianmag.com/smart-news/these-snakes-can-cartwheel-away-from-danger-scientists-...
2•thunderbong•28m ago•0 comments

A Critical Look at Lean4

https://www.lesswrong.com/posts/zHhGa3iQBQcdSifFL/a-critical-look-at-lean4-1
1•paulpauper•29m ago•0 comments

My Working Model of Consciousness

https://federicorcassarino.substack.com/p/my-working-model-of-consciousness
1•paulpauper•29m ago•0 comments

Gave Hermes ears and a mouth, check it out

https://memoe.app/
1•yisraelgottz•29m ago•1 comments

The Strategic Importance of Cislunar Space [video]

https://www.youtube.com/watch?v=kdpOdSMzXTA
1•ciefa•35m ago•0 comments

Programmers vs. Dream's Fake Manhunts – TheStandup

https://www.youtube.com/watch?v=y2C0Zpnl6p0
1•QuantumNomad_•37m ago•0 comments

Ora is joining ClickUp. There's a script to export attachments before 2026-10-31

https://github.com/bleuetdesign/ora-attachments-exporter
1•pdcote•39m ago•1 comments

Proof – Making AI Easier

https://proof.diy
1•r_gaur•39m ago•1 comments

Israeli military conducts operation near Iran's border

https://www.axios.com/2026/10/21/israel-military-training-sortie-iran-border
5•ciconia•39m 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?