frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

We built a realtime system for responsive voice AI in six months

https://openai.com/index/continuous-voice-interaction-with-gpt-live/
1•karimf•40s ago•0 comments

aria2: The next generation download utility

https://aria2.github.io/
1•Bluestein•1m ago•0 comments

Inferact vLLM creators are hiring

https://twitter.com/SemiAnalysis_/status/2086815217497849987
1•aaqaishtyaq•1m ago•0 comments

Ask HN: Are we automating with AI instead of analysing then designing?

1•ozymand•9m ago•0 comments

A "PC" for the apocalypse, works as long as I have fire

https://www.reddit.com/r/pcmasterrace/comments/1vk3hwv/a_pc_for_the_apocalypse_works_as_long_as_i...
1•Tomte•9m ago•0 comments

Show HN: Free website status checker and DNS/SPF/DKIM toolbox – no signup

https://at-use.com/tools/online-status-checker
1•atuse•9m ago•0 comments

Claude Could Watermark Text Without Invisible Characters

https://www.jrzs.dev/blog/claude-watermarking-ai-text
1•jrhey•10m ago•0 comments

Panic of 1873

https://en.wikipedia.org/wiki/Panic_of_1873
1•GranularRecipe•10m ago•0 comments

Does Silicon Valley Dream of Philip K Dick?

https://www.ft.com/content/bdcf7729-3b03-49ec-82fb-b5773fdaa990
1•spy888•14m ago•1 comments

Deployah v0.7.0 – Spec-to-Release for Kubernetes without writing Helm charts

https://github.com/deployah-dev/deployah
5•atkrad•17m ago•0 comments

Jcode – open-source AI coding agent for the terminal

https://jcode.sh/
1•jonbaer•17m ago•0 comments

Why havent we found any aliens yet?

https://www.theguardian.com/news/2026/aug/11/the-great-silence-why-havent-we-found-any-aliens-yet
2•6LLvveMx2koXfwn•18m ago•0 comments

I reverse-engineered Codex's web search for use with Claude, and any local model

https://github.com/mateusdcc/pi-gpt-search
2•mateusdcc•20m ago•0 comments

They Killed Old Reddit

https://old.reddit.com/r/worldnews
2•pluc•20m ago•1 comments

Video Is a Playable Shooter Game [video]

https://www.youtube.com/watch?v=XW_bGXwfklI
1•smusamashah•22m ago•0 comments

Mac, out loud – text to speech with open models. No cloud, no analytics

https://sayit.sh/
1•lumannnn•23m ago•0 comments

Pessimist's Guide to the Next 10 Years (2010)

https://nextnature.org/en/magazine/story/2010/douglas-coupland-a-radical-pessimists-guide-to-the-...
1•FromHoiPolloi•24m ago•1 comments

Testing the effectiveness AI peer review

https://www.paullitvak.com/p/how-well-does-ai-peer-review-work
1•qsi•24m ago•0 comments

A WebMCP Interface

https://blog.cloudflare.com/webmcp/
1•nashashmi•25m ago•0 comments

Data Center Construction Monitoring from Satellite Imagery

https://datacenterbuildout.com/
1•jonbaer•25m ago•0 comments

There's a dungeon under this blog

https://blog.lvmbdv.dev/posts/theres-a-dungeon-under-this-blog/
1•mrtz•26m ago•0 comments

Cursor Router chooses the right model for the task

https://cursor.com/blog/how-cursor-router-works
1•kiyanwang•28m ago•0 comments

P: Safe asynchronous event-driven programming

https://dl.acm.org/doi/10.1145/2499370.2462184
1•Bluestein•29m ago•0 comments

Hunger stones, wrecks and bones: Europe's drought brings past to surface

https://www.theguardian.com/world/2022/aug/19/hunger-stones-wrecks-and-bones-europe-drought-bring...
1•sylvainkalache•29m ago•0 comments

FFmpeg Compiler?

2•danielszm•31m ago•1 comments

Samsung Galaxy Tab vs. iPad: Complete Buying Guide for 2026

https://www.analyticsinsight.net/phones/samsung-galaxy-tab-vs-ipad-complete-buying-guide-for-2026
2•swarnamukhi•33m ago•0 comments

Locating a livestream using background thunder sounds [video]

https://www.youtube.com/watch?v=SnbkIm56TfI
1•perching_aix•34m ago•0 comments

Show HN: Get a top Hacker News item with summary on every new tab

https://chromewebstore.google.com/detail/hacker-space/pmlajlgklmgabkhammfolkgkeghamjnn
1•KitN•34m ago•0 comments

Nvidia's Risky Business

https://stratechery.com/2026/nvidias-risky-business/
2•jonbaer•35m ago•0 comments

Show HN: Pi-Yahe: Yet Another Herdr Extension

https://github.com/marv1nnnnn/pi-yahe
1•marv1nnnnn•36m 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?