frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: Why are Spec-kit specs like that

1•pretorian_paul•2m ago•0 comments

Philippines now China's 2nd biggest market for solar panels

https://www.philstar.com/business/2026/05/29/2531211/philippines-now-chinas-2nd-biggest-market-so...
1•doener•3m ago•0 comments

Neuroscientists discover cognitive benefits of reading physical comic books

https://www.psypost.org/neuroscientists-discover-previously-unknown-cognitive-benefits-of-reading...
1•emot•4m ago•0 comments

When Tailwinds Vanish

https://foundersfund.com/2023/06/when-tailwinds-vanish/
1•ronfriedhaber•6m ago•0 comments

Returning to Zig

https://gracefulliberty.com/articles/return-to-zig/
1•kristoff_it•6m ago•0 comments

Why Reddit blocked unauthenticated JSON in 2026

https://medium.com/@tonywangcn/why-reddit-blocked-unauthenticated-json-in-2026-and-how-to-still-g...
2•tonywangcn•9m ago•0 comments

You probably don't need private PKI for internal infrastructure

https://www.certkit.io/blog/private-pki-internal-infrastructure
1•plopilop•9m ago•0 comments

Mid-tier US knives vs. cheap imports

https://www.paragon-knives.com/
1•bgzlsxaz•11m ago•0 comments

T1A Brings Its Full Data Stack to Dais 2026: 5 Products AndSubscription Giveaway

https://lakesentry.io/
1•tsyliya•14m ago•0 comments

Show HN: Fastembed-rs – Rust library for generating vector embeddings, reranking

https://github.com/Anush008/fastembed-rs
1•thoughtfullyso•18m ago•0 comments

Browser game about movie guessing

https://frameguesser.vercel.app/
1•mmschreiber•25m ago•0 comments

Nike Launches Sneaker Line with Russian Designer Who Backed Crimea Annexation

https://united24media.com/world/nike-launches-sneaker-line-with-russian-designer-who-backed-crime...
5•fodmap•26m ago•0 comments

Graphtatui: In terminal graph explorer made with ratatui

https://github.com/Sok205/graphtatui
2•sok205•28m ago•0 comments

Yield Curves and Volatility Surfaces Are Built in Modern Finance

https://medium.com/@DolphinDB_Inc/the-hidden-foundation-of-pricing-and-risk-how-ficc-curves-and-s...
2•Polly_Liu•29m ago•0 comments

CPMpy: Constraint Programming and Modeling library in Python, based on NumPy

https://github.com/CPMpy/cpmpy
1•tosh•30m ago•0 comments

Why Digital Twins Need Low-Latency Data Processing

https://medium.com/@DolphinDB_Inc/real-time-decision-making-how-ai-and-low-latency-computing-are-...
2•CrazyTomato•30m ago•0 comments

Githipedia – The Wiki for GitHub

https://github.com/Vendetaaaa/Githipedia
1•Vendeta•31m ago•1 comments

Show HN: I wrote a C++ ray tracer from scratch without AI

https://github.com/themartiano/luz
3•martiano•32m ago•1 comments

Ask HN: How do you handle browser tab overload?

1•formit34•32m ago•2 comments

Coversubstack-Zagreus=Whiterabbit.flexe

https://substack.com/@rootedinthought/note/c-276218913
1•dcmexpunksolar•36m ago•0 comments

LibAgar – Cross-platform GUI written in C

https://libagar.org/
2•0x0203•37m ago•0 comments

What are you looking for when reviewing LLM generated code?

2•gnunicorn•38m ago•1 comments

Ask HN: Developers, are you being forced into prompt-only engineering?

3•zerr•39m ago•0 comments

Fear about young adults' maturity is just a way of trying to control them (2023)

https://www.newstatesman.com/comment/2023/06/fear-about-young-adults-maturity-is-just-a-way-of-tr...
1•frereubu•40m ago•1 comments

Show HN: ELDC – Natural language identification, faster than FastText and CLD2

https://github.com/nitotm/eldc
2•nitotm•42m ago•0 comments

Anthropic flies staff to D.C. to clean up White House fight

https://www.axios.com/2026/06/14/anthropic-white-house-mythos-fable
8•dstala•43m ago•3 comments

Trailblazing investigative reporter Roger Cook dies

https://news.sky.com/story/trailblazing-investigative-reporter-roger-cook-dies-13554262
1•austinallegro•45m ago•0 comments

Searching for Guy Debord (2003)

https://brooklynrail.org/2003/10/express/searching-for-guy-debord/
1•robtherobber•46m ago•0 comments

Ask HN: Did you try Claude's "Fable 5" model before it was pulled?

3•aniokono•46m ago•1 comments

How to Think about Parallel Programming: Not (2010)

https://github.com/matthiasn/talk-transcripts/blob/master/Steele_Guy/ParallelProg.md
1•tosh•46m 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?