frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

I Got Postgres into a Single Binary

https://progrium.xyz/articles/2026/single-binary-postgres/
1•birdculture•38s ago•0 comments

MountainGraph: Profiling data drawn as 3D landscapes

https://github.com/pcdv/mountain-graph
1•pacoverdi•1m ago•0 comments

Strongly Typed Variadic Functions in TypeScript

https://tgrecojs.com/posts/variadic-functions-in-typescript
1•tgrecojs•3m ago•0 comments

Predicting LoRA size for any dataset

https://engram.com/blog/lora-size
1•jxmorris12•4m ago•0 comments

IncludeOS: A minimal, resource efficient unikernel for cloud services

https://github.com/includeos/IncludeOS
1•turrini•4m ago•0 comments

EU capping imports of Chinese hybrids

https://www.theguardian.com/business/2026/nov/24/eu-cap-chinese-hybrid-ev-imports-tariff-uk
1•newAccount2025•6m ago•0 comments

Specialized brain cells help wasps recognize other wasp faces

https://news.wfu.edu/2026/11/23/specialized-brain-cells-help-wasps-recognize-other-wasp-faces/
1•gmays•6m ago•0 comments

AI is moving way too fast (Nate Silver)

https://www.natesilver.net/p/ai-is-moving-way-too-fast
1•abnry•6m ago•0 comments

A Year of Agentic Coding

https://inmve.github.io/agentic-coding-practices/
1•codeclimber•9m ago•0 comments

Meaningful Human-in-the-Loop GenAI Synthesis Checking for Restricted Languages

http://muratbuffalo.blogspot.com/2026/11/meaningful-human-in-loop-checking-of.html
1•matt_d•10m ago•0 comments

Anthropic CEO Dario Amodei and Sister Daniela Sold $561M in Stock During IPO

https://www.forbes.com/sites/siladityaray/2026/11/24/anthropic-ceo-dario-amodei-sold-280-million-...
3•Betelbuddy•11m ago•0 comments

Scan your social media data export for risky old posts, in the browser

https://chromewebstore.google.com/detail/easy-old-posts-checker-–/hfojhgibcgdcffcbimonoaobmaefggkf
1•easybulkclean•11m ago•0 comments

Fable 5.2 Tries Less on Some Hard Tasks When a Shortcut Is Available

https://goodhartlabs.com/blog/fable-5-2-tries-less-on-some-hard-tasks-when-a-shortcut-is-available
2•atlun•11m ago•1 comments

US Justice Dept announces 800 arrests of scammers in crackdown

https://www.upi.com/Top_News/US/2026/11/24/-justice-department-scammers-crackdown/8201795549582/
1•nephihaha•12m ago•0 comments

Incremental rust builds up to 92x faster

https://github.com/indexable-inc/blaze
1•alex_hirner•13m ago•0 comments

Things inspiring us to push the edges of our craft

https://edges.ideo.com/posts/25-things-inspiring-us-to-push-the-edges-of-our-craft
1•ioanarebeca•13m ago•1 comments

Building for Privacy: Securing the Mobile Network with Cape

https://buildexante.substack.com/p/building-for-privacy-securing-the
1•tony101•13m ago•0 comments

Unreal Engine 6 removes Blueprints and we're doing the exact opposite

https://luna-park.app/blog/unreal-engine-6-removes-blueprints
1•Herobrine2084•16m ago•1 comments

Dell's AI server backlog hits $132.3B as AI orders reach $60.2B

https://investors.delltechnologies.com/news-events/press-releases/detail/1665/dell-technologies-d...
1•dvaplima•16m ago•0 comments

Mirror Dimension for Agents: Evaluating Browser-Use Agents Without the Web

https://blog.google/security/mirror-dimension-for-agents/
1•gaws•16m ago•0 comments

Insulation: First the Body, Then the Home (2011)

https://solar.lowtechmagazine.com/2011/02/insulation-first-the-body-then-the-home
1•FigurativeVoid•18m ago•1 comments

Show HN: Zarvie AI OS. Guess built in which language?

https://www.youtube.com/watch?v=bw2OfNMevII
1•n10l•23m ago•0 comments

Show HN: Hands on tutorial for open source contribution

https://github.com/firstcontributions/first-contributions
1•edwardktwumasi•24m ago•0 comments

Show HN: CheckMyApp – checks your live app with each deploy from coding agent

https://checkmyapp.dev
3•sorokinvj•24m ago•1 comments

A nice, orderly Festival of Drunkenness

https://news.harvard.edu/gazette/story/2026/11/a-nice-orderly-festival-of-drunkenness/
1•gnabgib•26m ago•0 comments

Addy Osmani from Anthropic: A practical guide to shipping with Claude Code

https://claude.dev/blog/the-work-after-you-open-a-pr/
2•tdalexey•28m ago•1 comments

Dimensional – Load testing for AI features that measures answer quality

https://www.usedimensional.com
2•adityasharmabhw•30m ago•0 comments

Show HN: Docxtract – Turn docs into clean LLM context and study guides

https://github.com/raycollabs/docxtract
1•xeditai•30m ago•0 comments

European Commission confirms personal data stolen in AI-assisted cyberattack

https://www.theregister.com/cyber-crime/2026/11/24/european-commission-confirms-personal-data-sto...
3•Betelbuddy•30m ago•1 comments

Show HN: Phials – A file manager for knowledge work and productivity

https://phials.phoundry.app/
1•mrtrunks•30m 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?