frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Toki Pona

https://en.wikipedia.org/wiki/Toki_Pona
1•sans_souse•1m ago•0 comments

All 201 Stories by Anton Chekhov

https://www.ibiblio.org/eldritch/ac/jr/
1•bookofjoe•2m ago•0 comments

Global Solar Atlas: summary of solar power potential globally

https://globalsolaratlas.info/
1•stratts•3m ago•1 comments

Update: Now Source Download supported 54 languages

https://chromewebstore.google.com/detail/source-download/nockdgincmpfojabnhbofkddgcmnodpd
1•2rundev•5m ago•0 comments

Generic JSON parsing in C++: matches simdjson On Demand, beats it in reverse

https://nihilai-collective.net/generic-parsing
1•nihilai•5m ago•0 comments

Journalism Is Investable

https://capitalstacks.media/
1•doener•6m ago•0 comments

Nuk4sd Sandbox Vault System

https://github.com/HPPeterSteve/nuk4sd
1•hppetersteve•8m ago•0 comments

Show HN: MCP v2 on bountyindex.in, 14 tool calls,happy bug hunting

https://www.bountyindex.in/mcp
2•axolotl619•10m ago•0 comments

Learning Jazz Pianist Style with Cross-Attention Conditioning

https://almostimplemented.github.io/jazz-pianist-style/
1•ishan0102•10m ago•0 comments

Fast JSON Serialization in C++

https://nihilai-collective.net/serialization
1•nihilai•10m ago•0 comments

Friendship ended with Deno, now Node is my best friend

https://dbushell.com/2026/10/03/deno-to-node/
1•ibobev•11m ago•0 comments

Better Space-Time Trade-Offs for LSM-Tree Based Key-Value Stores [pdf]

https://nivdayan.github.io/dostoevsky.pdf
2•ibobev•15m ago•0 comments

Cloudflare's decision model "Clef" playing Balatro

https://twitter.com/mxfp0/status/2107228554635116768
1•herlon214•26m ago•0 comments

Reverse Engineering NovaLogic's Comanche Terrain Maps

https://pikuma.com/blog/comanche-maps-reverse-engineering
1•ibobev•27m ago•0 comments

Terminal Steps: A Claude mod for a daily step goal, synced from Apple Health

https://github.com/utpalJayNadiger/terminal-steps
2•iacguy•28m ago•0 comments

Why moving artifacts into your customer's VPC can be so annoying

https://bottlerocket.cloud/blog/why-moving-artifacts-into-vpcs-can-be-so-annoying/
1•adenalhardan•28m ago•0 comments

One year later: the power of 1.1.1.1 interns

https://blog.cloudflare.com/one-year-later-1111-interns/
2•gpi•30m ago•0 comments

A Laravel Like framework built in Rust

https://suprnova.app/
1•luispa•32m ago•0 comments

Find people relevant to your situation and explore their minds

https://www.delphi.ai/discover/people
2•cassianandor•33m ago•0 comments

Texas city demands $2M for public records on Flock usage

https://arstechnica.com/tech-policy/2026/10/texas-city-demands-2m-for-public-records-on-flock-usage/
3•01-_-•35m ago•0 comments

It's a Plan – issue tracker where people and AI agents ship together

https://itsaplan.dev
1•throwaway888abc•35m ago•0 comments

Give Your AI Agent a Domain-Specific Language

https://www.modeloptic.com/blog/give-your-ai-agent-a-dsl
2•lhh•36m ago•0 comments

What's new in Windows 11, version 26H2

https://learn.microsoft.com/en-us/windows/whats-new/whats-new-windows-11-version-26h2
4•01-_-•36m ago•1 comments

Show HN: The mainbrella effect – AI code / Agent machines

3•cs1996•36m ago•0 comments

Recursive Generated Entropy

https://jakebreams.substack.com/p/recursive-generated-entropy
1•jimyjimyjim•39m ago•0 comments

Automated Science and the Halting Problem

https://colinocallaghan.com/posts/automated-science-and-the-halting-problem/
1•colijobles•39m ago•0 comments

Engineer says Claude Code has made his job "soul-sucking"

https://www.techspot.com/news/113937-engineer-claude-code-has-made-job-soul-sucking.html
3•hefner1456•39m ago•0 comments

Why stepping in to improve things is always wrong

https://www.leadinginproduct.com/p/stepping-in-to-improve-things
1•fagnerbrack•40m ago•0 comments

CAP-X: LMs' First Physical Exam

https://capgym.github.io/
1•gmays•42m ago•0 comments

Using OpenAI Dots as an agent swarm to prove new math, for free (Lean verified)

https://unexcitedneurons.substack.com/p/i-used-openai-dots-as-an-agent-swarm
2•jychang•42m ago•1 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?