frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Semantica, the Open Source Palantir for AI Agents

https://github.com/semantica-agi/semantica
1•jinqueeny•1m ago•0 comments

Show HN: FerrumPix Photo/RAW-Editor, Viewer, Gallery, Immich & Nextcloud Client

https://github.com/Bitpainter75/FerrumPix
1•Bitpainter•7m ago•0 comments

Show HN: Overcoming silicon-level aging through fault tolerance (PoC)

https://github.com/PJHkorea/adiabatic-silicon-aging-guard
1•PJHkorea•8m ago•0 comments

Show HN: A new way to read books, magnifying in and out

https://book.curiora.space/
1•pentagram•8m ago•0 comments

PINE64 halts their open-source hardware manufacturing until the AI bubble bursts

https://www.hackster.io/news/pine64-calls-time-on-the-linux-hardware-market-ceases-production-unt...
1•taxmeifyoucan•10m ago•1 comments

China Saved the Global Oil Market

https://www.commoditycontext.com/p/public-how-china-saved-the-global-oil-market
2•mooreds•10m ago•0 comments

Everyone's Using This A.I. Dictation App That I Want to Murder with a Hammer

https://www.nytimes.com/2026/08/19/magazine/ai-dictation-app-wispr.html
3•appleappleapple•12m ago•0 comments

Show HN: Bests and Worsts Reviews from Amazon

https://bestsandworsts.greg.technology/review/213786376627934
1•gregsadetsky•13m ago•0 comments

Show HN: A free accessibility scanner that says what it can't check

https://a11yscan.win
1•jrichard2026•13m ago•0 comments

Two Memory Management Optimizations Going into Linux 7.3

https://www.phoronix.com/news/Linux-7.3-MM
1•Bender•15m ago•0 comments

Corsair Cove

https://store.steampowered.com/app/1368140/Corsair_Cove/
1•doener•16m ago•0 comments

Japan to require AI firms to disclose training data

https://www.japantimes.co.jp/news/2026/08/19/japan/ai-training-data-disclosure/
2•anigbrowl•17m ago•1 comments

Two hours from idea to a live URL

https://dev.profullstack.com/~anthony/blog/024-post.html
2•buffer_overlord•20m ago•0 comments

Orion: The open-source agentic BI platform

https://orion-agent.ai
2•nicolasakf•20m ago•0 comments

Flight attendants and pilots have highest risk of dying from radiation cancers

https://www.cbc.ca/news/health/flight-crews-cancer-risk-9.7311245
1•throw0101d•20m ago•0 comments

Collaborative Human Agent Protocol (CHAP)

https://github.com/BrightbeamAI/chap
4•arsalanshahid•21m ago•0 comments

Open-fx: forked fx to run on subs

2•t0dorakis•22m ago•0 comments

Claude Opus 4.6: 900/900 zero-byte executions under a frozen protocol

https://zenodo.org/records/21696066
2•rayanpal_•23m ago•0 comments

Composing CRDTs Convergent by Construction

https://2026.splashcon.org/details/oopsla-2026/104/Composing-CRDTs-Convergent-by-Construction
2•matt_d•24m ago•0 comments

Plain Text Accounting Is Pretty Cool

https://sumnerevans.com/posts/money/plain-text-accounting/
1•birdculture•26m ago•0 comments

Node.js AI use policy and guidelines

https://github.com/nodejs/node/blob/main/doc/contributing/ai-guidelines.md
2•thesdev•27m ago•0 comments

Ask HN: We have company runway but not founder time. When do you go full-time?

3•throwaway604yvr•29m ago•0 comments

When William Schneiderman and California Communists Defeated the Smith Act

https://greysidewalk.substack.com/p/when-william-schneiderman-and-california
2•GreySidewalk•30m ago•0 comments

Reclaim the Terminal

https://nishantjosh.dev/blogs/reclaim-the-terminal/
3•cat-whisperer•31m ago•1 comments

I hijacked my Hacker News habit to learn Spanish

https://www.orangecrumbs.com/stories/how-i-hijacked-my-hacker-news-habit
1•oyster143•32m ago•0 comments

Cicada.os Graphene.os for Your Laptop

https://kpres12.github.io/Cicada.OS/
1•kpres62•33m ago•1 comments

Sing-song: a speakable encoding for long numbers and keys

https://blog.vrypan.net/2026/08/19/260819-sing-song/
1•emigre•33m ago•0 comments

OpenInfer Cloud: Free Access for Creative Developers

https://openinfer.io/cloud/
1•cjbuffington•34m ago•0 comments

Show HN: A React component optimized for 1987

https://github.com/smysnk/react-retro-display-tty-ansi-ascii
1•smysnk•36m ago•0 comments

Programming Lewis Carroll's Memoria Technica (2024)

https://ztoz.blog/posts/memoria_technica/
1•emigre•38m 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?