frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: AI mock interview tool that scores your answers – free, no signup

https://interviewpracticeai.com
1•BenGallagh•3m ago•0 comments

An Interesting Number (2005)

https://www.cut-the-knot.org/blue/InterestingStory.shtml
1•wolfi1•3m ago•0 comments

South Korea wants the port of Busan to become a hub for polar shipping

https://asia.nikkei.com/spotlight/policy-asia/south-korea-s-lee-seeks-arctic-lift-for-country-s-s...
1•cromka•4m ago•0 comments

Qwen 3.8 Max Preview

https://www.qwencloud.com/pricing/token-plan
1•lebovic•4m ago•1 comments

Valve say there's no end in sight to the memory crisis, prices going to increase

https://www.pcgamer.com/hardware/steam-machines/valve-says-theres-no-end-in-sight-to-the-memory-c...
2•haunter•5m ago•0 comments

Qwen 3.8 with 2.4T parameters, available on Alibaba Token plan

https://twitter.com/Alibaba_Qwen/status/2078754377473601787
1•theanonymousone•6m ago•1 comments

Facebook Is Down

https://www.facebook.com/
2•eric_khun•9m ago•1 comments

Show HN: Shikigami, run AI coding agents in parallel, each in a Git worktree

https://shikigami.dev/
1•igor_nast•12m ago•0 comments

Half a Second – a book about the XZ backdoor

https://www.half-second.com/
1•zvr•12m ago•0 comments

Moon Phase Clock – Realistic, Full Screen

https://medium.com/@thesuperrepemail/moon-phase-clock-with-full-screen-mode-1a1e230fa710
2•mssblogs•14m ago•0 comments

Boys' ADHD symptoms linked to addictive social media use in new study

https://www.msn.com/en-us/health/other/boys-adhd-symptoms-linked-to-addictive-social-media-use-in...
2•jnord•14m ago•0 comments

Qwen3.8 is launching and going open-weight soon

https://twitter.com/Alibaba_Qwen/status/2078759124914098291
25•nh43215rgb•16m ago•2 comments

More emulation goodness, an Intel Itanium (IA-64) emulator that boots Windows

https://raymii.org/s/blog/Intel_Itanium_IA-64-Emulator_that_boots_Windows.html
1•jandeboevrie•23m ago•0 comments

Victora proposes new laws to target big tech and online trolls

https://www.abc.net.au/news/2026-07-19/victoria-social-media-big-tech-laws/106932668
2•aragilar•26m ago•0 comments

Anthropic runs large-scale code migrations with Claude Code

https://claude.com/blog/ai-code-migration
2•vinhnx•30m ago•0 comments

Ask HN: Is anyone else facing login issues on Facebook?

3•wasi0013•31m ago•3 comments

Protester calls out Amazon CTO for allowing Israel to use their AI towards Gaza

https://www.reddit.com/r/chaoticgood/s/4Pla2e38AV
3•trymas•31m ago•0 comments

Where I erred in my original post about Kimi and my views on open-weight AI

https://twitter.com/deanwball/status/2078619513575137330
2•tosh•32m ago•1 comments

When China's open-source AI is a trap

https://www.economist.com/international/2026/07/14/when-chinas-open-source-ai-is-a-trap
3•chvid•34m ago•2 comments

LG Monitors Caught Installing Adware and App with Access to All System Resources

https://www.privacyguides.org/news/2026/07/17/lg-monitors-caught-installing-adware-and-app-with-a...
3•taubek•35m ago•0 comments

DeepSeek routes your request to Fable5

https://twitter.com/synthwavedd/status/2078514339552628880
2•lijialjun•36m ago•1 comments

Refs: Mutable Arrays in jax

https://docs.jax.dev/en/latest/array_refs.html
1•cl3misch•36m ago•0 comments

We Merged with Machines a Long Time Ago – Futurology and Berggruen Institute [video]

https://www.youtube.com/watch?v=tDccIoz-SFI
1•lioeters•36m ago•0 comments

All the Cool Kids Are Birding

https://www.theatlantic.com/health/2026/07/birding-millennials-genz/687910/
1•ep_jhu•39m ago•0 comments

Show HN: OfflineTTS — Free browser-based TTS & STT that runs locally

https://offlinetts.com/
2•twainyoung•40m ago•0 comments

How to Start a Successful Freelance Business as a Software Developer (2017)

https://nickjanetakis.com/blog/how-to-start-a-successful-freelance-business-as-a-software-developer
1•downbad_•42m ago•1 comments

Sue (Dinosaur)

https://en.wikipedia.org/wiki/Sue_(dinosaur)
1•thunderbong•50m ago•0 comments

Mirror your GitHub repos to tangled.org automatically

https://synchub.to/
2•wertyk•54m ago•0 comments

The Mighty Big Array of Finn Jensen LA8YB

https://la0by.darc.de/LA8YB_EME_MBA.htm
1•kalehmann•55m ago•0 comments

Facebook Down

https://downdetector.co.uk/status/facebook/
9•RupertWiser•57m 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?