frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

To boost research, states are building their own AI-ready supercomputers

https://www.science.org/content/article/boost-research-states-are-building-their-own-ai-ready-sup...
1•ashishgupta2209•2m ago•0 comments

A Fasting-Style Diet Seems to Result in Dynamic Changes to Human Brains

https://www.sciencealert.com/a-fasting-style-diet-seems-to-result-in-dynamic-changes-to-human-brains
1•makaimc•3m ago•0 comments

Queensland Museum accused of misleading teachers and children about climate

https://www.theguardian.com/australia-news/2025/dec/08/queensland-museum-accused-of-misleading-te...
2•doener•8m ago•0 comments

IntelliJ Scala Plugin 2025.3 Is Out

https://blog.jetbrains.com/scala/2025/12/08/scala-plugin-2025-3-is-out/
1•quapster•9m ago•0 comments

Russia Loses Launch Capability After Accident at Baikonur Cosmodrome

https://www.universetoday.com/articles/severe-accident-destroys-russias-ability-to-launch-astrona...
1•belter•10m ago•0 comments

TurtleStitch – Coded Embroidery

https://www.turtlestitch.org/
1•tosh•11m ago•0 comments

The Internet forgets, but I don't want to

https://alexwlchan.net/2025/social-media-scrapbook/
1•ingve•13m ago•0 comments

Clip of a Tesla Optimus teleoperator taking his headset off

https://bsky.app/profile/jjvincent.bsky.social/post/3m7hps4h2x22r
1•doener•15m ago•0 comments

Google is experimentally replacing news headlines with AI clickbait nonsense

https://www.theverge.com/ai-artificial-intelligence/835839/google-discover-ai-headlines-clickbait...
3•rbanffy•16m ago•2 comments

How to Articulate Yourself Intelligently

https://letters.thedankoe.com/p/how-to-articulate-yourself-intelligently
1•BerislavLopac•17m ago•0 comments

Catala – DSL for deriving algorithms producing automated legal decisions

https://github.com/CatalaLang/catala
2•amai•17m ago•0 comments

Ask HN: What's this EU startup that claims its chip is better than Nvidia's?

1•giuliomagnifico•17m ago•0 comments

F Prime

https://fprime.jpl.nasa.gov/
1•saswatms•17m ago•0 comments

How Docker Works

https://oneuptime.com/blog/post/2025-12-08-how-docker-actually-works/view
2•ndhandala•22m ago•0 comments

The Good, the Bad, and the Search:The Golden Era of Spaghetti Westerns 1964-1978

https://flickfuture.substack.com/p/the-good-the-bad-and-the-search-relive
1•PantherCat•22m ago•0 comments

Scratch for Business Process Automation

https://scratch.divizend.ai/
1•sigalor•25m ago•0 comments

Show HN: Global crowd-sourced WiFi Speed Map

https://www.wifi.live/
1•hg30•26m ago•0 comments

One too many words on AT&T's $2k Korn shell and other Usenet topics

https://blog.gabornyeki.com/2025-12-usenet/
1•gnyeki•29m ago•0 comments

WebGPU is now supported by all major browsers

https://videocardz.com/newz/webgpu-is-now-supported-by-all-major-browsers
2•vanburen•29m ago•0 comments

Contact Sheet Prompting

https://www.willienotwilly.com/contact-sheet-prompting
1•handfuloflight•33m ago•0 comments

It Is Worth It to Optimize Images for Your Site

https://brainbaking.com/post/2025/10/is-it-worth-it-to-optimize-images-for-your-site/
1•birdculture•38m ago•0 comments

I tried 'blood cleaning', the latest wellness fad

https://www.thetimes.com/life-style/health-fitness/article/would-you-get-your-blood-cleaned-of-to...
2•janandonly•43m ago•2 comments

Show HN: Vibe Code WordPress Plugins

https://steem.dev/
1•fasthightimess•45m ago•0 comments

China's exports top expectations on strong sales to non-US markets

https://www.reuters.com/world/asia-pacific/chinas-november-exports-top-expectations-imports-under...
2•reqo•46m ago•0 comments

I fired myself and made Gemini 3 the CEO of my dying startup

https://www.indiehackers.com/post/i-fired-myself-and-made-gemini-3-0-the-ceo-of-my-dying-startup-...
5•sklinkert•47m ago•2 comments

Zono: World Clock Time Zone

https://apps.apple.com/us/app/zono-world-clock-time-zone/id6755850724?mt=12
1•mraduldeodhiya•47m ago•1 comments

Galileo (Operating System)

https://en.wikipedia.org/wiki/Galileo_(operating_system)
1•robin_reala•47m ago•0 comments

Introduction

2•just-a-test•53m ago•1 comments

12 Days of Shell

https://12days.cmdchallenge.com
40•zoidb•59m ago•11 comments

CLI coding agents browsing ncdu/gdu directly instead of parsing JSON

2•shou_arisaka•1h ago•0 comments
Open in hackernews

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

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