frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

1•sahinyanlik•32s ago

Claude's AI Starts Refusing to Assist with Pokémon ROM Hack and Fan-Game Dev

https://retrododo.com/claudes-ai-starts-refusing-to-assist-with-pokemon-rom-hack-fan-game-develop...
1•vrganj•1m ago•0 comments

We Tore Down the MacBook Proled XDR and Found the Secret of the Glowing Apple

https://www.ifixit.com/News/120152/we-tore-down-the-macbook-proled-xdr-and-found-the-secret-of-th...
1•kjhughes•2m ago•0 comments

Show HN: Lexfall, advanced English vocabulary with 20k graded words

https://lexfall.app/word-lists
1•gcpeysack•2m ago•0 comments

Show HN: Perch by mxRaven, a self-hosted mailbox and CLI in 1 file

https://perch.mxraven.com
1•ku5h•3m ago•0 comments

Phishing at the Front Desk: Usable Security in Luxury Hotels

https://www.benthamsgaze.org/2026/11/11/phishing-at-the-front-desk-usable-security-in-luxury-hotels/
1•sjm217•5m ago•0 comments

An iPad Mini in Your Pocket

https://joshstrange.com/2026/11/11/an-ipad-mini-in-your-pocket/
2•joshstrange•6m ago•0 comments

Common Lisp with Pixi: SBCL and libraries as cross-platform conda packages

https://prefix.dev/blog/common-lisp-with-pixi
3•droelf•7m ago•0 comments

Malware found disguised as 3rd party Plasma Extension

https://blog.davidedmundson.co.uk/blog/malware-found-disguised-as-3rd-party-plasma-extension-neon...
1•HieronymusBosch•7m ago•0 comments

Show HN: MCP Ranking by Risk

https://index.getdurin.com/
1•shotgunsparkle•8m ago•0 comments

Show HN: What AI labs actually pay for data

https://blobcap.com
1•alexellman•8m ago•0 comments

US poised to lose measles elimination status

https://www.cidrap.umn.edu/measles/us-poised-lose-measles-elimination-status-what-does-mean
4•geox•8m ago•1 comments

Aulico: Figma for Investing

https://www.aulico.com/tradespaces/new
1•rendernos•8m ago•0 comments

Three men charged in US with using AI to impersonate CEOs and steal millions

https://www.theguardian.com/us-news/2026/nov/06/ai-ceo-impersonation-theft
3•speckx•9m ago•1 comments

Follow the Money Patterns

https://ianmiell.com/follow-the-money-patterns/
1•zwischenzug•9m ago•1 comments

Ubuntu Major Outage

https://status.canonical.com/#/
5•conannn•9m ago•1 comments

EU will ban cash payments over €10k starting July 2027

https://www.tradingview.com/news/cryptobriefing:2dd2948a9094b:0-eu-will-ban-cash-payments-over-10...
4•baal80spam•10m ago•1 comments

Show HN: Find relevant signals on X for your company

https://www.tweexai.com
1•2veel•11m ago•0 comments

Odin lang October 2026 Newsletter

https://odin-lang.org/news/newsletter-2026-10/
1•ksec•11m ago•0 comments

Cold-Jury – Cross-CLI zero-context hostile code review (Node 20, 0 deps)

https://github.com/Dimoncelli/cold-jury
1•dimoncelli•12m ago•0 comments

Driving ArtCraft's creative engines from TypeScript

https://github.com/edgarmilvus/artcraft-book
1•edgarmilvus•12m ago•1 comments

Chick-fil-A provides observability for 2,800 K8s clusters

https://medium.com/chick-fil-atech/observability-at-the-edge-b2385065ab6e
1•emilburzo•12m ago•0 comments

Outlook AS9031519: What Rejected Mail Without a DMARC Record, Nov 5-9, 2026

https://dmarcguard.io/blog/outlook-as9031519-dmarc-bounce/
1•meysamazad•12m ago•0 comments

Reddit resisted giving users' data to government over critical ICE posts

https://this.weekinsecurity.com/reddit-resisted-giving-users-personal-data-to-the-us-government-a...
2•moooooky•13m ago•1 comments

Escape from New York

https://madelinepritchard.com/writing/2026-11-10-escapenewyork/
1•meysamazad•13m ago•0 comments

SSHing to My ReMarkable from Anywhere

https://blog.danieljanus.pl/connecting-to-remarkable/
1•meysamazad•14m ago•0 comments

Nitrogen and carbon isotopic measurements of β-alanine in asteroid Bennu

https://www.nature.com/articles/s43247-026-04084-9
1•PaulHoule•15m ago•0 comments

The biggest AI cost reduction measure today is a cloud provider discount, lol

https://one2n.io/blog/ai-inference-costs
1•srivatsa_rv•15m ago•0 comments

Show HN: LibrePass – eSIM data and phone numbers for people who work and travel

https://librepass.co/
1•mcb_software•16m ago•0 comments

One Underflow from Godmode

https://tyma.com/one-underflow-from-godmode/
1•zinxq•16m 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?