frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Can These Ads Make You Love A.I.?

https://www.nytimes.com/2026/06/04/style/chatgpt-advertising-campaign-artificial-intelligence.html
1•1vuio0pswjnm7•3m ago•0 comments

Quantum Odyssey

https://store.steampowered.com/app/2802710/Quantum_Odyssey/
1•rglover•3m ago•0 comments

JPMorgan, Citi and Big Banks Plan New Tokenized Deposit System to Answer Crypto

https://www.wsj.com/finance/banking/jpmorgan-citi-and-big-banks-plan-new-tokenized-deposit-system...
1•petethomas•4m ago•0 comments

OpenAI's Codex chained decade-old DoS attacks to crash web servers

https://www.theregister.com/security/2026/06/04/openais-codex-chains-decade-old-dos-techniques-in...
1•sbulaev•4m ago•0 comments

Bitcoin weathering ugliest week in months as narrative fades, liquidity rotates

https://www.cnbc.com/2026/06/04/bitcoin-is-weathering-its-ugliest-week-in-months-as-narrative-fad...
3•1vuio0pswjnm7•5m ago•2 comments

Zephir: PHP Extension Language

https://zephir-lang.com/en
1•nvahalik•6m ago•0 comments

Show HN: Tatami – a macOS workspace manager with BSP tiling

https://github.com/PangMo5/Tatami
1•pangmo5•9m ago•0 comments

Aisop – Define AI agent workflows as Mermaid or JSON flow graphs

https://github.com/AIXP-Labs/AISOP
1•aisop•11m ago•0 comments

A Vector Lakebase is all you need for all AI workloads

https://zilliz.com/blog/from-vector-database-to-vector-lakebase
1•Fendy•18m ago•0 comments

Reverse Engineering Crazy Taxi part 3

https://wretched.computer//post/crazytaxi3
1•chunkles•21m ago•0 comments

US Tech Sector Announces Most Job Cuts in Nearly Two Years

https://www.bloomberg.com/news/articles/2026-06-04/us-tech-sector-announces-most-job-cuts-in-near...
3•1vuio0pswjnm7•22m ago•1 comments

Benchmarking The BORE Scheduler Performance With CachyOS Linux

https://www.phoronix.com/review/cachyos-bore
1•Bender•23m ago•0 comments

Department of Energy Celebrates First Advanced Reactor Criticality

https://www.energy.gov/articles/department-energy-celebrates-first-advanced-reactor-criticality
1•acidburnNSA•30m ago•0 comments

Smart drug strips cancer cells of 'invisibility cloak' can shrink tumours 30%

https://www.theguardian.com/society/2026/jun/01/cancer-smart-drug-cells-invisibility-cloak-shrink...
5•gmays•33m ago•0 comments

BPF support in GCC 16 and beyond

https://lwn.net/Articles/1071973/
1•signa11•37m ago•1 comments

RAG Without Persona Modeling Fails Patient Clinical Relevance

https://www.riddhimohan.com/blog/hppie-rag-without-persona-modeling-fails-patient-clinical-relevance
1•riddhimohan•40m ago•0 comments

What happens if Japan takes in zero immigrants?

https://www.konichivalue.com/p/what-happens-if-japan-takes-in-zero
2•Konichivalue•43m ago•0 comments

Dirk and Linus discuss AI and kernel development

https://lwn.net/Articles/1073761/
1•signa11•45m ago•0 comments

Mathematicians warn of AI threats to profession as industry encroaches

https://arstechnica.com/tech-policy/2026/06/mathematicians-warn-of-ai-threats-to-profession-as-in...
1•SegfaultSeagull•47m ago•1 comments

AI should earn its keep: Introducing the AI Productivity Guarantee

https://cognition.ai/blog/ai-guarantee
2•nadis•48m ago•1 comments

Why I'm Joining the Board of Dreamdata

https://www.kellblog.com/why-im-joining-the-board-of-dreamdata/
1•doppp•54m ago•0 comments

SpaceX IPO available to Fidelity customers with as little as $2k

https://www.fidelity.com/learning-center/trading-investing/spacex-ipo-explained
1•dnw•54m ago•2 comments

The Weather Machine (2008)

https://events.foresight.org/the-weather-machine/
1•zetalyrae•54m ago•0 comments

Agentic systems for what comes next

https://kenn.io/
1•pbd•59m ago•0 comments

Validity of the EJamar Game Controller for Tracking Hand Rehabilitation

https://www.mdpi.com/2673-4117/7/5/197
1•PaulHoule•1h ago•0 comments

Boeing and Air India Escaped Scrutiny After the AI171 Crash

https://caravanmagazine.in/crime/air-india-crash-aaib-boeing-pilot
2•ms7892•1h ago•0 comments

AI assistant shouldn't have your passwords

https://bitwarden.com/blog/how-bitwarden-helps-secure-agentic-ai-access-to-your-credentials/
1•adm4•1h ago•0 comments

Basecamp CLI and Agent Skill: Agent first, agent native

https://basecamp.com/agents
1•doppp•1h ago•0 comments

Proposal would block solar storms with orbital 'airbag'

https://www.science.org/content/article/radical-proposal-would-block-solar-storms-orbital-airbag
1•gmays•1h ago•0 comments

Anthropic calls for global pause in AI development before humans lose control

https://siliconangle.com/2026/06/04/anthropic-calls-global-pause-ai-development-humans-lose-control/
3•patrickdavey•1h ago•3 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?