Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

N+1問題の解消 #174

Open
akimon658 opened this issue Feb 11, 2025 · 0 comments
Open

N+1問題の解消 #174

akimon658 opened this issue Feb 11, 2025 · 0 comments
Labels
backend 主にバックエンド関連

Comments

@akimon658
Copy link
Member

akimon658 commented Feb 11, 2025

for i := range budgets {
traqID, err := s.repo.GetUserTraqID(budgets[i].UserID)
if err != nil {
e.Logger().Errorf("failed to get user: %v", err)
return echo.NewHTTPError(http.StatusInternalServerError, "Internal server error")
}
response[i].UserTraqId = traqID
}

@akimon658 akimon658 added the backend 主にバックエンド関連 label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend 主にバックエンド関連
Projects
None yet
Development

No branches or pull requests

1 participant