Kaydet (Commit) e283c1a2 authored tarafından Luke Plant's avatar Luke Plant

Linked to prefetch_related_objects func in DB optimization docs.

üst 93cdd07e
......@@ -195,12 +195,13 @@ Understand :meth:`~django.db.models.query.QuerySet.select_related` and
:meth:`~django.db.models.query.QuerySet.prefetch_related` thoroughly, and use
them:
* in view code,
* and in :doc:`managers and default managers </topics/db/managers>` where
* in :doc:`managers and default managers </topics/db/managers>` where
appropriate. Be aware when your manager is and is not used; sometimes this is
tricky so don't make assumptions.
* in view code or other layers, possibly making use of
:func:`~django.db.models.prefetch_related_objects` where needed.
Don't retrieve things you don't need
====================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment