Zettelkasten
Search
⌘K
Graph
Tags
#
django
13개
Django 느린 API의 CPU 병목은 DB가 아니라 직렬화 계층인 경우가 많다
1,704자
django
drf
serialization
performance
cpu
N+1 쿼리 해결은 쿼리당 고정비용만 회수하고 행당 파싱 비용은 줄이지 않는다
1,701자
django
orm
n-plus-one
pymysql
performance
cpu
transaction.on_commit으로 큐 enqueue를 감싸면 롤백 시 고아 잡을 막는다
1,601자
django
transaction
message-queue
consistency
UPDATE WHERE 조건부 갱신은 SELECT FOR UPDATE보다 lock 대기 없이 동시성 경합을 해결한다
1,471자
concurrency
database
django
mysql
race-condition
deadlock
Python에서 SSE는 ASGI 환경에서만 운영 가능하다
2,959자
sse
asgi
wsgi
python
fastapi
django
streaming
http
Gunicorn 워커 수가 많아지면 thundering herd로 인해 일부 워커만 요청을 받는다
1,267자
gunicorn
thundering-herd
haproxy
python
performance
django
Django ORM 고급 기능
1,425자
django
ORM
python
db connection pool의 max age에 jitter 를 적용하면 connection 생성 p99가 개선된다.
338자
database
optimization
django
django orm은 thread-safe 하다
231자
django
python
database
django prefetch_related objects 구현
264자
python
django
implementation
django connection_created signal은 django.backends.mysql.DatabaseWrapper가 초기화 될 때 호출된다.
744자
django
implementation
django_mysql_gevent 이슈
477자
django
connnection-pool
bug
docker
django - Cacheops 데이터 관리 방식
1,006자
django
implementation
cache