Thursday, January 14, 2021

Re: Classifieds page loading is to slow

Also don't forget to include Indexing.  

As a general rule, any field that you perform any query against, should be indexed.  
Yes, it costs a "bit" for disk space, but indexing can dramatically increase your query speed.

- Benjamin



On Jan 14, 2021, at 10:44 PM, Benny M <chibenny@outlook.com> wrote:

Slow loading can be sometimes be caused by non-optimized or overly complex queries. Look into prefetch_related and select_related for starters. https://docs.djangoproject.com/en/3.1/ref/models/querysets/

Django Debug Toolbar is also a great packages for examining the interaction between Django's ORM and your database. 

Best,
Benny

On Jan 14, 2021, at 9:18 PM, Salima Begum <salima.b@rohteksolutions.com> wrote:


Hi all,

We are building a Web application, We have a classifieds page that is loading too slow. How to fix this issue. how to reduce loading time of classifieds page.

Thanks
~Salima

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMSz6bnvP51oD_dfhY0YEWiGHGq3DbZ04u%2Bz6Vg_9sBPGvjgOw%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CH2PR14MB391358D987FFC8303F087CD5C0A70%40CH2PR14MB3913.namprd14.prod.outlook.com.

No comments:

Post a Comment