frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

I serve my website with a swarm of ESP32 microcontrollers on a shelf

https://github.com/Novotarskyi/ivan-bohun
1•disco_jack•3m ago•1 comments

'We are not lonely': Solitude as a new aspirational lifestyle

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

Energy, surplus, economic process (December 2026)

https://www.sciencedirect.com/science/article/pii/S0921800926002302
1•oliculipolicula•10m ago•0 comments

Brazil2026ElectionFilter

https://github.com/xai-org/x-algorithm/blob/main/home-mixer/filters/brazil_2026_election_filter.rs
1•dmarto•16m ago•0 comments

Calculus Made Easy by Silvanus P. Thompson (1910)

https://www.gutenberg.org/ebooks/33283
1•remywang•19m ago•0 comments

AI Driven Testing

https://app.deltix.ai
2•oneounceman•19m ago•0 comments

Cox–Zucker Machine

https://en.wikipedia.org/wiki/Cox%E2%80%93Zucker_machine
3•rolph•21m ago•0 comments

Delete DoorDash

https://deletedoordash.com/
1•megamike•23m ago•1 comments

We need your help to make a faster and more secure Monero node a reality

https://reddit.com/r/Monero/comments/1vo7htb/we_need_your_help_to_make_a_faster_and_more/
1•Cider9986•24m ago•0 comments

Time-of-Check to Time-of-Use

https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use
1•_josh_meyer_•34m ago•0 comments

Anthropic IPO valuation hinges on $190-200B 2028 revenue forecast

https://www.reuters.com/business/anthropic-ipo-valuation-hinges-190-200-billion-2028-revenue-fore...
2•PessimalDecimal•39m ago•0 comments

Show HN: BeCharts – online chart maker (templates, CSV, PNG/SVG/PDF)

https://www.becharts.com/editor
1•neo_tang•39m ago•0 comments

How did a Usenet troll and encryption genius become a criminal mastermind?

https://magazine.atavist.com/2016/he-always-had-a-dark-side
1•firefax•42m ago•0 comments

Show HN: WMTrace – See how LLM text watermarks work (Anthropic just adopted one)

https://github.com/gtesei/llm-watermark
1•isacco•46m ago•0 comments

Someone is publishing a trove of zero-days

https://0day-rubbish.com/
1•dclavijo•48m ago•0 comments

OpenAI ditches Recall-style screenshot surveillance for friendly keylogging

https://www.theregister.com/ai-and-ml/2026/08/14/openai-ditches-recall-style-screenshot-surveilla...
1•sbulaev•54m ago•0 comments

An Infamous Math Problem Closer to Being Solved by Encouraging AI

https://www.wsj.com/tech/ai/ai-math-riemann-hypothesis-anthropic-openai-22f98a87
1•RyanShook•55m ago•0 comments

What I Learned from Playing "Spelling Bee"

https://www.mooreds.com/wordpress/archives/3750
1•mooreds•55m ago•0 comments

Show HN: Nakso – Your Desktop Sketchpad

https://github.com/niklauslee/nakso
1•niklauslee•56m ago•0 comments

A coalescent model reveals deep ancestral structure shared by all modern humans

https://www.nature.com/articles/s41588-025-02117-1
1•lawrenceyan•56m ago•0 comments

Federal agents surveilled Minnesota unions in hunt for Antifa conspiracy case

https://www.startribune.com/federal-agents-led-by-jan-6-participant-surveilled-minnesota-unions-i...
3•hn_acker•1h ago•1 comments

Thank you to the people building these AI tools

1•bgilly•1h ago•0 comments

Yester World Asking for Help from Google De-Monitization and AI [video]

https://www.youtube.com/watch?v=z9QiBMdvgRE
3•InTheArena•1h ago•2 comments

AI productivity gains drive net CO₂ increase in global energy–economy model

https://www.nature.com/articles/s44168-026-00411-0
6•littlexsparkee•1h ago•0 comments

Spaceship Service Outage Update

https://www.spaceship.com/blog/spaceship-service-outage-update/
2•anonu•1h ago•0 comments

Haitians in Springfield are required to report to ICE and wear ankle monitors

https://ohiocapitaljournal.com/2026/08/14/haitians-in-springfield-are-required-to-report-to-ohios...
15•hn_acker•1h ago•7 comments

Youngest Black professor at Cambridge who faced plagiarism claims is found dead

https://apnews.com/article/jason-arday-cambridge-professor-london-dead-reports-9036e2b405f5849415...
14•petethomas•1h ago•1 comments

Magnitude 7.7 Earthquake – 68 km NNW of Ende, Indonesia

https://earthquake.usgs.gov/earthquakes/eventpage/us6000tkt2/executive
80•Bender•1h ago•16 comments

A New Alzheimer's Therapy – Or Is It?

https://www.science.org/content/blog-post/new-alzheimer-s-therapy-or-it
3•maxall4•1h ago•2 comments

Yes, Code Review Is Still Necessary

https://mattmccormick.ca/yes-code-review-is-still-necessary/
4•mattm•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?