frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Azure showed $21k in startup credits. Claude in Foundry billed our card $17k

https://vegalabs.no/azure-claude-billing.html
1•knutsolini•1m ago•0 comments

Tickler: Reminders that Claude Code writes and resumes

https://github.com/PixiBixi/tickler
1•PixiBixi•4m ago•0 comments

Rust for CPython (Python Language Summit 2026) – Python Insider

https://blog.python.org/2026/09/language-summit-2026-rust-for-cpython/
1•rbanffy•6m ago•0 comments

Quad9 Rejects French Piracy Blocks, Weighs Exit as BeIN Seeks Up to €580K a Day

https://torrentfreak.com/dns-resolver-quad9-rejects-french-piracy-blocks-weighs-exit-as-bein-seek...
1•rzk•6m ago•0 comments

Girl, 12, fatally shot in US during 'dispute over parking space'

https://www.bbc.com/news/articles/cwr5y48p89vvo
5•e2e4•8m ago•1 comments

CFO survey: finance teams spend 26% of their workday verifying AI output

https://www.datarails.com/research/2026-cfo-sentiments/
1•theofficecfo•10m ago•0 comments

Linux Plumbers Conference Timetable

https://lpc.events/event/20/timetable/
1•rwmj•12m ago•0 comments

Treat Message Boards Like Graveyards

https://magzimof.com/treat-message-boards-like-graveyards/
1•shaimagz•14m ago•0 comments

Study: Bionic Reading method doesn’t improve reading speed or comprehension

https://phys.org/news/2026-09-bionic-faster-scientists.html
1•giuliomagnifico•15m ago•0 comments

Free Messaging App

https://www.davidayo.com/blog/best-android-text-messaging-app/
1•davidayo•17m ago•0 comments

Spicycrab (Python Language Summit 2026) – Python Insider

https://blog.python.org/2026/09/language-summit-2026-spicycrab/
1•rbanffy•18m ago•0 comments

Show HN: I measured the MCP registry nightly for 37 days

https://github.com/yassinht/mcp-transparency-log
2•yassinht•21m ago•0 comments

Apex Compute Developing Open-Source Mesa Vulkan Driver for Their Hardware

https://www.phoronix.com/news/Apex-Compute-Mesa-Vulkan
1•gdrift•22m ago•0 comments

Show HN: Word Legion: Clash Royale-like where any spellable word becomes a troop

https://wordlegion.bonnaf.com/?lang=en&src=hn
1•bonnaf•23m ago•0 comments

Generate Fire Rap Songs and Beats with AI in Seconds

https://www.airap.net/
1•wsm123456•23m ago•0 comments

2026 Nobel Prize in Physiology or Medicine: Deisseroth, Hegemann, Nagel

https://www.nobelprize.org/prizes/medicine/2026/summary/
7•lode•25m ago•2 comments

AI Agents Are Disrupting Open Source Security Disclosure

https://www.infoq.com/news/2026/10/open-source-ai-security/
1•amouat•27m ago•0 comments

Building Maintainable PHP Applications: Foundations

https://codyssey.dev/courses/building-maintainable-php-applications-foundations
1•davorminchorov•28m ago•1 comments

For MACAN(95C) carbon fiber appearance accessories

https://www.porsche-km.com/newsinfo/11274247.html
1•edl8888•28m ago•0 comments

FreshLimePay: Earn more than Gumroad, Payhip and Lemon Squeezy with 3.9% fee

https://cloud.freshlimepay.com/?lang=en
2•jimmy_lee•30m ago•0 comments

Azure's Weakest Link – Five Full Cross-Tenant Compromises

https://binsec.no/posts/2026/10/one-root-case
1•chillax•34m ago•0 comments

GPU view-adaptive crack-free subdivision of Bézier surfaces

https://gpuopen.com/learn/gpu-view-adaptive-subdivision/
1•yayo1•34m ago•0 comments

Show HN: Agnochat ppure client-side LLM chat, no server, no account

https://gmaterni.github.io/agnochat/
1•gmaterni•36m ago•0 comments

Study: Path discovered to make AI models red-flag their doubtful answers

https://news.ucr.edu/articles/2026/09/23/making-ai-more-trustworthy
1•giuliomagnifico•36m ago•0 comments

Danish population register hacked, data of people stolen

https://www.rtl.nl/nieuws/buitenland/artikel/5657172/bevolkingsregister-denemarken-gehackt-miljoe...
2•porridgeraisin•40m ago•0 comments

İstanbul – Kars Evden Eve Nakliyat

https://www.istanbulnakliyat.gt.tc/istanbul-kars-evden-eve-nakliyat/
2•kasimoglu•41m ago•0 comments

US removes all bombers from RAF Fairford base

https://www.bbc.com/news/articles/cmwyve191dlko
5•mariuz•42m ago•2 comments

Hacking the Go compiler to efficiently map IPv4 to IPv6

https://vincent.bernat.ch/en/blog/2026-go-netip-addrto6
2•signa11•44m ago•0 comments

Is there a discrete-to-continuous bridge ...

https://mathoverflow.net/questions/515733/is-there-a-discrete-to-continuous-bridge-between-the-sq...
3•jjgreen•46m ago•1 comments

DeepSeek Tried to Paint–and Hit a Wall

https://www.stork.ai/blog/deepseek-tried-to-paintand-hit-a-wall
3•GloVin•48m 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?