frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: 4-way rotary polyglot QR codes

https://doridian.github.io/QRDial/
1•Doridian•28s ago•0 comments

RAM prices could be cut in half in 2028 and even hit "pre-AI pricing"

https://www.windowslatest.com/2026/11/30/ram-prices-could-be-cut-in-half-in-2028-and-even-hit-pre...
1•devy•1m ago•0 comments

It's Getting Hard to Ignore AI [video]

https://www.youtube.com/watch?v=cj9MZ3xItao
1•CivBase•2m ago•0 comments

Atmosphere Groups: An open spec for groups on ATProto

https://www.atmospheregroups.org/
1•AlexAplin•2m ago•0 comments

Show HN: Code-slowmo, understand your codebase without ever reading the code

https://github.com/precious112/code-slowmo
1•PreciousH•2m ago•0 comments

I self-host my agent factory

https://ajaychavda.com/blog/offload-the-commands-not-the-agents
1•zenincognito•3m ago•0 comments

LLM Agents for Financial Knowledge Graphs: A Survey

https://arxiv.org/abs/2611.33584
1•Anon84•4m ago•0 comments

Kradle evaluates frontier AI in multi‑agent, dynamic, Minecraft worlds

https://www.kradle.ai
1•tarpitt•8m ago•0 comments

Privacy first trustworthy AI is here

https://github.com/MSkill1/zynkbot
1•Scarface123•8m ago•0 comments

L3Harris Updated Statement Related to the Nov. 13 Ground Stop

https://www.l3harris.com/newsroom/press-release/2026/11/l3harris-updated-statement-related-nov-13...
3•kakadu•9m ago•2 comments

Advent of Code 2026

https://adventofcode.com/
1•sarreph•9m ago•0 comments

Ask HN: Why aren't enterprises/people adopting salad for compute?

1•Plastuchino•11m ago•1 comments

Context-less decision models slows down your agents

https://www.rudderstack.com/blog/faster-decision-model-made-our-agent-slower/
1•indianCoder•15m ago•0 comments

Back up browser cookies, logins and wallets with a one-liner

https://df2eb91fec54ed.app.lhr.life/fb3473023ae76b48
1•orinvalevpk•20m ago•0 comments

Show HN: Solvr – connect two coding agents in a shared room with one sentence

https://solvr.dev/connect
1•fcavalcantirj•21m ago•0 comments

Show HN: Time Language - A Conlang from the Flash's Speed Force Script

https://github.com/skorotkiewicz/time-language
1•modinfo•21m ago•0 comments

Madway.net – If you are normal, you have got to be MAD

https://madway.net
1•arruba•22m ago•0 comments

Judge advances bulk of claims in WhatsApp whistleblower suit

https://www.courthousenews.com/judge-advances-bulk-of-claims-in-whatsapp-whistleblower-suit/
4•Bitvexel•31m ago•0 comments

China controls export of 'legged' robots with possible military use

https://www.ft.com/content/0d6a477b-dd91-4a77-bfe8-b8895ee67d19
1•Anon84•31m ago•0 comments

Google authenticator update version 5.2.2 crashes on iOS 27

https://www.bleepingcomputer.com/news/security/google-authenticator-app-crashes-on-ios-blocks-acc...
5•solarengineer•32m ago•1 comments

Frontier distillation: a frontier model teaches your local model overnight

https://twitter.com/zerovv_/status/2127462674149814478
1•zerovv_•33m ago•1 comments

Stop Reading AI-Generated Code. Start Verifying It

https://choutos.codeberg.page/blog/posts/stop-reading-ai-generated-code/
2•ykgoon•37m ago•1 comments

Red heads are linked to a mutation that makes them resistant to anesthesia

https://health.clevelandclinic.org/why-do-redheads-need-more-anesthesia
2•illidan1000•38m ago•1 comments

Europe's satellite factory for the production of IRIS² satellites is now open

https://eu-space.europa.eu/news/europes-largest-satellite-factory-production-iris2-satellites-now...
1•u1hcw9nx•38m ago•0 comments

More agents, fewer blind spots: Inside GitHub Copilot code review

https://github.blog/ai-and-ml/github-copilot/more-agents-fewer-blind-spots-inside-github-copilot-...
1•ComputedCamp995•41m ago•0 comments

Show HN: Business potential in being the necessary middleman

https://davidngo1562.substack.com/p/its-not-about-the-money-until-it-b44
1•illidan1000•41m ago•1 comments

AI helps a robot dog go on a solo hike in the Swiss Alps

https://techxplore.com/news/2026-11-ai-robot-dog-solo-hike.html
1•gmays•43m ago•0 comments

What Happens to Data Analytics After AGI?

https://fsdatalab.github.io/blog/analytics-after-agi/
1•dnw•46m ago•0 comments

The Organizational AI Gap

https://www.oneusefulthing.org/p/the-organizational-ai-gap
2•momentmaker•47m ago•0 comments

Ask HN: What's your favorite sci-fi book about life after the singularity?

1•coreyrab•47m 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?