Tags
- Django
- SQL
- Queue
- 트리
- Article & User
- distinct
- 이진트리
- 통계학
- Tree
- 그리디
- count
- regexp
- outer join
- 완전검색
- migrations
- stack
- create
- delete
- 큐
- 쟝고
- N:1
- ORM
- 뷰
- drf
- 스택
- update
- M:N
- 백트래킹
- DB
- Vue
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Notice
Recent Posts
Link
목록2024/05/12 (1)
데이터 분석 기술 블로그

문제 상황prefetch_related 적용문제 해결 1단계입니다.게시글을 조회하면서 참조된 댓글까지 한 번에 조회합니다.# views.pydef index_4(request): # articles = Article.objects.order_by('-pk') articles = Article.objects.prefetch_related('comment_set').order_by('-pk') # articles = Article.objects.prefetch_related( # Prefetch('comment_set', queryset=Comment.objects.select_related('user')) # ).order_by('-pk') "111 queries includin..
SW/DB
2024. 5. 12. 09:00