frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Fatberg the size of 4 buses likely birthed poo balls that closed Sydney beaches

https://www.theguardian.com/australia-news/2026/jan/17/fatberg-poo-balls-sydney-beaches-malabar-o...
1•ljf•7m ago•0 comments

YouTube relaxes monetization policy on videos with controversial content

https://apnews.com/article/youtube-monetization-update-policy-controversial-issues-545e27e27e26e0...
1•01-_-•8m ago•0 comments

FestiveEcho

https://github.com/StnkRB/Chrome-Extension-X-AutoComment
1•rahulbootstrap•11m ago•1 comments

ClickHouse valued at $15B as database analytics firm rides AI wave

https://www.reuters.com/technology/database-management-firm-clickhouse-valued-15-billion-amid-ai-...
1•shadow28•11m ago•0 comments

True story of the 1916 hanging of Murderous Mary, a circus elephant

https://www.themoonlitroad.com/murderous-mary-the-elephant/
2•joebig•12m ago•0 comments

Show HN Rundown transforms docs into executable workflows

https://rundown.cool/
1•tobyhede•13m ago•0 comments

Tyler Cowen's AI Campus

https://arnoldkling.substack.com/p/tyler-cowens-ai-campus
1•samuel246•20m ago•0 comments

Show HN: Local AI that knows when you're burning out

https://www.humonos.com/beta
2•jaskirat1216•25m ago•0 comments

Why Systems Fail Under Load

https://www.youtube.com/watch?v=oO6pBX8_g6o
1•paperplaneflyr•31m ago•0 comments

GPT-5.2 does not follow instructions and ignores my prompts

https://old.reddit.com/r/OpenAI/comments/1mwyz6m/gpt_5_pro_no_following_instructions_and_ignoring/
1•behnamoh•33m ago•2 comments

Ask HN: How are you preventing LLMs from hallucinating in real workflows?

1•Agent_Builder•33m ago•0 comments

Built an app that aggregates Prediction Markets with AI Context

https://saipintel.ai:443/
1•everythingalt•36m ago•1 comments

Vibe coding is a blight on open-source

https://old.reddit.com/r/webdev/comments/1qcxres/vibe_coding_is_a_blight_on_opensource/
3•doppp•41m ago•0 comments

Learning better decision trees – LLMs as Heuristics for Program Synthesis

https://mchav.github.io/learning-better-decision-tree-splits/
1•mchav•41m ago•0 comments

Divorce app to save you lawyers fee

https://replantlife.com/
1•cheroll•44m ago•1 comments

Meditation and Unconscious: A Buddhist Monk and a Neuroscientist (2022)

https://thereader.mitpress.mit.edu/meditation-and-the-unconscious-buddhism-neuroscience-conversat...
2•arunc•50m ago•0 comments

Do not give up your brain

https://cassidoo.co/post/good-brain/
2•gpi•51m ago•0 comments

Reality Is Breaking the "AI Revolution"

https://www.planetearthandbeyond.co/p/reality-is-breaking-the-ai-revolution
5•handfuloflight•58m ago•0 comments

Teen Jailed After Exploiting Refund Policy for $570k

https://www.vice.com/en/article/teen-jailed-after-exploiting-refund-policy-for-570000/
3•lnguyen•1h ago•1 comments

RubyShell: Ruby way to create shell scripts

https://github.com/albertalef/rubyshell
1•thunderbong•1h ago•0 comments

Ask HN: Convince me on why AI matters

1•moh20•1h ago•4 comments

New York proposal requires 3D printer manufacturers to prevent printing guns

https://www.tomshardware.com/3d-printing/new-york-state-takes-steps-to-ban-3d-printed-guns-propos...
3•josephcsible•1h ago•2 comments

Anatomy of an Excellent OpenCode Skill: Lessons from Cloudflare-Skill

https://medium.com/@jpcaparas/anatomy-of-an-excellent-opencode-skill-lessons-from-cloudflare-skil...
2•zenoware•1h ago•0 comments

The missed opportunity of constrained decoding

https://michaelorenstein.com/blog/zero-entropy-tokens/
2•killcoder•1h ago•4 comments

Show HN: I've Built a Python Playground

https://playcode.io/python-compiler
2•ianberdin•1h ago•0 comments

Trump Sets Fraudster Free from Prison for a Second Time

https://www.nytimes.com/2026/01/16/us/politics/trump-fraudster-pardon.html
3•duxup•1h ago•1 comments

Show HN: AI video generator (React output)– now with script gen and voice select

https://ai.outscal.com/
2•mayankkgrover•1h ago•0 comments

Global sports face challenges from 'AI slop' misinformation

https://www.reuters.com/sports/global-sports-face-challenges-ai-slop-misinformation-2026-01-17/
3•1vuio0pswjnm7•1h ago•0 comments

Show HN: Use Claude CLI to analyze its own protocol

https://github.com/mzhaom/claude-cli-protocol
2•keytalker•1h ago•0 comments

Counterfactual evaluation for recommendation systems

https://eugeneyan.com/writing/counterfactual-evaluation/
3•kurinikku•1h ago•0 comments
Open in hackernews

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

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