frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: OnClip – a Mac clipboard manager that never keeps API keys readable

https://useonclip.app/
1•shadowmodder•3m ago•0 comments

Pliny the Younger Advances Geochronology

https://www.science.org/doi/10.1126/sciadv.aeg2624
1•bryanrasmussen•7m ago•0 comments

26-year-old Google worker earns $323,000 a year, lives on less than minimum wage

https://www.cnbc.com/make-it/2026/11/22/google-worker-earns-323000-a-yearbut-he-lives-on-minimum-...
2•rwmj•10m ago•1 comments

Conservative PP wins Spanish election

https://english.elpais.com/spain/2026-11-29/exit-poll-projects-right-wing-majority-in-spain-elect...
1•Betelbuddy•10m ago•0 comments

Run DeepSeek v4.1 1017 Flash(2-bit) on a single 80GB VRAM GPU at 100 tok/s

https://github.com/Tensward/tensward/tree/main/examples/deepseek-v4.1-flash-h100
1•adishikss•13m ago•2 comments

SUB/WAVE – The radio station with a DJ who never sleeps

https://www.getsubwave.com
1•epaga•16m ago•0 comments

3 months after Nepal's deadly floods, child trafficking is rising

https://www.abc.net.au/news/2026-11-30/nepal-floods-lead-to-child-trafficking-fears/107431930
2•Gaishan•17m ago•0 comments

Microsoft Outlook/Exchange MS-TNEF Handling, a.k.a. "Winmail.dat" Attachment

https://dwheeler.com/essays/microsoft-outlook-tnef.html
1•epakai•18m ago•0 comments

Nuul – self-hosted personal knowledge base with an auto-built graph

https://github.com/scopalaffairs/nuul
1•scopalaffairs•18m ago•0 comments

New Chat-GPT AI FLEY Cool AI Web Free Groq API

https://fleyaiweb.netlify.app
1•GIRLBOY•19m ago•0 comments

Adbc_scanner: Parallel ADBC Scans in DuckDB

https://query.farm/blog/automatic-parallel-adbc-scans/
1•rustyconover•19m ago•0 comments

Aisin chip embeds AI weights and OS in integrated memory

https://www.gumtree.com/news/cars/aisin-chip-embeds-ai-weights-os-integrated-memory
1•mpweiher•21m ago•0 comments

Google asks what users will build with Neon 4

https://twitter.com/GoogleAIStudio/status/2127068635894030460
2•justhw•23m ago•2 comments

TCP/IP over the Air with LinHT

https://m17project.org/2026/11/27/tcp-ip-over-the-air-with-linht/
2•weinzierl•23m ago•0 comments

Ask HN: If 2048-bit RSA were cracked, what would be the consequences?

2•partsch•24m ago•3 comments

Ask HN: What's on Your Christmas List?

1•benrr•24m ago•1 comments

ICE Is Spiking Its Use of Flock Cameras to Apprehend Immigrants

https://futurism.com/future-society/ice-immigration-enforcement-flock-alpr-surveillance-cops
6•pseudolus•25m ago•0 comments

Partial result on the Noita eye message

https://www.reddit.com/r/noita/comments/1y8q55p/partial_result_on_the_eye_message/
2•fireflysentinel•27m ago•0 comments

Patch Guesser: Hear a synth sound, then rebuild it knob by knob

https://eski.lol/patch-guesser/
2•Buttons840•27m ago•0 comments

The Future / End of Software

https://abunner.substack.com/p/the-future-end-of-software-abunner
3•abunner•28m ago•0 comments

A Portable Private Personal AI by Rust

https://github.com/PooyaEimandar/PR3
1•pooyaeimandar•30m ago•0 comments

Security Monitoring and "Expertise"

1•bdwilnalex•30m ago•0 comments

Open Src Debugger for Agents

https://github.com/Maas-Dorian/traser-sdk
2•Tussa_Domingos•30m ago•0 comments

ACP for Apple Foundation Models

https://github.com/willswire/fm-acp/tree/main
1•willswire•31m ago•0 comments

Has AI just cracked Internet encryption? Rumoured 'bombshell' stuns scientists

https://www.nature.com/articles/d41586-026-03875-6
1•doener•31m ago•0 comments

Behind Every Number Is a Person

https://newsletter.platypuseconomics.com/p/behind-every-number-is-a-person
2•mooreds•32m ago•0 comments

Snow White Happy Pi

https://github.com/wottle/snow-white-happy-pi
2•TheWoollyBully•33m ago•0 comments

Why traditional career advice is failing Gen Z

https://economist.com/culture/2026/07/23/why-traditional-career-advice-is-failing-gen-z
1•andsoitis•35m ago•0 comments

Why Is Tech Billionaire Marc Andreessen So Mad?

https://www.bloomberg.com/news/features/2026-10-15/how-ai-crypto-and-dei-drove-marc-andreessen-to...
6•jiveturkey•39m ago•3 comments

Bokeh

https://en.wikipedia.org/wiki/Bokeh
1•enjoyyourlife•42m 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?