frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

An Introduction to Galois Fields and Reed-Solomon Coding [pdf]

https://people.computing.clemson.edu/~jmarty/papers/IntroToGaloisFieldsAndRSCoding.pdf
1•teleforce•1m ago•0 comments

Show HN: Save Context from MCP Bloat

https://github.com/healqq/mcp-content-guard
1•healqq•3m ago•0 comments

Additive FFT Explained: Fast Fourier Transforms over Binary Fields

https://blog.lambdaclass.com/additive-fft-background/
1•teleforce•7m ago•0 comments

The Streaming Latency Tradeoff: Why Some TTS Models Lose Accuracy in Real Time

https://deepgram.com/learn/streaming-tts-latency-accuracy-tradeoff
1•ChicknNuggt•10m ago•1 comments

The Mythical Agent-Month

https://wesmckinney.com/blog/mythical-agent-month/
2•fagnerbrack•16m ago•1 comments

Programmers Spend Their Time – Probably Dance

https://probablydance.com/2026/02/10/how-programmers-spend-their-time/
2•fagnerbrack•17m ago•0 comments

Global Energy Flow – Real-Time Energy Intelligence

https://global-energy-flow.com/
2•xbmcuser•17m ago•1 comments

Show HN: Codiff, a local diff review tool

https://github.com/nkzw-tech/codiff/releases
3•cpojer•17m ago•1 comments

How we made Notion available offline

https://www.notion.com/blog/how-we-made-notion-available-offline
1•fagnerbrack•18m ago•0 comments

We let four AIs run radio stations. Here's what happened.

https://andonlabs.com/blog/andon-fm
1•thm•21m ago•0 comments

Show HN: Give your AI agent a brain that understands your codebase

https://github.com/bitloops/bitloops
1•sergiopreira•24m ago•0 comments

Compared a few OpenClaw hosting setups

https://docs.google.com/spreadsheets/d/1tVqYh8fAWLAFAuuM3-G0WVoFqY6VKJ8pgFdS3zvux80/edit?gid=2137...
3•VishnuTech•29m ago•0 comments

Forum

https://bestsugardaddyapps.com/forum/
2•whatsupdog•32m ago•0 comments

A blog post is a query for people who will route interesting stuff to you

https://www.henrikkarlsson.xyz/p/search-query
1•James72689•35m ago•0 comments

Useful Security Tooling

https://app.securl.online
2•ktbatterham•38m ago•0 comments

Molecular Dynamics on Apple M4

https://github.com/vyasgiridhar/moleqular
1•vyasgiridhar•43m ago•0 comments

My indie app was named too close to competitors and I burnt my fingers

2•phalgun_g•47m ago•1 comments

Ask HN: What LLM models are you using and why?

2•rubyn00bie•50m ago•1 comments

Ask HN: Why do hotels etc. WiFi networks all use captive portals?

1•tgsovlerkhgsel•52m ago•1 comments

What right has a "personal fortune" to be anything but working capital?

2•silexia•54m ago•0 comments

Private Hosted OpenClaw that can connect to your data with included AI models

https://platform.joinable.ai
1•tnac•57m ago•0 comments

Show HN: Machine – per-project dev VMs with session-only secrets

1•katspaugh•57m ago•0 comments

Directory of Blogs with a /Now Section

https://nownownow.com/
3•James72689•59m ago•0 comments

Five LLM agents play Werewolf in-browser, each with a private DuckDB

https://kayhan.dev/posts/013-werewolf-five-agents-one-browser/
2•keynha•1h ago•0 comments

My Wi-Fi Was Faster Than Ethernet So I Fixed It

https://www.youtube.com/watch?v=pzb7py2HeqA
1•iamflimflam1•1h ago•0 comments

An example of functional slop code

https://manemasters.vip/
2•AndrewKemendo•1h ago•2 comments

Driving

https://jzhao.xyz/posts/driving
2•wonger_•1h ago•0 comments

Groww beat every odd to get here. Now what?

https://the-ken.com/newsletters/two-by-two/groww-beat-every-odd-to-get-here-now-what/
1•vidyesh•1h ago•0 comments

AI Poop Analysis App Offered to Sell Me Database of Its Users' Poops

https://www.404media.co/ai-poop-analysis-app-offered-to-sell-me-access-to-its-users-poops/
2•tjek•1h ago•0 comments

Tesla Solar Roof is on life support as it pivot to panels

https://electrek.co/2026/05/14/tesla-solar-roof-promise-vs-reality-pivot-panels/
32•celsoazevedo•1h ago•12 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?