frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

No Modes (Larry Tesler's license plate)

https://itsthedatastupid.wordpress.com/2010/05/29/no-modes/
1•networked•3m ago•0 comments

Context Mode – An Open-Source MCP Server That Reduces AI Coding Context Usage

https://github.com/mksglu/context-mode
1•Moon_Y•4m ago•0 comments

Making Coding Fun Again

https://shantaram.xyz/posts/2026/10/making-coding-fun-again
1•_shantaram•5m ago•0 comments

Show HN: Secret Key – Shamir-based emergency access to a password vault

https://github.com/mateuszkarpierz/secret-key
1•karpatka122•7m ago•0 comments

Sleep-cycle memory for agents: capture while awake, distill while asleep

https://github.com/aydinnyunus/sleep
1•runtimepanic•8m ago•0 comments

The History of Spam (2014) [pdf]

https://www.internetsociety.org/wp-content/uploads/2017/08/History20of20Spam.pdf
1•jruohonen•10m ago•0 comments

NixThis: The ad blocker for Windows itself

https://github.com/builtbybel/NixThis
1•ano-ther•10m ago•0 comments

When AI Writes the Code, Show Your Judgment

https://www.eyosias.dev/case-studies/ai-mailbox-analysis
1•Eyosias_x5•16m ago•0 comments

Feminine and Masculine

https://nomlang.org/post/post.30.oct.2026.html
1•mjbq•17m ago•1 comments

Criminal arrest warrant for OSINT troll Jesse Nickles

https://github.com/helenokoye/jesse-jacob-nickles-criminal-arrest-warrant?source=hn
4•noraquinn•18m ago•2 comments

Will Agent Resource Registries ever have their moment, the way AI gateways did?

https://agenticresourcediscovery.org/
3•Dhanpraja231•21m ago•1 comments

We rebuilt our video editing tool

https://medium.com/@vektormemory/vektor-2-0-3-studio-motion-and-timeline-video-creation-tools-07f...
1•vektormemory•21m ago•0 comments

Basic Concepts of Quantum Mechanics by L. vs. Tarasov (2021)

https://archive.org/details/tarasov-basic-concepts-of-quantum-mechanics-2021
2•vismit2000•24m ago•0 comments

Problems in Mathematics with Hints and Solutions (1982)

https://archive.org/details/v.-govorov-p.-dybov-n.-miroshin-s.-smirnova-problems-in-mathematics-w...
2•vismit2000•25m ago•0 comments

Impatient Programming

https://impatientprogramming.org/
2•andrii•27m ago•0 comments

Any software developers not ready for FIRE changing their careers?

https://old.reddit.com/r/financialindependence/comments/1xk9sy2/any_software_developers_not_ready...
3•SenHeng•31m ago•1 comments

Paying for the same upstream refresh twice (Snowflake) [video]

https://www.youtube.com/shorts/8PJy-d8ulGE
1•yanivleven•32m ago•0 comments

Developer makes Windows 11 26H2 work on insanely low 128MB RAM

https://www.neowin.net/news/developer-makes-windows-11-26h2-work-on-insanely-low-128mb-ram/
1•giuliomagnifico•35m ago•0 comments

Why Touching an Am Radio Tower with Grass Plays Sound [video]

https://www.youtube.com/shorts/DVhvMdLkubM
1•thunderbong•36m ago•1 comments

Show HN: EBI Space – In-session screen time awareness without harsh lockouts

https://ebispace.app/
1•ekhadivar•39m ago•0 comments

Terence Tao: The Year Math Changed Forever

https://www.newyorker.com/magazine/2026/11/09/the-year-math-changed-forever
1•lukko•41m ago•1 comments

Socialista – Generate static ads and UGC videos from product images

https://socialista.app
1•kbehov•42m ago•0 comments

noyb win: French electronics retailer Fnac Darty fined €7M

https://noyb.eu/en/noyb-win-french-electronics-retailer-fnac-darty-fined-eu7-million
3•latexr•43m ago•0 comments

See what Claude Code reads and edits, live, in a file tree

https://github.com/Marius-Adam/claude-files-pane/blob/main/docs/demo.gif
3•betterPattern•44m ago•0 comments

A simpler way to put ChatGPT to work (A shared allowance for ChatGPT and Codex)

1•daneel951•47m ago•2 comments

How RimWorld 1.7 Lets You Commit War Crimes Faster [video]

https://www.youtube.com/watch?v=EdRteMjyC4k
1•skibz•51m ago•0 comments

Show HN: Detox Mode – A Flutter app to help reduce smartphone distractions

https://play.google.com/store/apps/details?id=com.saurabh.detox&hl=en_US
1•saurabh_yagyik•54m ago•0 comments

Alkaline batteries are obsolete – but their predecessor isn't [video]

https://www.youtube.com/watch?v=I1rlK3BKmyA
2•vismit2000•1h ago•0 comments

SATORATOS: Read classics from the source with original translations and notes

https://satoratos.org/
1•al_mutanabby•1h ago•0 comments

Show HN: BeachFinder – Find beaches with the right conditions

https://getbeachfinder.com
1•TitOo•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?