frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

CyberAgent moves faster with ChatGPT Enterprise and Codex

https://openai.com/index/cyber-agent
1•surprisetalk•55s ago•0 comments

Camofox-browser: Anti-detection browser for AI agents, powered by Camoufox

https://github.com/jo-inc/camofox-browser
1•luispa•1m ago•0 comments

How a stranger's kind words stayed with a father and daughter

https://text.npr.org/nx-s1-5774524
1•1659447091•6m ago•0 comments

New NextTool Mini Flagship

https://nextoolstore.com/products/mini-flagship-f12-nextool®?srsltid=AfmBOooF5hZ7TFUk05yeE5Po3gmP...
1•nate•8m ago•1 comments

Kagi Product Tips – Customize Your Search Results with URL Redirects

https://blog.kagi.com/tips/redirects
2•treetalker•11m ago•0 comments

goose has a new home – the Agentic AI Foundation (AAIF)

https://goose-docs.ai/blog/2026/04/07/goose-moves-to-aaif/
1•wicket•13m ago•0 comments

Did Airbnb, Medium, Beats, and Flipboard Rip Off Their Logos? (2016)

https://thehustle.co/airbnb-medium-beats-flipboard-logo
1•bookofjoe•16m ago•0 comments

Verification Is the Next Bottleneck in AI-Assisted Development

https://www.opslane.com/blog/verification-bottleneck
1•aray07•17m ago•0 comments

OpenAI looks to take on Anthropic with $100 per month ChatGPT Pro subscriptions

https://www.cnbc.com/2026/04/09/openai-chatgpt-pro-subscription-anthropic-claude-code.html
1•HiroProtagonist•17m ago•0 comments

AI micro-dramas are shaking up Chinese entertainment

https://economist.com/china/2026/04/09/ai-micro-dramas-are-shaking-up-chinese-entertainment
1•andsoitis•20m ago•0 comments

The AI Jobs Blind Spot: Why Job Creation Is the Default

https://substack.norabble.com/p/the-ai-jobs-blind-spot
1•nedruod•21m ago•0 comments

Gitbutler

https://gitbutler.com/
2•handfuloflight•22m ago•0 comments

Perplexity computer is based on the OSS browser use library

https://twitter.com/mamagnus00/status/2042339700082610345
3•whytai•23m ago•0 comments

BYD teams up with KFC to offer 9 minute EV charging

https://electrek.co/2026/04/09/byd-fast-food-giant-offer-9-minute-ev-charging/
2•breve•23m ago•0 comments

Sora Fuel Raised $14.6M to Bottle the Sky

https://www.siliconsnark.com/sora-fuel-raised-14-6-million-to-bottle-the-sky-honestly-respect/
1•SaaSasaurus•24m ago•0 comments

IMDB created my account for merely visiting the site

4•astr0n0m3r•28m ago•2 comments

CNN investigation: Exposing a global 'rape academy'

https://www.cnn.com/interactive/2026/03/world/expose-rape-assault-online-vis-intl/index.html
6•1659447091•32m ago•0 comments

New to Hackerview

1•foxxyyybusiness•33m ago•3 comments

Show HN: Idontuselinkedin.com

https://idontuselinkedin.com
8•jmholla•34m ago•4 comments

InterviewGPT: Stop Guessing. Start Scaling. Land Your Dream FAANG Offer

https://interviewgpt.deepchill.app/
2•tiancaioyzy•35m ago•0 comments

Do Science in Bed

https://monsharen.github.io/Peer/
2•ycombinatornu•35m ago•0 comments

How Microsoft Abuses Its Users

https://lzon.ca/posts/other/microsoft-user-abuse/
10•jpmitchell•36m ago•0 comments

Apple and Lenovo have the least repairable laptops, analysis finds

https://arstechnica.com/gadgets/2026/04/apple-has-the-lowest-grades-in-laptop-phone-repairability...
1•josephcsible•37m ago•0 comments

Show HN: Solving digital piracy with game theory instead of DRM

https://piecely.app/explore
2•johndebord•38m ago•1 comments

Ford patents lip reading and emotion detection inside the car [video]

https://www.youtube.com/watch?v=g5V3cxjDaFU
3•_DeadFred_•41m ago•0 comments

Researchers turn recovered car battery acid, plastic waste into clean hydrogen

https://www.cam.ac.uk/research/news/researchers-turn-recovered-car-battery-acid-and-plastic-waste...
2•gmays•41m ago•0 comments

Open source, agentic knowledge bases for all of humanity's knowledge

https://alpharesearch.nyc/blog/launching-alpha-research/
2•rprend•42m ago•0 comments

Launch of Artemis II: Rocket Camera Views [video]

https://www.youtube.com/watch?v=mn7WMowM1xY
1•Yukonv•45m ago•0 comments

Moving from WordPress to Jekyll (and static site generators in general)

https://www.demandsphere.com/blog/rebuilding-demandsphere-with-jekyll-and-claude-code/
5•rgrieselhuber•45m ago•0 comments

Secure AI Agent Connections to Enterprise Tools

https://www.arcade.dev/blog/connect-ai-agents-enterprise-tools/
2•manveerc•45m ago•0 comments
Open in hackernews

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

1•LawZiL•11mo 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•11mo 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•11mo 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•11mo 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?