frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Has anyone tried to use supercomputers to simulate government types?

1•keepamovin•1m ago•0 comments

Ambient music mixed with the sounds of San Francisco public safety radio

https://somafm.com/player24/station/sf1033
1•indigodaddy•4m ago•0 comments

Bad programmers are about to become exposed

https://sundaylettersfromsam.substack.com/p/bad-programmers-are-about-to-become
1•soham•5m ago•1 comments

Show HN: AWS VPC/Subnet Calculator and Terraform Generator (Itcmds.ai)

https://itcmds.ai/AWS_IP_Calculator
1•munyunting•7m ago•0 comments

Ancient dirty dishes reveal decades of questionable findings

https://news.cornell.edu/stories/2025/12/ancient-dirty-dishes-reveal-decades-questionable-findings
1•geox•15m ago•0 comments

Hong Kong holds Legislative Council election

https://qazinform.com/news/hong-kong-holds-legislative-council-election-7cdc44
1•Bolat14•17m ago•0 comments

Northern California's largest non-Tesla fast charging hub: now online in Oakland

https://electrek.co/2025/12/04/northern-california-largest-non-tesla-fast-charging-hub-is-now-onl...
1•MilnerRoute•17m ago•0 comments

Years after anime imagined it, Japan has realized exosuits

https://twitter.com/CyberRobooo/status/1997656741363036595
2•keepamovin•24m ago•0 comments

Constructivist AI: A New Approach to AI

https://github.com/DanexCodr/Constructivist-AI
1•DanexCodr•25m ago•0 comments

Making Software: Blending modes

https://twitter.com/DanHollick/status/1583080119068807168
1•vismit2000•31m ago•1 comments

Postgres CDC in ClickHouse, A year in review

https://clickhouse.com/blog/postgres-cdc-year-in-review-2025
1•saisrirampur•35m ago•0 comments

Stanford PhD dropout hired Meta's brightest minds to join AI math startup

https://www.businessinsider.com/axiom-math-stanford-dropout-meta-ai-researchers-startup-2025-12
2•teleforce•38m ago•0 comments

Cold Case Inquiries Hampered After Ancestry.com Revisits Terms of Use

https://www.nytimes.com/2025/12/07/nyregion/ancestry-dna-police.html
2•WarOnPrivacy•38m ago•3 comments

Martin Hairer: Do Mathematicians Need Computers? [video]

https://www.youtube.com/watch?v=fbVqc1tPLos
1•vismit2000•40m ago•0 comments

Show HN: Matchmyvc.com – Is this going to be useful?

https://matchmyvc.com
1•tapan_garg•1h ago•0 comments

Color Recreation from First Principles

https://ycao.net/posts/recreating-color-simplified/
1•xiaoyu2006•1h ago•1 comments

The surprising countries pulling off fast clean energy transitions

https://www.cnn.com/2025/11/07/climate/solar-wind-renewables-transition-global-pakistan-hungary-c...
3•toomuchtodo•1h ago•1 comments

Earth needs more energy. Atlanta's Super Soaker creator may have a solution

https://www.ajc.com/business/2025/11/earth-needs-more-energy-atlantas-super-soaker-creator-may-ha...
2•TMWNN•1h ago•0 comments

I made a prompt framework that makes LLMs stop hedging and speak straight

2•DrRockzos•1h ago•1 comments

The Web Runs on Tolerance

https://shkspr.mobi/blog/2025/12/the-web-runs-on-tolerance/
4•benwerd•1h ago•1 comments

Show HN: Peephole

https://peephole.greg.technology/
3•gregsadetsky•1h ago•1 comments

AI Interview Coder Assistant

https://interviewcoder.top
2•ainterviewcoder•1h ago•2 comments

ChatGPT claims to have solved Navier-Stokes problem

https://github.com/vporton/navier-stokes
2•porton•1h ago•2 comments

Noninvasive imaging could replace finger pricks for measuring blood glucose

https://news.mit.edu/2025/noninvasive-imaging-could-replace-finger-pricks-diabetes-1203
16•ivewonyoung•1h ago•2 comments

I'm a Professor. A.I. Has Changed My Classroom, but Not for the Worse

https://www.nytimes.com/2025/11/25/magazine/ai-higher-education-students-teachers.html
1•bookofjoe•1h ago•2 comments

Open Source Doesn't Fail Because of Code

https://blog.ulisesgascon.com/open-source-doesnt-fail-because-of-code
1•gpi•1h ago•0 comments

India reviews always-on A-GPS tracking plan for phones

https://news.kagi.com:443/tech/2025120618/india-reviews-always-on-a-gps-tracking-plan-for-phones?...
2•hereme888•1h ago•2 comments

Use AI without skill atrophy

https://www.augmentedswe.com/p/use-ai-without-skill-atrophy
1•wordsaboutcode•1h ago•1 comments

New Augmented Reality Tech Can Turn Any Surface into Keyboard

https://news.utdallas.edu/science-technology/augmented-reality-tech-keyboard-2025/
2•ashishgupta2209•1h ago•0 comments

Why We're Treating Dogs Like People and People Like Dogs

https://thewalrus.ca/why-were-treating-dogs-like-people-and-people-like-dogs/
4•pseudolus•1h ago•1 comments
Open in hackernews

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

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