Re: Slow Performance of Django Web App

2023-06-17 Thread Lucifer Black
ubject: Re: Slow Performance of Django Web App One important question, what webserver are you using? On Wed, Jun 14, 2023 at 10:34 AM Shaheed Haque mailto:shaheedha...@gmail.com>> wrote: Have you tried using https://django-debug-toolbar.readthedocs.io/en/latest/? It can be a little fiddlin

Re: Slow Performance of Django Web App

2023-06-13 Thread Vishesh Mangla
One important question, what webserver are you using? On Wed, Jun 14, 2023 at 10:34 AM Shaheed Haque wrote: > Have you tried using > https://django-debug-toolbar.readthedocs.io/en/latest/? It can be a > little fiddling about with, but it's time based profiling support has been > invaluable in tr

Re: Slow Performance of Django Web App

2023-06-13 Thread Shaheed Haque
Have you tried using https://django-debug-toolbar.readthedocs.io/en/latest/? It can be a little fiddling about with, but it's time based profiling support has been invaluable in tracking down a few critical queries. On Sun, 11 Jun 2023, 20:00 Kunal Mittal, wrote: > I've a django application serv

Re: Slow Performance of Django Web App

2023-06-13 Thread Vishesh Mangla
https://medium.com/kami-people/profiling-in-django-9f4d403a394f On Tue, Jun 13, 2023 at 11:44 PM Vishesh Mangla wrote: > Try profiling your django code > > On Tue, 13 Jun, 2023, 23:19 Nisha Jose, wrote: > >> Try to check any N+1 issue available in the code. >> >> >> On Mon, Jun 12, 2023 at 9:46

Re: Slow Performance of Django Web App

2023-06-13 Thread Vishesh Mangla
Try profiling your django code On Tue, 13 Jun, 2023, 23:19 Nisha Jose, wrote: > Try to check any N+1 issue available in the code. > > > On Mon, Jun 12, 2023 at 9:46 AM Vishesh Mangla > wrote: > >> Try cdn, and use Statics based on screen size >> >> On Mon, 12 Jun, 2023, 11:14 Vishesh Mangla, >

Re: Slow Performance of Django Web App

2023-06-13 Thread Nisha Jose
Try to check any N+1 issue available in the code. On Mon, Jun 12, 2023 at 9:46 AM Vishesh Mangla wrote: > Try cdn, and use Statics based on screen size > > On Mon, 12 Jun, 2023, 11:14 Vishesh Mangla, > wrote: > >> Lmao >> >> On Mon, 12 Jun, 2023, 10:54 Kunal Mittal, >> wrote: >> >>> I have re

Re: Slow Performance of Django Web App

2023-06-12 Thread 'Steven Mapes' via Django users
To start with I'd look at upgrading the project to the latest version of Django and Python as Python 3.10 and 3.11 have some performance improvements and you'll need to be on a Django 4 version to support them. That aside it sounds like you've got good caching architecture setup since it's wor

Re: Slow Performance of Django Web App

2023-06-11 Thread Vishesh Mangla
Try cdn, and use Statics based on screen size On Mon, 12 Jun, 2023, 11:14 Vishesh Mangla, wrote: > Lmao > > On Mon, 12 Jun, 2023, 10:54 Kunal Mittal, wrote: > >> I have read various docs on performance optimization, but still not >> getting what's taking to render templates and what's the bottl

Re: Slow Performance of Django Web App

2023-06-11 Thread Vishesh Mangla
Lmao On Mon, 12 Jun, 2023, 10:54 Kunal Mittal, 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.

Re: Slow Performance of Django Web App

2023-06-11 Thread Kunal Mittal
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

Re: Slow Performance of Django Web App

2023-06-11 Thread Kunal Mittal
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, wrote: > >> I've a django application serving 10k+

Re: Slow Performance of Django Web App

2023-06-11 Thread carlos
Hi, your read this docs https://docs.djangoproject.com/en/4.2/topics/performance/ and this too https://djangostars.com/blog/django-performance-optimization-tips/ maybe help you Cheers On Sun, Jun 11, 2023 at 1:00 PM Kunal Mittal wrote: > I've a django application serving 10k+ users daily, that

Re: Slow Performance of Django Web App

2023-06-11 Thread Mz Gz
What server do you use ? On Sun, 11 Jun 2023, 10:00 pm Kunal Mittal, 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 a

Slow Performance of Django Web App

2023-06-11 Thread Kunal Mittal
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