frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Stop Multitasking at Work: Better Productivity Methods

https://burkerecruiting.com/stop-multitasking-at-work-better-productivity-methods/
1•takenotes•56s ago•0 comments

PromptForge: A visual prompt management system for AI image generation

https://github.com/intelligencedev/PromptForge
1•doener•2m ago•0 comments

My new fave thing to go to is algoraves

https://interconnected.org/home/2025/12/11/live
1•ingve•2m ago•0 comments

Foundations: My 1999 (and Part of 2000)

https://michaeljburry.substack.com/p/foundations-my-1999-and-part-of-2000
1•lawrenceyan•6m ago•0 comments

My Code Editor

https://www.mariasolos.com/posts/my-code-editor/
1•jesperlang•6m ago•0 comments

Show HN: Gotui – a modern Go terminal dashboard library

https://github.com/metaspartan/gotui
2•carsenk•7m ago•0 comments

Hundreds quarantined as measles outbreak accelerates in the South

https://www.dailymail.co.uk/health/article-15375729/Hundreds-quarantined-measles-outbreak-acceler...
3•Bender•7m ago•0 comments

Hundreds Quarantined in South Carolina as Measles Spreads

https://www.nytimes.com/2025/12/11/well/measles-cases-outbreak-south-carolina.html
1•measurablefunc•7m ago•0 comments

Compound Engineering: How Every Codes with Agents

https://every.to/chain-of-thought/compound-engineering-how-every-codes-with-agents
1•mooreds•8m ago•0 comments

Microsoft Patches 57 Vulnerabilities, Three Zero-Days

https://www.securityweek.com/microsoft-patches-57-vulnerabilities-three-zero-days/
1•Bender•8m ago•0 comments

Show HN: XeraSentry – Real-time Ethereum security monitoring in Python

1•Chu_Wong•9m ago•0 comments

Gogs Git service zero-day exploited since Dec. 1

https://www.scworld.com/news/gogs-git-service-exploited-since-dec-1
1•Bender•9m ago•0 comments

OWASP PTK 9.3.0 with Support

1•DenisPodgurskii•9m ago•0 comments

Malicious VSCode Marketplace extensions hid trojan in fake PNG file

https://www.bleepingcomputer.com/news/security/malicious-vscode-marketplace-extensions-hid-trojan...
3•speckx•13m ago•0 comments

Higher Ed's Dirtiest Secret

https://hollisrobbinsanecdotal.substack.com/p/teaching-quality
1•HR01•14m ago•1 comments

AI defense booms in UK and Germany as new wave of billion-dollar startups emerge

https://www.cnbc.com/2025/12/11/ai-defense-boom-in-uk-and-germany-as-new-wave-of-companies-emerge...
4•1659447091•15m ago•0 comments

Show HN: XeraSentry – Real-time Ethereum security monitoring in Python

https://lavender-clarette-17.tiiny.site
1•Chu_Wong•15m ago•0 comments

Globalfoundries receives 495M euros for foundry expansion

https://www.heise.de/en/news/Globalfoundries-receives-495-million-euros-for-foundry-expansion-111...
1•i-con•15m ago•0 comments

Zotero: Retracted item notifications with Retraction Watch integration

https://www.zotero.org/blog/retracted-item-notifications/
2•vogu66•16m ago•0 comments

Crypto mogul Do Kwon set for sentencing as victims tell of $40B stablecoin crash

https://apnews.com/article/do-kwon-terraform-court-montenegro-crypto-king-0df8b30b5f3cff2954f0a08...
2•rawgabbit•16m ago•1 comments

Dexter: An autonomous agent for deep financial research

https://github.com/virattt/dexter
1•birriel•17m ago•0 comments

Show HN: Amplift – AI agent for influencer marketing, GEO, and social listening

https://amplift.ai/
1•dora_wu•19m ago•0 comments

Show HN: Chrome Ext. for downloading HTTP responses for mocking APIs

https://mockaton.com/scraping
1•efortis•24m ago•0 comments

pg_clickhouse – PostgreSQL extension to run your analytics queries on ClickHouse

https://clickhouse.com/blog/introducing-pg_clickhouse
2•samaysharma•25m ago•0 comments

Denial of service and source code exposure in React Server Components

https://react.dev/blog/2025/12/11/denial-of-service-and-source-code-exposure-in-react-server-comp...
19•sangeeth96•26m ago•1 comments

Show HN: Flywheel Feedback – Free feedback for projects that get 0 comments

https://www.flywheelfeedback.com/
1•chux52•26m ago•0 comments

UC Berkeley professor used secret camera to catch PhD student sabotaging rival

https://www.msn.com/en-us/news/other/uc-berkeley-phd-student-facing-felony-charges-over-46k-in-in...
3•ilamont•26m ago•1 comments

Google faces EU antitrust investigation over AI Overviews, YouTube

https://uk.news.yahoo.com/eu-launches-antitrust-probe-googles-081212770.html
2•gmays•26m ago•0 comments

My Favorite Principle

https://codestyleandtaste.com/my-favorite-principle.html
1•thunderbong•27m ago•0 comments

Ford's Car of the Future, Hatched in a Skunk Works Near Los Angeles

https://www.nytimes.com/2025/12/11/business/ford-electric-vehicles-china.html
1•cgoodmac•29m ago•0 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?