regarding how to minimize the access time of the website

11 views
Skip to first unread message

aluka...@gmail.com

unread,
Oct 12, 2017, 7:12:49 AM10/12/17
to Django users

Hello,


I have a table of 8 crore rows and joining it with three tables. Is their any method how can we optimize this issue at present it is taking lot of time to do this.


Thanks,
Raja

Matthew Pava

unread,
Oct 12, 2017, 10:51:06 AM10/12/17
to django...@googlegroups.com
Take a look at Django’s select_related or prefetch_related.

https://docs.djangoproject.com/en/1.11/ref/models/querysets/#select-related
https://docs.djangoproject.com/en/1.11/ref/models/querysets/#prefetch-related
--
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<mailto:django-users...@googlegroups.com>.
To post to this group, send email to django...@googlegroups.com<mailto:django...@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6239cd63-df8c-4f3b-88de-ed075065bc17%40googlegroups.com<https://groups.google.com/d/msgid/django-users/6239cd63-df8c-4f3b-88de-ed075065bc17%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages