frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Streamfold Is Joining Cursor

https://rotel.dev/blog/streamfold-joining-cursor/
1•bryanmikaelian•29s ago•0 comments

Performance Implications of AArch64 Atomics

https://www.researchgate.net/publication/370682772_A_Study_on_the_Performance_Implications_of_AAr...
1•fanf2•51s ago•0 comments

ASIC Chip Routing GIF

https://old.reddit.com/r/chipdesign/comments/1s21n30/global_routing_in_action/
1•random__duck•54s ago•0 comments

InterviewSim: A Scalable Framework for Interview-Grounded Personality Simulation

https://arxiv.org/abs/2602.20294
1•PaulHoule•1m ago•0 comments

Python CFD simulator matching atomic resting radii vs. CODATA

https://github.com/agus79amm-dotcom/scalar-cartographer-cfd
1•Nitsuga0•1m ago•0 comments

RIP Orelhao

https://www.designative.info/2026/01/12/r-i-p-orelhao/
1•pearlsontheroad•1m ago•1 comments

Issue Tracking Is Dead

https://linear.app/next
1•cristinacordova•2m ago•0 comments

Show HN: I built a party game that makes fun of corporate culture

https://cubiclegame.com/
1•pianobrothers•3m ago•0 comments

Bermuda Triangle Search Led Divers to Challenger Wreckage

https://modernengineeringmarvels.com/2026/03/23/bermuda-triangle-search-led-divers-to-challenger-...
1•Brajeshwar•4m ago•0 comments

Atomic Display Switching: Solving

https://github.com/piot5/displayflow_cli
1•pyotq•5m ago•0 comments

Fixed Python Autocomplete

https://matan-h.com/better-python-autocomplete
1•karakoram•6m ago•0 comments

What I mean when I say that I hate GenAI

https://michal.sapka.pl/weblog/2026/what-i-mean-when-i-say-that-i-hate-genai/
3•speckx•7m ago•0 comments

Em-dash – open-source HIPAA compliance that runs locally

https://github.com/aanishs/em-dash
1•aanishs•8m ago•0 comments

Wine 11 rewrites how Linux runs Windows games at kernel with massive speed gains

https://www.xda-developers.com/wine-11-rewrites-linux-runs-windows-games-speed-gains/
3•felineflock•8m ago•0 comments

Show HN: Cranki – Crosswords meet Anki flashcards

https://cranki.app
1•petargyurov•9m ago•0 comments

Should religious AI chatbots be treated differently from all others?

https://mfioretti.substack.com/p/should-religious-ai-chatbots-be-treated
2•oopsiremembered•9m ago•1 comments

Cognitive OS – Prediction-error learning layer for AI agents

https://github.com/eugenexonr/cognitive-os
1•dovmant•10m ago•1 comments

The Danger Behind Meta Killing End-to-End Encryption for Instagram DMs

https://www.wired.com/story/the-danger-behind-metas-decision-to-kill-end-to-end-encrypted-instagr...
3•pulisse•13m ago•0 comments

US Gov Investigators Found No EU Internet Censorship, and Ignored the Findings

https://www.techdirt.com/2026/03/24/the-trump-admins-own-investigators-found-no-eu-internet-censo...
3•hn_acker•15m ago•2 comments

Anduril Industries – Senior Software Engineer – JavaScript, React, AWS

1•Floss•16m ago•0 comments

Delta suspends special congressional services amid shutdown

https://thehill.com/policy/transportation/5797907-delta-suspends-special-congressional-desk-service/
4•JumpCrisscross•19m ago•0 comments

New cars allegedly include "eye of sauron" to monitor drivers

https://twitter.com/VladTheInflator/status/2036174124180185260
3•bilsbie•19m ago•0 comments

Show HN: Skub – a sliding puzzle browser game

https://skub.app
2•kasperstorgaard•20m ago•5 comments

Airstrikes may have destroyed Iran's last F-14s

https://www.npr.org/2026/03/24/nx-s1-5752380/f14-tomcats-iran-us-israel-airstrikes-top-gun
2•divbzero•21m ago•0 comments

LiteLLM's SOC 2 auditor was - Delve

https://trustcompliance.xyz/blog/supply-chain-trust
2•fadijob•22m ago•0 comments

LLMs don't think outside the box

https://zeyrie.blog/posts/technology/llms-dont-think-outside-the-box/
3•speckx•22m ago•0 comments

Victorian service stations run out of fuel as Middle East war spikes demand

https://www.abc.net.au/news/2026-03-24/victorian-petrol-stations-run-out-diesel-fuel-iran-conflic...
4•geox•23m ago•1 comments

Yes, AI is intelligent. Prove me wrong

https://bertrandmeyer.com/2026/02/26/yes-ai-is-intelligent-prove-me-wrong/
3•reillyse•24m ago•3 comments

Gmail AI Productivity Hacks

https://consul.so/blog/gmail-productivity-tips-ai-2026
1•goldkey•24m ago•0 comments

Hark – The most advanced personal intelligence [video]

https://www.youtube.com/watch?v=0H1LSLipOVI
1•dangtony98•24m ago•0 comments
Open in hackernews

Ask HN: How can I load test PostgreSQL but avoid changing actual data?

1•LawZiL•10mo 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•10mo 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•10mo 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•10mo 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•10mo ago
Load test against a clone instead of a DB whose contents you care about?