frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Cistercian Numbers

https://www.omniglot.com/language/numbers/cistercian-numbers.htm
1•debo_•47s ago•0 comments

Nchat – WhatsApp via Terminal

https://github.com/d99kris/nchat
1•rrr_oh_man•52s ago•0 comments

Qwen3.5-397B-A17B-FP8 weights are now available

https://huggingface.co/Qwen/Qwen3.5-397B-A17B-FP8
1•JustSkyfall•1m ago•0 comments

Web 4.0

https://web4.ai/
1•fragebogen•2m ago•0 comments

What I learned analyzing 1k AI agent turns: Sessions are trajectories

https://unfault.dev/blog/the-shape-of-a-spiral/
1•lawouach•2m ago•1 comments

Jury told that Meta, Google 'engineered addiction' at landmark US trial

https://www.lemonde.fr/en/pixels/article/2026/02/10/jury-told-that-meta-google-engineered-addicti...
1•1vuio0pswjnm7•2m ago•0 comments

Glowing bacterial sensors detect gut illness in mice before symptoms emerge

https://medicalxpress.com/news/2026-01-bacterial-sensors-gut-illness-mice.html
1•PaulHoule•4m ago•0 comments

Show HN: Trust Protocols for Anthropic/OpenAI/Gemini

https://www.mnemom.ai
1•alexgarden•4m ago•0 comments

Taming Claude Code: Taking Back Control

https://saeedesmaili.com/posts/taming-claude-code-taking-back-control/
1•saeedesmaili•5m ago•0 comments

86% of Americans want Meta, Google held accountable for 'predatory' social media

https://nypost.com/2026/02/17/business/86-of-americans-want-meta-google-held-accountable-for-soci...
1•1vuio0pswjnm7•5m ago•0 comments

Climber on trial for leaving girlfriend to die on Austria's highest mountain

https://www.bbc.com/news/articles/c5yv9plyjgpo
2•tartoran•6m ago•0 comments

Show HN: AFS – filesystem-native memory layer for AI agents

1•thompson0012•6m ago•0 comments

Show HN: allsee – fast cross-platform file search built with Rust and Tauri

https://github.com/TeodorZlatanov/allsee
1•tzlatanov•6m ago•1 comments

A 5-20x faster experimental Homebrew alternative

https://github.com/lucasgelfond/zerobrew
1•nkjoep•7m ago•0 comments

Software as Wiki, Mutable Software

https://blog.exe.dev/software-as-wiki
1•gmays•7m ago•0 comments

"AI Agent Standards Initiative" for Interoperable and Secure Innovation

https://www.nist.gov/news-events/news/2026/02/announcing-ai-agent-standards-initiative-interopera...
1•ChrisArchitect•8m ago•0 comments

Unity CEO says an upcoming Beta will allow to "prompt full casual games"

https://www.gamingonlinux.com/2026/02/unity-ceo-says-an-upcoming-beta-will-allow-people-to-prompt...
1•dulvui•8m ago•0 comments

Finding a non-square mod p

https://www.johndcook.com/blog/2026/02/14/finding-a-non-square/
1•ibobev•8m ago•0 comments

Finding a square root of -1 mod p

https://www.johndcook.com/blog/2026/02/14/square-root-minus-1-mod-p/
1•ibobev•8m ago•0 comments

Wagon's Algorithm in Python

https://www.johndcook.com/blog/2026/02/14/wagons-algorithm-in-python/
1•ibobev•8m ago•0 comments

Show HN: Mailpeek – Vue.js email preview component (Gmail/Outlook rendering)

https://github.com/mailpeek/mailpeek
1•ashannon•9m ago•0 comments

Google's Lyria 3 AI music model is coming to Gemini today

https://arstechnica.com/google/2026/02/gemini-can-now-generate-ai-music-for-you-no-lyrics-required/
1•AndrewDucker•10m ago•0 comments

Show HN: AgentDX – Open-source linter and LLM benchmark for MCP servers

https://github.com/agentdx/agentdx
1•yamarldfst•10m ago•0 comments

Zero-day CSS: CVE-2026-2441 exists in the wild

https://chromereleases.googleblog.com/2026/02/stable-channel-update-for-desktop_13.html
9•idoxer•10m ago•0 comments

The Scarcity Trap: Why AI Still Feels Like a Metered Utility

https://productics.substack.com/p/the-scarcity-trap-why-ai-still-feels
1•gmays•11m ago•0 comments

Show HN: A Unix environment in a single HTML file (420 KB)

https://shiro.computer/show
6•sagebird•12m ago•2 comments

Show HN: Sher – Instant Preview Environments

https://sher.sh
1•andout_•13m ago•0 comments

Becoming a Research Engineer at a Big LLM Lab: 18 Months of Strategic Career Dev

https://www.maxmynter.com/pages/blog/jobhunt
1•evakhoury•14m ago•0 comments

Token_ledger – Ruby gem for auditable token accounting in Rails

https://github.com/wuliwong/token_ledger
1•wuliwong•14m ago•1 comments

Heaper: Local-first PKM for all filetypes with multi-device sync, tags and links

https://heaper.de/
1•gessha•14m ago•0 comments
Open in hackernews

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

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