frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Map of every off-plan project in Bangkok (Thailand has no MLS)

https://baanscope.com
1•kesarito•53s ago•0 comments

Show HN: Mailberry – an AI-native email platform with The Email Brain

https://mailberry.ai/
1•alecbee•1m ago•0 comments

How do you audit what your autonomous agents did?

https://github.com/BrightbeamAI/chap
1•arsalanshahid•2m ago•0 comments

Kilo Code has been acquired by Anaconda

https://www.anaconda.com/blog/anaconda-acquires-kilo-code
2•poorvsahu•2m ago•0 comments

The Psychology of Software Teams

https://www.routledge.com/The-Psychology-of-Software-Teams/Hicks/p/book/9781032963389
2•dcre•3m ago•0 comments

Show HN: AI-powered sports analytics and social betting platform

https://statsniper.com/
2•not_wowinter13•4m ago•0 comments

Featurevisor v3 – open-source feature flags management with Git

https://featurevisor.com/blog/v3-release/
3•fahad19•5m ago•0 comments

Open-source memory for coding agents, synced over SSH

https://github.com/vshulcz/deja-vu/
3•vshulcz•5m ago•0 comments

Unsolved Problems in MLOps

https://spawn-queue.acm.org/doi/pdf/10.1145/3762989
3•gnyeki•5m ago•0 comments

Purging George Orwell's books misses what drives the political right

https://theloop.ecpr.eu/purging-the-books-of-george-orwell-will-not-halt-the-rise-of-the-politica...
2•jruohonen•6m ago•1 comments

Codex Micro

https://openai.com/supply/co-lab/work-louder/
3•davidbarker•7m ago•0 comments

OpenAI's first branded hardware is a light-up keyboard?

https://arstechnica.com/ai/2026/07/openais-first-branded-hardware-is-a-light-up-keyboard/
3•cdrnsf•7m ago•0 comments

OpenAI Launches Hardware for Codex

https://www.theverge.com/ai-artificial-intelligence/965901/openai-hardware-codex-micro-launch
3•whalesalad•7m ago•0 comments

2081681993819799846994786333448627702865224538845305484256394568209274196 (etc.) [video]

https://www.youtube.com/watch?v=1cvKGqgOx_8
2•lr0•8m ago•0 comments

Network routing correctness ≠ distribution completeness [pdf]

https://static1.squarespace.com/static/6a0160b578abca0542beab1d/t/6a545da888c407314b0e6289/178391...
2•siliconmtn•8m ago•0 comments

Show HN: OtoDock, run Claude Code and Codex as a team of agents on your server

https://github.com/OtoDock/oto-dock/
2•dimitrismrtzs•8m ago•0 comments

What happens when your VPN meets 200 AI agents

https://thenewstack.io/unified-access-ai-agents/
2•Brajeshwar•8m ago•0 comments

Kilo Code has been acquired by Anaconda

https://twitter.com/kilocode/status/2077394060248076699
4•tosh•9m ago•0 comments

We're Starting To Trust Some Clusters - OCI Has Two Of Them

https://webbynode.com/articles/were-starting-to-trust-some-clusters-oci-is-one-of-them
2•gsgreen•11m ago•0 comments

Rest of the Owl: Completes the full dev cycle given a well defined task

https://github.com/steph-dove/klaussy-agents/blob/main/src/klaussy/templates/skills/rest-of-the-o...
2•klaussy•11m ago•0 comments

BREAKFAST – Mechanical Engineer – Brooklyn NY – On-Site – Full-Time or Freelance

https://theartistbreakfast.com/works
2•mattiasgunneras•11m ago•0 comments

The Other Norwegian

https://granta.com/the-other-norwegian/
2•jruohonen•12m ago•0 comments

Nix in FedRAMP High environments now available in FlakeHub

https://determinate.systems/blog/flakehub-fedramp-high/
3•jmartens•12m ago•0 comments

German Court Orders Deletion of Footage Exposing Pig Gas Chambers

https://veganhorizon.substack.com/p/punished-for-exposing-the-truth
3•hn_acker•12m ago•0 comments

Show HN: Mindlas – catch your coding agent drifting before the bad code lands

https://github.com/Evolutionairy-AI/MINDLAS
1•MAESTRO1955•15m ago•0 comments

How we're saving 50k$ of Claude API every month

https://github.com/regolo-ai/brick-SR1
2•FrancescoMassa•15m ago•1 comments

After Geneva, AI Governance Must Confront the Trust Deficit

https://www.techpolicy.press/after-geneva-ai-governance-must-confront-the-trust-deficit/
2•cdrnsf•17m ago•0 comments

The Internet Had a North Star. The UN's Global Dialogue Made Clear AI Doesn't

https://www.techpolicy.press/the-internet-had-a-north-star-the-uns-global-dialogue-made-clear-ai-...
2•cdrnsf•18m ago•0 comments

Alzheimer's Blood Tests Offer New Promise to Diagnose and Predict the Disease

https://www.nytimes.com/2026/07/15/well/mind/alzheimers-disease-blood-tests-symptoms.html
3•elo2000•18m ago•0 comments

Treating generic drugs as something special can wreck affordability

https://www.46brooklyn.com/research/wrecklimid-how-treating-generic-drugs-as-something-special-ca...
3•toomuchtodo•19m ago•1 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?