Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- to_attr
- Transaction
- django
- CD
- DRF
- annotate
- database
- dry-yasg
- 백준
- DjangoRestFramework
- DjangoCache
- apitestcase
- QuerySet
- 도커
- Continuous Delivery
- 코루틴
- docker
- Coroutine
- Python
- Prefetch_related
- Git
- Continuous Deployment
- testcase
- CI
- nestedfunction
- EC2
- racecondition
- aws
- F객체
- aggregate
Archives
- Today
- Total
목록annotate (1)
BackEnd King KY

Intro aggregate에 이은 annotate 입니다. 둘 다 집계를 하는 건 똑같은데, 지난 포스팅의 내용을 다시 복기시켜보자면 aggregate에서는 집계한 값이 딕셔너리 형태로 출력됩니다. annotate에 대해 간단하게 먼저 말하면, SQL의 Group By 기능입니다. 정의에 대해 알아본 후, 직접 테스트를 하겠습니다. 모든 출처는 공식문서입니다. 정의 annotate의 뜻은 주석입니다. 우선, 공식문서에 나온 annotate의 정의를 보겠습니다. Annotates each object in the QuerySet with the provided list of query expressions. An expression may be a simple value, a reference to a ..
Django
2022. 2. 18. 21:27