frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Pine AI getting 75.4% (SoTA) on τ³-Voice Leaderboard

http://taubench.com/leaderboard/
1•danielglh•4m ago•0 comments

Znuny: OTRS OSS

https://www.znuny.org/en
1•sts153•7m ago•1 comments

Show HN: Ideal Weight, BMI and Body Fat Calculator Tool

https://www.globaltoolsbox.online/2026/08/ideal-weight-calculator-bmi-body-fat.html
1•solangiwaqas•7m ago•0 comments

Structural Predictions for the AI Era

https://www.newnex.io/news/12-structural-predictions-for-the-ai-era-ai-object-framework-aof
1•afr99•7m ago•1 comments

Show HN: Fail CI when your stack runs end-of-life software

https://github.com/endoflife-ai/eol-check
2•ScottUbiquitous•9m ago•0 comments

Risk Engineering

https://risk-engineering.org/
1•throwaw12•9m ago•0 comments

Whoop replacement noop 10.5 released

https://github.com/ryanbr/noop
1•mp3geek•12m ago•0 comments

Why AGI Is Impossible

https://substack.com/@vinialva/note/c-312693792
3•vinialva•12m ago•0 comments

The stories of the international soldiers who serve in Ukraine

https://www.youtube.com/@ILDUkraine
1•Erikun•12m ago•0 comments

Watch Directory

https://fewer.directory/
1•scholaronroad•14m ago•0 comments

Comments that go into code vs. those that go into the pull request description

https://devblogs.microsoft.com/oldnewthing/20260812-00/?p=112607
1•csmantle•14m ago•0 comments

Show HN: Kanna – Go generators for DI, queries, internationalization and more

https://github.com/go-kanna/kanna
1•mickamy•15m ago•0 comments

NextJS Mailtrap SaaS Starter

https://github.com/mailtrap/nextjs-saas-starter
2•aliobm•17m ago•0 comments

Splunk patches 9.1 CVSS RCE in MCP Server and 9 flaws in AI Toolkit

https://cyberupdates365.com/splunk-mcp-server-rce-patch/
1•udayhero•17m ago•0 comments

AliExpress runs silent WebAudio fingerprinting that breaks Bluetooth multipoint

https://blog.laserphile.com/2026/08/aliexpress-webpage-keeping-multipoint.html
4•emctech•19m ago•3 comments

Fancy Filtering Examples

https://trac.ffmpeg.org/wiki/FancyFilteringExamples
1•1317•20m ago•0 comments

Mastodon 5.0: Laying the Foundation

https://blog.joinmastodon.org/2026/08/5.0-laying-the-foundation/
2•birdculture•20m ago•0 comments

The Generative AI Learning Penalty: Evidence from Chinese Secondary Education

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6868618
2•_____k•21m ago•0 comments

Warren Buffett on the stock market (1999) [pdf]

https://www.berkshirehathaway.com/1999ar/FortuneMagazine.pdf
2•rzk•22m ago•0 comments

India Country Brief: The Anthropic Economic Index

https://www.anthropic.com/research/india-brief-economic-index
1•ms7892•24m ago•0 comments

Climate change is cooking Europe's oceans, scientists find

https://www.politico.eu/article/climate-change-is-cooking-europes-oceans-world-weather-attributio...
2•robtherobber•25m ago•0 comments

XLibre- community-managed display server for the X11

https://xlibre.net/
3•nalinidash•25m ago•0 comments

Show HN: A Dynamic video creator for free

https://video.samriddhi.shop/
1•suniljaindvg•25m ago•0 comments

A library to make GNN work on binary code

https://blog.quarkslab.com/from-p-code-to-gnn-extract-binary-code-semantics.html
1•shangoue•29m ago•0 comments

The Pinecone DAISY-1 is a fantasy 8-bit computer that exists in reality

https://blog.arduino.cc/2026/06/02/the-pinecone-daisy-1-is-a-fantasy-8-bit-computer-that-exists-i...
3•PPBear•32m ago•0 comments

Junghans Force Mega Solar

https://junghans-shop.com
1•tellwilhelm•32m ago•0 comments

AI is entertainment's scarlet letter

https://www.axios.com/2026/08/08/generative-ai-accusations-hank-green-jerry-falade
3•feraloink•35m ago•1 comments

GeoLibre: An open-source GIS that runs in the browser

https://github.com/opengeos/GeoLibre
1•Nina_antalpha•37m ago•0 comments

From "default dead" to living the future of cancer care

https://cancerletter.com/guest-editorial/20260814_2/
1•tchalla•37m ago•0 comments

Made the best alarm clock for myself

https://endothermalsystems.com/work/cinderclock.html
2•Aknazar•39m 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?