Django Restframework Serializer Performance Compare
19 Oct 2019 | Django performanceDJango documentation
Performance and optimization | Django documentation | Django
Serialization Performance
Improve Serialization Performance in Django Rest Framework | Haki Benita
summary :
- UserModelSerializer : 12.818s
- UserReadOnlyModelSerializer : 7.407s
- UserSerializer : 2.101s
- UserReadOnlySerializer : 2.254s
- serialize_user : 0.034s
- serializer is faster than modelserializer.
- marking the fields as readonly didn’t make a significant difference compared to the “regular” serializer.
시리얼라이저는 모델 시리얼 라이저보다 빠르고, Readonly는 성능에 큰 영향을 주지 않는다.
Optimization
Basic Performance Optimization in Django
19 Oct 2019 4:35 PM