frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Raid on Bungeling Bay

https://en.wikipedia.org/wiki/Raid_on_Bungeling_Bay
1•Bluestein•6m ago•0 comments

Show HN: Sunk Cost – How long until a local LLM rig pays for itself?

https://sunkcost.ai/
1•rlindsey123•7m ago•0 comments

Building an Application Security Program That Works

https://collinsthoughts.substack.com/p/building-an-application-security
1•smurda•8m ago•0 comments

How Modern Technology Helped a Man Find a Cure to Save His Life

https://medium.com/swlh/doug-lindsay-the-man-who-cure-himself-12d40d3f643e
1•raynchad•8m ago•0 comments

StackBlitz is joining the Open Source Pledge

https://blog.stackblitz.com/posts/stackblitz-joins-osspledge/
2•noobplus•8m ago•0 comments

The UX Research Methodology subway map trap

https://www.reddit.com/r/UXDesign/comments/1wercj5/the_ux_research_methodology_subway_map_trap/
1•s4074433•12m ago•1 comments

Open the Frontier

https://twitter.com/jack/status/2099649359017046048
6•doppp•17m ago•0 comments

VoiceStudio – local open-source ElevenLabs alternative

https://github.com/debpalash/VoiceStudio
5•iamsyr•18m ago•0 comments

OpenDisplay – open-source Sidecar for Mac to iPhone/iPad

https://github.com/peetzweg/opendisplay
2•iamsyr•19m ago•0 comments

Nicobo robot companion: less than a tool, more than a toy

https://www.nippon.com/en/japan-topics/g02619/
1•anigbrowl•25m ago•0 comments

Mapping Medieval Merv

https://www.sidestone.com/books/mapping-medieval-merv
1•zeristor•25m ago•0 comments

Duplex Cue: Does a voice agent adapt while speaking?

https://besimple.ai/blogs/duplex-cue/
1•matt_d•28m ago•0 comments

Jellyfin v12.0 Release

https://github.com/jellyfin/jellyfin/releases/tag/v12.0
4•jdironman•28m ago•0 comments

Nvidia Unveils RTX Pro 5500 Blackwell Workstation Edition GPU

https://www.nvidia.com/en-gb/products/workstations/professional-desktop-gpus/rtx-pro-5500/
2•pelcg•33m ago•0 comments

Microsoft removes the COPILOT function from Excel

https://support.microsoft.com/en-us/excel/functions/copilot-function
3•fourfire•34m ago•1 comments

US military reveals it has weapons in space

https://www.ft.com/content/09d62f21-8697-4518-bca0-3699b4dd866c
10•JumpCrisscross•38m ago•3 comments

The Engineer/Manager Pendulum (2017)

https://charity.wtf/p/the-engineer-manager-pendulum
3•vismit2000•43m ago•0 comments

Tacit Knowledge and AI

https://cacm.acm.org/opinion/tacit-knowledge-and-ai/
1•7402•45m ago•0 comments

U.S. has deployed first space-based weapon, Air Force secretary says

https://www.washingtonpost.com/national-security/2026/09/14/us-has-deployed-first-space-based-wea...
3•reaperducer•47m ago•0 comments

Stop Re-Fetching: A Caching Layer to Reduce Ethereum RPC Costs

https://nodecache.dev/blog/stop-re-fetching-a-caching-layer-to-reduce-ethereum-rpc-costs-oGtnS6/
1•oculix-official•50m ago•0 comments

Soap Film Between Two Equal and Parallel Rings

https://demonstrations.wolfram.com/SoapFilmBetweenTwoEqualAndParallelRings/
2•vismit2000•51m ago•0 comments

Automating Your "Markdown to static site"

https://docpatch.dev/blog/automating-your-markdown-to-static-site-workflow-no-more-manual-reforma...
3•oculix-official•53m ago•0 comments

Mergiraf: A Syntax-Aware Git Merge Driver for Various Languages and Formats

https://codeberg.org/mergiraf/mergiraf
3•birdculture•55m ago•0 comments

Marden's Theorem

https://en.wikipedia.org/wiki/Marden%27s_theorem
1•vismit2000•57m ago•0 comments

Show HN: SuperOpt – Linux Shortcuts on Mac

https://logonoff.co/superopt/
1•logonoff•59m ago•0 comments

NBC News Airs Interview with AI-Generated Actress

https://www.mediaite.com/media/tv/how-bizarre-is-this-nbc-news-airs-interview-with-ai-generated-a...
3•pseudolus•1h ago•0 comments

LeanDB: A strongly typed SQL Front end

https://theoric.com/blog/leandb_a_strongly_typed_sql_frontend/
3•matt_d•1h ago•0 comments

Ex-FTC boss Khan: break out the handcuffs for AI CEOs, citing 1934 precedent

https://www.theregister.com/ai-and-ml/2026/09/14/ex-ftc-boss-khan-urges-uncle-sam-to-break-out-th...
11•throwworhtthrow•1h ago•1 comments

It_is_easy_to_critique

https://snafu.sh/it_is_easy_to_critique/
1•mikhail-ramirez•1h ago•0 comments

Terminal Guide: Discover CLI tools that make work faster and more enjoyable

https://www.terminal.guide/tools/
3•sea-gold•1h 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?