frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

SeniorGate – pre-registered benchmark of "senior engineer" skills for AI agents

https://github.com/moelsaka01/seniorgate
1•moelsaka01•2m ago•0 comments

Humanity Is No Longer Replacing Itself, and No Market Will Fix It

https://www.promarket.org/2026/11/30/humanity-is-no-longer-replacing-itself-and-no-market-will-fi...
1•randycupertino•2m ago•1 comments

A Quantitative Analysis of Workload Distribution in Christmas Cracker Orchestras

https://owenlacey.dev/christmas-carol-analysis/
1•owenlacey•5m ago•0 comments

Show HN: My Physical Media Collection

https://data.jordanscales.com/views/media-collection/
1•jordanscales•8m ago•0 comments

The Last Human Release of SQLite

https://hackernoon.com/the-last-human-release-of-sqlite
1•gok•11m ago•0 comments

Show HN: Confy – Chat with people nearby, offline, without an account

https://confychat.com
2•ddmma•12m ago•0 comments

Forward Error Correction for Live Video: When to Use It

https://www.red5.net/blog/forward-error-correction-live-video-streaming/
1•mondainx•12m ago•0 comments

At least 300 companies routed $108M in Nvidia GPUs to Russia

https://www.tomshardware.com/tech-industry/policy/at-least-300-companies-routed-usd108-million-in...
3•random3•12m ago•0 comments

James Russell Has Died. He Created the Technology Behind Compact Discs

https://www.nytimes.com/2026/12/06/science/james-russell-dead.html
3•droidjj•16m ago•0 comments

FBI PSA: Cyber Actors Use Super Intelligence to Automate Attacks

https://www.ic3.gov/PSA/2026/PSA261205
2•gpi•17m ago•0 comments

Epistemological Colonialism and Resistance [pdf]

https://www2.hu-berlin.de/transcience/Vol11_No1_69_87.pdf
1•musha68k•17m ago•0 comments

There’s a new ocean now—can you name all 5?

https://www.nationalgeographic.com/environment/article/theres-a-new-ocean-now-can-you-name-all-fi...
1•Markoff•18m ago•1 comments

I built a book(Requisite Variety) based on system theory to work with AI

https://sbondar.com/variety
1•kiosan•21m ago•1 comments

Show HN: 1,073,741,824 live checkboxes in one 128 MiB MMAP file (bots welcome)

https://obc.wtz.nz/
1•watzon•22m ago•1 comments

Yo, one of the most pointless apps ever, is back

https://www.theverge.com/tech/1050940/yo-social-app-back
1•rorylawless•23m ago•0 comments

Show HN: File Shredder – a free native Mac app to overwrite and delete files

https://www.fileshredder.io/
1•gdemers•23m ago•1 comments

Bill Gates has spent almost 600M dollars buying off Western journalism

https://github.com/kevinnbass/gates-foundation-media-grants/blob/main/figure/gates-media-1997-202...
3•extraextra•24m ago•2 comments

Show HN: Drift – a linter that reports its noise on real code

https://github.com/rosie-dev-ilands/drift-linter
1•rosie-6•24m ago•0 comments

Show HN: Symphony Forge – Claude builds, Codex reviews, Gemini reads the plan

https://github.com/vrknetha/symphony-forge
1•ravi_knacklabs•24m ago•0 comments

The Year When Parents Stood Up to Big Tech

https://www.newyorker.com/culture/2026-in-review/the-year-when-parents-stood-up-to-big-tech
3•saikatsg•29m ago•0 comments

Waiting for Gödel: Do Self-Improving Agents Improve at Improving?

https://arxiv.org/abs/2612.06167
2•TheWoollyBully•30m ago•0 comments

Show HN: Computer-Use SOTA

https://pandause.dev
1•alexandroskyr•30m ago•0 comments

Green CI, Swallowed Errors: LLM Agents Clear Warnings but Keep the Bug

https://arxiv.org/abs/2612.02421
1•TheWoollyBully•30m ago•0 comments

What happens to mathematics when AI becomes an oracle?

https://arstechnica.com/science/2026/11/what-happens-to-mathematics-when-ai-becames-an-oracle/
2•SphericalCowww•32m ago•1 comments

Stop Using Your Smartest Models for Your Simplest Tasks

https://memgraph.com/blog/small-language-model-text-to-cypher
1•taubek•32m ago•0 comments

Did someone open source CUDA? [video]

https://www.youtube.com/shorts/13tDPdDLQ2w
2•aj7•32m ago•0 comments

Direct MOQ Publishing with Bitmovin's Live Encoder

https://bitmovin.com/blog/live-encoder-moq-publishing/
1•tosh•34m ago•0 comments

Stanford Encyclopedia of Philosophy

https://plato.stanford.edu/index.html
2•saikatsg•34m ago•0 comments

Global Study Offers Insight into What Helps Individuals, Societies Prosper

https://news.harvard.edu/gazette/story/2026/12/the-things-that-money-cant-buy/
1•DeepLogin•35m ago•0 comments

Detent UI: React Components for Shadcn and AI Apps

https://detentui.com
1•handfuloflight•37m 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?