https://medium.com/kami-people/profiling-in-django-9f4d403a394f

On Tue, Jun 13, 2023 at 11:44 PM Vishesh Mangla <manglavishes...@gmail.com>
wrote:

> Try profiling your django code
>
> On Tue, 13 Jun, 2023, 23:19 Nisha Jose, <nisha1sh...@gmail.com> wrote:
>
>> Try to check any N+1 issue available in the code.
>>
>>
>> On Mon, Jun 12, 2023 at 9:46 AM Vishesh Mangla <manglavishes...@gmail.com>
>> wrote:
>>
>>> Try cdn, and use Statics based on screen size
>>>
>>> On Mon, 12 Jun, 2023, 11:14 Vishesh Mangla, <manglavishes...@gmail.com>
>>> wrote:
>>>
>>>> Lmao
>>>>
>>>> On Mon, 12 Jun, 2023, 10:54 Kunal Mittal, <mittalkuna...@gmail.com>
>>>> wrote:
>>>>
>>>>> I have read various docs on performance optimization, but still not
>>>>> getting what's taking to render templates and what's the bottleneck when
>>>>> cache get cleared, I takes around 12 hours for application to run smoothly
>>>>> after that event.
>>>>>
>>>>> On Monday, June 12, 2023 at 10:53:06 AM UTC+5:30 Kunal Mittal wrote:
>>>>>
>>>>>> Hi, we are using Django 1.8.5
>>>>>> Architecture is like -  Nginx side car -> wsgi server (gunicorn) ->
>>>>>> application
>>>>>> On Monday, June 12, 2023 at 1:06:18 AM UTC+5:30 Mz Gz wrote:
>>>>>>
>>>>>>> What server do you use ?
>>>>>>>
>>>>>>> On Sun, 11 Jun 2023, 10:00 pm Kunal Mittal, <mittal...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I've a django application serving 10k+ users daily, that
>>>>>>>> application has everything to be on the top of performance metrics but
>>>>>>>> still some API's have high latencies, application serves lots of pages 
>>>>>>>> with
>>>>>>>> nice css and various images, on most the pages they are being served 
>>>>>>>> by s3
>>>>>>>> while on some it's via django static files. We have implemented 
>>>>>>>> caching on
>>>>>>>> akamai for every static file that application serves, whenever that 
>>>>>>>> cache
>>>>>>>> disappears latency of each and every API spikes exponentially, at that 
>>>>>>>> time
>>>>>>>> even loading metrics becomes a pain, server does not pick those 
>>>>>>>> requests.
>>>>>>>> Can anyone suggest what's going on here.
>>>>>>>>
>>>>>>>> --
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "Django users" group.
>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>> send an email to django-users...@googlegroups.com.
>>>>>>>> To view this discussion on the web visit
>>>>>>>> https://groups.google.com/d/msgid/django-users/d32868ba-a2df-41e3-8f41-3ecc3c1b3471n%40googlegroups.com
>>>>>>>> <https://groups.google.com/d/msgid/django-users/d32868ba-a2df-41e3-8f41-3ecc3c1b3471n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>>
>>>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Django users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/e07d773a-db82-4a09-b73c-f36ac90322b1n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/e07d773a-db82-4a09-b73c-f36ac90322b1n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CACaE8x4G%3D14_4fw8LELef_FYzRnASFiSdHqqZm47_1k6CuBxgg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CACaE8x4G%3D14_4fw8LELef_FYzRnASFiSdHqqZm47_1k6CuBxgg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CANXPAinVh-P_3sPOzNu5rXbEtQS_EfbvOActjrgjw0%3DybMhYYQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CANXPAinVh-P_3sPOzNu5rXbEtQS_EfbvOActjrgjw0%3DybMhYYQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACaE8x7gmY47Q2aG_%3DSZJ-yW8Vu%2Bx6dAbfzXce%2BYT%3DVvKTuxsw%40mail.gmail.com.

Reply via email to