frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

A Native American Proposal: De-Europeanizing Liberalism [pdf]

https://isonomiaquarterly.com/wp-content/uploads/2026/06/iq-4.2-summer-2026-morgan-native-america...
1•brandonlc•1m ago•0 comments

Games Made with Gen AI Suffer Up to 53% Worse Sales on Steam

https://www.techpowerup.com/350230/games-made-with-gen-ai-suffer-up-to-53-worse-sales-on-steam
1•bit_economist•2m ago•0 comments

GLM-5.2 vs. Claude Opus: Same Code, Less Than Half the Cost

https://entelligence.ai/blogs/glm-5-2-vs-claude-opus-coding-benchmark
1•Entelligence25•7m ago•0 comments

Show HN: My agents run on a mesh of old phones and argue over each other's work

https://github.com/genaforvena/lte-workstation
1•genaforvena•7m ago•0 comments

Developers are now validating code they didn't write – and may not understand

https://thenewstack.io/gitlab-ai-code-governance/
1•Brajeshwar•8m ago•1 comments

We built secure automated learning loops in Modal and Claude Code

https://twitter.com/oliviersm199/status/2069790892530016547
1•theo31•9m ago•0 comments

LineShine Debuts at No. 1 as the TOP500 Enters a New Global Exascale Era

https://top500.org/news/lineshine-debuts-no-1-top500-enters-new-global-exascale-era/
2•skeledrew•9m ago•0 comments

Beekeeper, threat intelligence for autonomous coding agents

https://beekeeper.vercel.app/
1•Bantuson•9m ago•0 comments

Quebec town recognizes trees as living beings with rights

https://www.cbc.ca/news/canada/montreal/terrasse-vaudreil-quebec-tree-rights-9.7243634
3•speckx•10m ago•0 comments

Boffin claims Microsoft's "quantum leap" is invalid due to "basic Python errors"

https://www.theregister.com/research/2026/06/24/boffin-claims-microsofts-supposed-quantum-leap-do...
5•connorboyle•10m ago•0 comments

Technical Setup Guide for Shopify Agentic Storefronts (Geo)

https://stackarchitect.xyz/blog/shopify-agentic-storefronts-setup-guide-2026/
1•StackArchitect•11m ago•0 comments

Still have spare tokens? Use /autoresearch

https://elazzabi.com/2026/06/24/still-have-spare-tokens-use-autoresearch/
1•elazzabi_•11m ago•0 comments

Travellers in a Foreign Land

https://rubenflamshepherd.com/articles/2026-06-22-travelers-in-a-foreign-land
1•rubenflamshep•11m ago•0 comments

Air conditioning creates political divide after France records hottest day

https://www.bbc.com/news/articles/c4gyqldl3p5o
2•JumpCrisscross•13m ago•1 comments

DARPA's New X-Plane Aims to Maneuver with Nothing but Bursts of Air

https://www.twz.com/darpas-new-x-plane-aims-to-maneuver-with-nothing-but-bursts-of-air
2•amichail•13m ago•0 comments

The "Super Weight:" How a Single Param Can Determine an LLM's Behavior (2025)

https://machinelearning.apple.com/research/the-super-weight
1•sarreph•13m ago•0 comments

Reinventing the Wheel, Now at a Bargain Price

https://zwischenzugs.com/2026/06/24/reinventing-the-wheel-now-at-a-bargain-price/
1•zwischenzug•14m ago•0 comments

Show HN: Pitchly Hire – human-reviewed job listings with forced expiry

https://pitchlyhire.com/
1•Hypathia•15m ago•0 comments

Snyk announces layoffs, blames AI

https://snyk.io/blog/a-note-to-our-customers-and-partners/
5•cdrnsf•17m ago•2 comments

Show HN: Getting my YC application to apply itself

3•keepamovin•17m ago•0 comments

Kubeflow Audit Complete

https://ostif.org/kubeflow-audit-complete/
3•helenOSTIF•17m ago•0 comments

Show HN: Find vintage corporate merch from iconic companies

https://ilovecapitalism.shop/
1•rmcentush•18m ago•1 comments

Journalism is rearranging the deckchairs. It needs to reinvent itself

https://werd.io/journalism-is-rearranging-the-deckchairs-it-needs-to-reinvent-itself/
2•benwerd•19m ago•0 comments

Dancing Plague of 1518

https://en.wikipedia.org/wiki/Dancing_plague_of_1518
1•grubbs•20m ago•0 comments

The Little Things in Life

https://yelluwcomedy.substack.com/p/the-little-things-in-life
1•pryelluw•20m ago•0 comments

Generate filtered RSS feeds based on your own filter criteria

https://codeberg.org/ifin/rss-filter
1•speckx•21m ago•0 comments

The eerie interface of man and machine (Life Magazine, October 1967)

https://blog.jgc.org/2026/06/the-eerie-interface-of-man-and-machine.html
2•Brajeshwar•22m ago•0 comments

SK Hynix targets $29B US listing as AI demand surges

https://www.reuters.com/world/asia-pacific/south-koreas-sk-hynix-says-raise-29-bln-us-adr-listing...
1•JumpCrisscross•22m ago•0 comments

OpenArt Director: Claude Code for video production – vibe direct your videos

https://openart.ai/director
2•cocokechun•22m ago•2 comments

2.7 Fexpr vs. Vtable

https://github.com/naver/lispe/wiki/2.7-FEXPR-vs.-vtable
1•mpweiher•22m 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?