frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

CPython Internals Explained

https://github.com/zpoint/CPython-Internals
1•yufiz•1m ago•0 comments

The Law of Imposter Systems

https://zenodo.org/records/18383284
1•takko_the_boss•1m ago•0 comments

NDL: Simplifying Local Development for Distributed Systems

https://nuewframe.dev/blog/introducing-ndl-simplifying-distributed-systems-local-development/
1•wrabadi•2m ago•0 comments

The age of Pump and Dump software

https://tautvilas.medium.com/software-pump-and-dump-c8a9a73d313b
1•brisky•3m ago•0 comments

Chatuino: A Feature-Rich TUI Twitch IRC Client

https://github.com/julez-dev/chatuino
1•julezdev•3m ago•0 comments

Ask HN: Where's the actual pain in early-stage medical AI startups?

1•ml_visoft•5m ago•0 comments

I stopped using dependencies and started generating code

https://www.amazingcto.com/audience-of-one-apps/
2•KingOfCoders•5m ago•0 comments

Italians furious over deployment of ICE to bolster US security at Olympics

https://www.cnn.com/2026/01/27/europe/italy-ice-agents-security-olympics-intl
2•rawgabbit•6m ago•0 comments

Show HN: CUGA – Configurable Generalist Agent (HuggingFace Live Demo)

https://huggingface.co/spaces/ibm-research/cuga-agent
1•asaf_adi•7m ago•1 comments

Hit21 v1.9

https://apps.apple.com/us/app/hit21-blackjack-game/id6740510784
1•pompeii•7m ago•1 comments

Show HN: We Built the 1. EU-Sovereignty Audit for Websites

https://lightwaves.io/en/eu-audit/
2•cmkr•8m ago•1 comments

Show HN: Terminal style start page for bookmarks and open tabs

https://home-page.io/welcome/
1•britojosepha•9m ago•0 comments

I built a C++ runtime with immutable objects and no GIL

1•gamarino•10m ago•0 comments

Realism vs. style in AI image models (lessons from building a wallpaper app)

https://tallpaper.app
1•bored-developer•10m ago•1 comments

Not One Penny

https://scottsumner.substack.com/p/not-one-penny
2•RickJWagner•15m ago•1 comments

Show HN: IOPS Profiler – Jupyter magic to measure I/O operations per second

https://github.com/lincc-frameworks/iops-profiler
2•mtauraso•15m ago•1 comments

Feeds of New EBooks

https://www.gutenberg.org/ebooks/feeds.html
2•carlosjobim•16m ago•0 comments

Vibe Coding Is Free – Cleanup Won't Be

https://codesmash.dev/vibe-is-free-cleanup-wont-be
2•codesmash•18m ago•2 comments

Ancient infection disabled gene in chimp brains that remains expressed in humans

https://www.thetransmitter.org/evolution/viral-remnant-in-chimpanzees-silences-brain-gene-humans-...
2•jakewins•19m ago•0 comments

I quit tech today, warning to junior and mid-level devs

https://old.reddit.com/r/nairobitechies/comments/1qml2xr/i_quit_tech_today_warning_to_junior_and_...
3•nomilk•19m ago•0 comments

Show HN: WhyFi – Figure out why your Wi-Fi is bad and fix it

https://whyfi.network/
3•drpancake•19m ago•0 comments

Doom in the Terminal

https://github.com/wojciech-graj/doom-ascii
2•nateb2022•19m ago•0 comments

Show HN: Build Web Automations via Demonstration

https://www.notte.cc/launch-week-i/demonstrate-mode
5•ogandreakiro•20m ago•0 comments

Show HN: Lichess.el – Play Lichess Inside Emacs

https://github.com/tmythicator/lichess.el
2•atimcha•20m ago•1 comments

Digital Excommunication

https://pgaleone.eu/europe/2026/01/27/digital-excommunication/
1•me2too•21m ago•0 comments

Show HN: MonsterWriter – An Overleaf Alternative with a Better Free Plan [video]

https://www.youtube.com/watch?v=feWZByHoViw
1•WolfOliver•21m ago•0 comments

Generate HTTP server and client from protobuf

https://github.com/MUlt1mate/protoc-gen-httpgo
1•MUlt1mate•22m ago•1 comments

Apple's AirTag 2 is easier to find thanks to new chip

https://arstechnica.com/gadgets/2026/01/apple-introduces-new-airtag-with-better-range-and-a-loude...
1•taubek•22m ago•0 comments

A proposal to prevent job losses from AGI

https://invertedpassion.com/a-proposal-to-prevent-job-losses-from-agi/
1•speckx•22m ago•0 comments

TikTok users can't upload anti-ICE videos. The company blames tech issues

https://www.cnn.com/2026/01/26/tech/tiktok-ice-censorship-glitch-cec
46•kotaKat•24m ago•15 comments
Open in hackernews

Ask HN: How can I load test PostgreSQL but avoid changing actual data?

1•LawZiL•8mo 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•8mo 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•8mo 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•8mo 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•8mo ago
Load test against a clone instead of a DB whose contents you care about?