frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Letting Agents Loose on the Network

https://cloudywithachanceoflatency.net/blog_04-investigative-tools.html
1•rixed•11m ago•1 comments

Fashion Week's Response to AI Fatigue? A Distinctly Human Sloppiness

https://www.teenvogue.com/story/fashion-weeks-response-to-ai-fatigue-a-distinctly-human-sloppiness
1•evolve2k•15m ago•1 comments

Anthropic's IPO Explained

https://finshots.in/archive/anthropic-ipo-explained/
1•vismit2000•17m ago•2 comments

UX Design Patterns

https://sambernheim.com/blog/ux-design-patterns
2•bern4444•19m ago•0 comments

碁の国: Play Chess as Town Building

https://gonokuni.plpl.town/
2•rguiscard•23m ago•0 comments

Show HN: SelfClaw – Self-hosted multi-model AI chat with OpenAI-compatible API

https://github.com/Alanzj/SelfClaw
2•alanzj•27m ago•0 comments

Show HN: Simulusion – A PyTorch library for training and running world models

https://github.com/ParamThakkar123/simulusion
1•paramthakkar•29m ago•0 comments

Dessa – the Conversation Model trained only on speech

https://block.xyz/
2•gmays•31m ago•0 comments

Campus Crusher

https://campuscrusher.com
1•websiteapi•31m ago•0 comments

WordPress Is Helping Advance Document Isolation Policy

https://ma.tt/2026/10/standards/
1•chilipepperhott•31m ago•0 comments

Computer Work Val v1.0

https://plato.so/research/computer-work-val/
1•joehabeebs•31m ago•0 comments

Two problems in networking contributing to recent security failures

https://bsky.app/profile/robpike.io/post/3myvstikmts2b
2•platzhirsch•33m ago•0 comments

_How Terraform built the cheapest solar in North America

https://terraformindustries.wordpress.com/2026/10/27/how-terraform-built-the-cheapest-solar-in-no...
1•Klaster_1•35m ago•0 comments

AICC: Free AI certifications, technical courses, and learning resources

https://www.aicertificationcouncil.com/
2•quietkernel•40m ago•0 comments

Tailscale SSH: Findings and Fixes

https://tailscale.com/blog/tailscale-ssh-findings-fixes
1•sfllaw•43m ago•0 comments

A Chrome Extension that makes Reddit (and other sites) bearable to use

https://saw.dog/talisman/
1•sawdog•45m ago•1 comments

CobaltC – For C and Rust Programmers

https://strawberry9.github.io/CobaltC/appendix-c-c-and-rust.html
1•SilentLambda•49m ago•0 comments

Remade wiki, independent software reimplementations

https://remade.wiki/
2•modinfo•52m ago•0 comments

Block's new voice model sounds eerily human

https://techcrunch.com/2026/10/24/blocks-new-voice-model-sounds-eerily-human/
1•gmays•1h ago•0 comments

Show HN: OpenMontage Drama Studio – self-hosted AI studio for short dramas

https://github.com/charliewwdev/OpenMontage
1•charlie-w•1h ago•0 comments

Harold Blauer

https://en.wikipedia.org/wiki/Harold_Blauer
1•petethomas•1h ago•0 comments

U.S. Defense Intelligence Agency Confirms China's Spaceplane

https://www.twz.com/news-features/u-s-intel-confirms-this-is-chinas-secret-spaceplane
6•hackthemack•1h ago•0 comments

The Right Way to Write Complex Code

https://coderhapsody.ai/docs/the-right-way-to-write-complex-code
2•pykello•1h ago•0 comments

How to debug a team that isn't working: the Waterline Model

https://www.lennysnewsletter.com/p/how-to-debug-a-team-that-isnt-working
1•quick_brown_fox•1h ago•0 comments

PIC64GX 64-bit RISC-V Quad-Core Microprocessors

https://www.microchip.com/en-us/products/microprocessors/64-bit-mpus/pic64gx
1•caned•1h ago•0 comments

DeltaDB now has a Claude Code plugin

https://delta.dev/blog/claude-code-multiplayer
1•g413n•1h ago•0 comments

Don't anthropomorphize big tech companies

https://www.seangoedecke.com/dont-anthropomorphize-big-tech-companies/
5•gfysfm•1h ago•0 comments

Show HN: Binary – hiring tool (ATS) for startups that is MCP friendly

https://binary.so
1•shikhar727•1h ago•0 comments

Anyone can get a job in IT

https://neutrinodetect.one/anyone_can_get_a_job_in_IT.html
3•AnjanaMohawk•1h ago•0 comments

A DIY browser check for Nginx to mitigate HTTP flood attacks

https://gladios.dev/
2•endel•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?