The number after the Django HTTP response code

I am currently working on an existing Django project, which is quite slow (I assume that this is mainly related to AJAX calls). However, to prioritize optimization, I would like to know what the numbers indicated for the HTTP response codes mean.

[03/Dec/2011 22:25:00] "GET /userbase HTTP/1.1" 200 5914 <--This number [03/Dec/2011 22:25:39] "GET /cohorts?weekly=true HTTP/1.1" 200 27985 <--This too [03/Dec/2011 22:26:13] "GET /cohorts?weekly=false HTTP/1.1" 200 11416 <--and this one 

Since those that take more time have a larger number, I guess how long it will take to get an answer. But how is this measured? In milliseconds? The refinement will be appreciated.

+4
source share
1 answer

This is the size of the response in bytes. Longer ones are probably larger answers that take longer to compute. Unfortunately, the output does not display the time spent on requests, although I believe that there was a function request with one point.

If you are worried about how long your requests will be completed, you can study the installation of django-extensions and use RunProfileServer to create a report.

https://github.com/django-extensions/django-extensions

http://packages.python.org/django-extensions/runprofileserver.html

If you need more complete production logging, check out django-sentry.

https://github.com/django-extensions/django-extensions

+2
source

Source: https://habr.com/ru/post/1384534/


All Articles