frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Chess960v2 – Latest benchmark results, first championship launch coming soon

https://chess960v2.com/en
1•lavren1974•34s ago•0 comments

The Emoji Museum

https://emojistime.com/museum
1•kilroy123•48s ago•0 comments

The Last People Before the Internet: Revisiting the AOL Instant Messenger Era

https://kneelingbus.substack.com/p/the-last-people-before-the-internet
1•thinkingemote•1m ago•0 comments

Ask HN: What CSS do I miss in 2025?

1•sawirricardo•2m ago•0 comments

Back Pain (2021)

https://www.thomas-huehn.com/back-pain/
1•Tomte•3m ago•0 comments

Improved My Feedreader's Writing to the Web

https://www.zylstra.org/blog/2025/12/improved-my-feedreaders-writing-to-the-web/
1•todsacerdoti•4m ago•0 comments

Vulkan-based translation layer for Direct3D 7 on Linux, D7VK has a 1.0 release

https://www.gamingonlinux.com/2025/12/vulkan-based-translation-layer-for-direct3d-7-on-linux-d7vk...
1•retro_guy•7m ago•0 comments

Llmedge an on device LLM, vision, and speech inference library for Android

https://github.com/Aatricks/llmedge
1•aatricks•7m ago•1 comments

Show HN: Skyz AI – Host, Deploy and Use MCP Servers with Ease

https://skyz.ai
1•Elemenopi•8m ago•0 comments

Elon Musk just hit Sam Altman with an $800B counterpunch

https://www.businessinsider.com/spacex-valuation-elon-musk-sam-altman-openai-rivalry-2025-12
1•ashishgupta2209•8m ago•0 comments

Florian Cassayre

https://florian.cassayre.me/
1•conferza•9m ago•0 comments

When Marketing Exceeds the Age of the Universe

https://storagemath.com/posts/cloudian-26-nines-absurdity/
1•maxicohen•13m ago•0 comments

The Evolution of Cooperation [pdf]

https://ee.stanford.edu/~hellman/Breakthrough/book/pdfs/axelrod.pdf
1•polivier•13m ago•0 comments

Acme Device Attestation Extension

https://datatracker.ietf.org/doc/draft-ietf-acme-device-attest/
1•todsacerdoti•16m ago•0 comments

Is it time to redraw our maps?

https://www.theguardian.com/books/2025/dec/14/is-it-time-to-redraw-our-maps
1•n1b0m•16m ago•1 comments

Show HN: TheAuditor – I indexed my code into SQLite to stop AI hallucinations

https://github.com/TheAuditorTool/Auditor
2•TheAuditorTool•18m ago•1 comments

Steve Eisman is cautious about LLMs, influenced by Gary Marcus

https://www.youtube.com/watch?v=wSJMtTETOv8
1•jadelcastillo•19m ago•0 comments

The Fatal "Hotwire": Deconstructing Cloudflare's 2025 Architectural Meltdown

https://medium.com/@acmerfight/the-fatal-hotwire-the-architectural-gamble-behind-cloudflares-extr...
2•acmerfight•21m ago•1 comments

Claude in a Game Theory Tournament

https://matthodges.com/posts/2025-12-14-claude-axelrod-prisoners-dilemma/
1•m-hodges•23m ago•0 comments

How Did the CIA Lose a Nuclear Device in the Himalayas?

https://www.nytimes.com/interactive/2025/12/13/world/asia/cia-nuclear-device-himalayas-nanda-devi...
2•Anon84•23m ago•0 comments

Show HN: 999 Penguins

https://999penguins.com
4•learntocode222•24m ago•0 comments

If you truncate a UUID I will truncate your fingers

https://gieseanw.wordpress.com/2025/12/14/if-you-truncate-a-uuid-i-will-truncate-your-fingers/
2•andyg_blog•24m ago•1 comments

Velato Hands-Free: Write JavaScript by Whistling

https://velato.net/HandsFree/
1•xpointer•26m ago•0 comments

Bird Game 3 – Online trend or marketing genius?

2•SergiuNistor•26m ago•2 comments

Show HN: 0xFeed – An AI filter to remove SEO spam and fluff from tech news

https://www.0xfeed.dev/
1•giovanella•27m ago•1 comments

Show HN: I built a tool that converts plain language into AI video prompts

https://www.movyolabs.com
1•Nair0•31m ago•0 comments

Pydantic resolve v2: assemble complex nested data with minimal cost

https://allmonday.github.io/pydantic-resolve/introduction/
1•tank-34•35m ago•0 comments

What would a real Limitless pill do?

https://neuroshift.club/blog/designing-limitless-pill-specification
2•heliosinc•40m ago•0 comments

Apple Maps claims it's 29,905 miles away

https://mathstodon.xyz/@dpiponi/115651419771418748
33•ColinWright•40m ago•14 comments

PageFlow – The ultra-minimalist, native macOS PDF reader

https://pageflow.pinchen.me/
2•pinchen147•40m ago•2 comments
Open in hackernews

Ask HN: How can I load test PostgreSQL but avoid changing actual data?

1•LawZiL•7mo 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•7mo 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•7mo 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•7mo 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•7mo ago
Load test against a clone instead of a DB whose contents you care about?