Skip to content

Commit

Permalink
todo refactor n+1 with group concat
Browse files Browse the repository at this point in the history
  • Loading branch information
miray-mustafov committed Jun 10, 2024
1 parent d5e5002 commit f3fcd24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/crud/crud_course.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ async def get_all_courses(
courses_list: List[CourseInfo] = []

for course in courses:
# todo refactor n+1 with group concat
tags = await get_course_tags(course)
response_model = CourseInfo.from_query(
*(course.title, course.description, course.is_premium, tags))
Expand Down

0 comments on commit f3fcd24

Please sign in to comment.