r/SQL • u/Adventurous_Baker532 • Jul 23 '26
PostgreSQL Recently faced n+1 problem in my app
/r/FullStackDevelopers/comments/1v4hdw3/recently_faced_n1_problem_in_my_app/
0
Upvotes
r/SQL • u/Adventurous_Baker532 • Jul 23 '26
View all comments
Show parent comment
1
u/Outrageous_Let5743 Jul 23 '26
n+1 is just solvable by just doing a join instead of for u in users: for p in products: