frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Anthropic Economic Index Cadences

https://www.anthropic.com/research/economic-index-june-2026-report
1•ravirajx7•22s ago•0 comments

OpenAI releases GPT-5.6 to select users vetted by US Government

https://www.ft.com/content/33a306c2-5aaa-45b1-9386-1716fa6a128e
1•WithinReason•46s ago•0 comments

DuckDB SQLite Extension

https://github.com/duckdb/duckdb-sqlite
1•tosh•2m ago•0 comments

Future Transistor Stacking Plans Start to Diverge IBM, Intel, Samsung, and TSMC

https://spectrum.ieee.org/cfet-ibm-plan
1•rbanffy•3m ago•0 comments

Taalas

https://taalas.com/
1•dboon•4m ago•0 comments

Ukraine disguised Nord Stream sabotage mission as a 'porn film'

https://www.telegraph.co.uk/books/non-fiction/nord-stream-conspiracy-bojan-pancevski-review/
1•joe_mamba•4m ago•0 comments

Hate "The Algorithm?" RSS Is One of the Tools You've Been Looking For

https://www.eff.org/deeplinks/2026/06/hate-algorithm-rss-one-tools-youve-been-looking
1•speckx•4m ago•0 comments

Previewing GPT‑5.6 Sol: a next-generation model

https://openai.com/index/previewing-gpt-5-6-sol/
25•minimaxir•5m ago•3 comments

Just Use Postgres for Task Queues

https://www.dbos.dev/blog/making-postgres-queues-scale
1•KraftyOne•6m ago•0 comments

Show HN: To memorize my studies, I made a flashcards app with a dating app UI

https://apps.apple.com/us/app/minder-flashcards-exam-study/id6775268676
1•busymom0•8m ago•0 comments

Can You Terraform Mars?

https://www.nature.com/immersive/d41586-026-01978-8/index.html
1•Schiphol•9m ago•0 comments

AI coding agents could soon cost more than the developers using them

https://www.theregister.com/ai-and-ml/2026/06/24/ai-coding-agents-could-soon-cost-more-than-the-d...
1•beardyw•9m ago•1 comments

AI Learns the "Dark Art" of RFIC Design

https://spectrum.ieee.org/ai-radio-chip-design
1•rbanffy•10m ago•0 comments

The Download: brain-melting heatwaves and unprecedented OpenAI restrictions

https://www.technologyreview.com/2026/06/26/1139780/the-download-heatwaves-brain-health-openai-re...
1•joozio•11m ago•0 comments

Polygraph: A Meta-Harness for Maximum Agent Autonomy

https://nx.dev/blog/announcing-polygraph
18•cheald•11m ago•0 comments

Blink If You're Human

https://dynomight.net/blink/
2•surprisetalk•11m ago•0 comments

The abundant but expensive energy source that's under your feet

https://www.bbc.co.uk/news/articles/cj3gj1n8yz8o
1•Brajeshwar•11m ago•0 comments

SpaceX plans to launch Starlink mobile service in the US

https://arstechnica.com/space/2026/06/spacex-plans-to-launch-starlink-mobile-service-in-the-us/
4•LorenDB•12m ago•0 comments

Show HN: TBD, a Mac-native CLI-forward coding agent multiplexer

https://github.com/cheapsteak/tbd
2•cheapsteak•13m ago•0 comments

Engineering Manager Charged with $1.4M Insider Trading Scheme

https://www.justice.gov/usao-de/pr/engineering-manager-charged-14-million-insider-trading-scheme
2•geox•13m ago•0 comments

Titanic's unknown child is finally identified (2011)

https://www.nbcnews.com/id/wbna42755013
3•EndXA•13m ago•0 comments

White House Will Ad Hoc Decide Who Can Individually Access GPT-5.6

https://thezvi.substack.com/p/white-house-will-ad-hoc-decide-who
3•myrmidon•14m ago•2 comments

Rising RAM prices are taking a toll on PCs, tablets, game consoles, and more

https://liliputing.com/lilbits-rising-ram-prices-are-taking-a-toll-on-pcs-tablets-game-consoles-a...
3•speckx•15m ago•0 comments

Beyond Objects

https://arxiv.org/abs/2606.27258
3•dwenzek•16m ago•1 comments

Show HN: Vynex API – One endpoint for 34 LLM models, paid with USDT

https://llm-api.vynexcloud.com/
3•sandboxclaw•17m ago•0 comments

Mullvad founder Daniel Berntsson donated millions to far right party

https://www.na.se/orebro/miljonregn-till-orebropartiet-fran-techprofil/
5•mrtesthah•18m ago•0 comments

Biotech firm files bankruptcy w $115M debt; Eli Lilly, Astellas bet on it anyway

https://www.masslive.com/news/2026/06/biotech-firm-files-for-bankruptcy-with-115m-debt-eli-lilly-...
3•randycupertino•20m ago•1 comments

Meta Tapped a Pentagon Supplier to Prototype Face Recognition for Its Glasses

https://www.wired.com/story/meta-rank-one-computing-face-recognition-smart-glasses/
4•cdrnsf•20m ago•0 comments

Globalizing the Philadelphian System: Unresolved Issues [pdf]

https://isonomiaquarterly.com/wp-content/uploads/2026/06/iq-4.2-summer-2026-marquis-and-coyne-glo...
2•brandonlc•22m ago•0 comments

Csound Score in Emacs

https://github.com/luqtas/csound-score-emacs
6•luqtas•22m 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?