- Language: en
24 results for prefetch_related in version 5.2
-
QuerySet API reference
- … relations = queryset . select_related ( None ) Chaining select_related calls works in a similar way to other methods - that is that select_related('foo', 'bar') is equivalent to select_related('foo').select_related('bar') . prefetch_related …
-
Django 1.7 release notes
- … prefetched relations, calling select_related() from a prefetched relation, or prefetching the same relation multiple …
-
Database access optimization
- … related() and prefetch_related() Understand select_related() and prefetch_related() thoroughly, and use them: in managers …
-
Making queries
- … related objects using a custom reverse manager, use Prefetch() . For example: from django.db.models import Prefetch prefetch_manager = Prefetch ( "entry_set" , queryset = Entry . entries . all ()) Blog . objects . prefetch_related …
-
Django 5.0 release notes
- … prefetch_queryset() method of related managers and descriptors is deprecated. Starting with Django 6.0, get_prefetcher() and prefetch_related …
-
Django Deprecation Timeline
- … prefetch_queryset() method of related managers and descriptors will be removed. get_prefetcher() and prefetch_related …
-
Django 1.10 release notes
- … related_query_name now supports app label and class interpolation using the '%(app_label)s' and '%(class)s' strings. Allowed overriding model fields inherited from abstract base classes. The prefetch_related …
-
Django 4.1 release notes
- … prefetches related objects without providing the chunk_size argument is deprecated. In older versions, no prefetching …
-
Django 1.5.2 release notes
- … prefetch_related() (#19607) as well as some pickle regressions with prefetch_related (#20157 and #20257). Fixed …
-
Django 1.4 release notes
- … related Similar to select_related() but with a different strategy and broader scope, prefetch_related …