frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

NoisyTCP

https://twitter.com/v4bel/status/2122006607378972745
2•george_max•1m ago•1 comments

Show HN: Shutters – Photos and More

https://shutte.rs/
1•yrashk•2m ago•0 comments

T.REX Arms Maps

https://maps.trex-arms.com
1•trkaky•2m ago•0 comments

SuperMimic

https://supermimic.github.io/
1•simonpure•2m ago•0 comments

The Future of Hardware

2•mjs06•6m ago•0 comments

Your Agent Will Pick the Hackable One

https://geoffstearns.com/blog/your-agent-will-pick-the-hackable-one/
2•tensafefrogs•6m ago•0 comments

Pullboard 0.9.4: Autonomous development for real products

https://github.com/pullboard-dev/pullboard
1•Olscore•7m ago•0 comments

CloakPrompt – Local browser firewall that scrubs PII/keys before ChatGPT/Claude

https://addons.mozilla.org/en-US/firefox/addon/cloakprompt/
1•sbbang•7m ago•0 comments

Show HN: Minute – An Offline Meeting Notetaker Using Local LLMs

https://minutenotes.app/
2•mr_o47•11m ago•0 comments

Does Anyone Use Happier.dev?

1•brickers•12m ago•0 comments

Show HN: Strata Architecture

https://yrashk.com/strata/
1•yrashk•12m ago•0 comments

Show HN: Cshoal – A school of fish, hunted by predators, in your terminal

https://github.com/mcthomas/cshoal
1•Bondi_Blue•17m ago•0 comments

The Nvidia Scandal Goes Deeper Than You Think [video]

https://www.youtube.com/watch?v=PptRrzYY61w
1•novaRom•17m ago•0 comments

Ask HN: Why don't operating systems provide complete SSD write accountability?

1•amichail•18m ago•0 comments

Show HN: Straum – PostgreSQL Group by in Microseconds

https://github.com/janbjorge/straum
2•jeeybee•19m ago•0 comments

Training frontier knowledge work agents: A 397B RL training guide with SkyRL

https://www.mercor.com/blog/training-frontier-knowledge-work-agents-a-397b-rl-training-guide-with...
1•gmays•20m ago•0 comments

AI rivals tackle one of physics' deepest mathematical challenges

https://www.science.org/content/article/ai-rivals-tackle-one-physics-deepest-mathematical-challenges
1•geox•24m ago•0 comments

Why Starship won't have an abort system But should it?

https://everydayastronaut.com/starship-abort/
1•areoform•25m ago•0 comments

Command and Control (C2) for Red Teamers – 2026 Edition

https://medium.com/@nukeratframework/awesome-command-control-c2-2026-edition-530f78bd05f2
1•JohnTheTitor•28m ago•0 comments

Ask HN: What do coding interviews look like in the age of AI?

5•frankhorrigan•32m ago•1 comments

Bicycle for Your Mind: Revival of NvALT

https://bicycleforyourmind.com/revival-of-nvalt
5•millspore•34m ago•0 comments

Vulcan launch of Amazon Leo satellites fails

https://spacenews.com/vulcan-launch-of-amazon-leo-satellites-fails/
2•jonbaer•35m ago•3 comments

Free SSL, cert chain and domain expiry checker with plain-English results

https://certwatch.edgardev.pt/
1•devejesus•36m ago•0 comments

The Fail-Safe Illusion: An Ant in the House [pdf]

https://zenodo.org/records/24237537
2•davrosent•36m ago•0 comments

Show HN: Noncontinuation ("") reproducible in frontier LLMs and EOS logit gate

https://getswiftapi.com
1•rayanpal_•39m ago•0 comments

Vulcan rocket fails during return-to-flight launch, 40 Amazon satellites lost

https://www.space.com/space-exploration/launches-spacecraft/ula-vulcan-centaur-return-to-flight-a...
8•jonbaer•40m ago•0 comments

Inference Gateway Desktop, an AI client for any model provider

https://github.com/inference-gateway/desktop
2•edenr•41m ago•1 comments

A browser API for choosing and running local AI models

https://www.webmodels.dev/
1•kenzic•41m ago•1 comments

Show HN: Remindly a notes app with reminders built in (Mac, iOS, web)

https://www.remindly.com/
2•dkroy•46m ago•3 comments

Cuttlefish on Mac: Android's Virtual Device Framework on Apple Silicon

https://engineering.fb.com/2026/11/13/android/cuttlefish-on-mac/
1•acossta•46m 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?