per page, with , order by , clip by
Results of 1 - 10 of about 36 for Prefetch (0.014 sec.)
QuerySet API リファレンス 16118
QuerySet API リファレンス このドキュメントでは、 QuerySet API の詳細を説明しています。 モデル と データベースクエリ ガイドにある説明を前提としていますので、このドキュメントを読む前にこの 2 つを読んでおくことをおすすめします。 このリファレン ... ) with no arguments is deprecated, and support for it will be removed in Django 2028. Specify the fields to fetch instead. prefetch_related() prefetch_related ( * lookups ) Returns a QuerySet that will automatically retrieve the given lookups, each in on ... e extra batch query. Prefetching is a way to optimize database access when you know you'll be accessing related objects later, so you can avoid triggeri ... を避けるため、 select_related を適用できるのは単一値のリレーション、つまり外部キーと一対一の関係に制限されています。 一方、 prefetch_related はリレーションごとに個別のルックアップを行い、Pythonで「結合」を行います。これにより、 select_related でサポートさ ...
https://man.mtool.work/django/6.1/ref/models/querysets.html
Django 1.11.1 リリースノート 9731
Django 1.11.1 リリースノート May 6, 2017 Django 1.11.1 adds a minor feature and fixes several bugs in 1.11. Allowed disabling server-side cursors on PostgreSQL The change in Django 1.11 to make QuerySet.iterator() use server-side cursors on ... opulated ( #28066 ). Fixed layout of ReadOnlyPasswordHashWidget (used in the admin's user change page) ( #28097 ). Allowed prefetch calls on managers with custom ModelIterable subclasses ( #28096 ). Fixed change password link in the contrib.auth admin fo ... 66 ). Corrected the return type of ArrayField(CITextField()) values retrieved from the database ( #28161 ). Fixed QuerySet.prefetch_related() crash when fetching relations in nested Prefetch objects ( #27554 ). Prevented hiding GDAL errors if it's not in ...
https://man.mtool.work/django/6.1/releases/1.11.1.html
データベースアクセスの最適化 9445
データベースアクセスの最適化 Djangoのデータベース層は、開発者がデータベースを最大限活用できるように、さまざまな方法を提供しています。このドキュメントでは、データベースアクセスを最適化する際にとるべき手順を、大まかにいくつかの見出しとしてまと ... our models with a custom manager . Using this fetch mode is easier than declaring fields to fetch with select_related() or prefetch_related() , especially when it's hard to predict which fields will be accessed. QuerySet.select_related() や prefetch_rela ... ted() を使用する When the FETCH_PEERS fetch mode is not appropriate or efficient enough, use select_related() and prefetch_related() . Understand their documentation thoroughly and apply them where needed. It may be useful to apply these methods ... manager is and is not used; for example, related object access uses the base manager rather than the default manager. Use prefetch_related_objects() Where prefetch_related would be useful after the queryset has been evaluated, use prefetch_related_objec ...
https://man.mtool.work/django/6.1/topics/db/optimization.html
Django 1.5.2 リリースノート 8875
Django 1.5.2 リリースノート August 13, 2013 This is Django 1.5.2, a bugfix and security release for Django 1.5. Mitigated possible XSS attack via user-supplied redirect URLs Django relies on user input in some cases (e.g. django.contrib.aut ... t on the admin change page. The display routine of this widget was flawed and allowed for XSS. バグ修正 Fixed a crash with prefetch_related() (#19607) as well as some pickle regressions with prefetch_related (#20157 and #20257). Fixed a regression in dja ...
https://man.mtool.work/django/6.1/releases/1.5.2.html
Django 5.0 リリースノート 8875
Django 5.0 リリースノート 2023年12月4日 Django 5.0 へようこそ! このリリースノートでは、 バージョン 5.0 の新機能 と、Django 4.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... eck_password() メソッドにより、ユーザーパスワードの非同期チェックが可能になりました。 django.contrib.contenttypes QuerySet.prefetch_related() が、不均一な (non-homogeneous) 結果のセットを含む GenericForeignKey のプリフェッチをサポートするようになりました ... するショートカット aget_object_or_404() と aget_list_or_404() が追加されました。 モデルインスタンスの先読みを非同期的に行う aprefetch_related_objects() 関数が追加されました。 QuerySet.aiterator() が以前の prefetch_related() 呼び出しをサポートするようになり ... わりに lookup_cast() を実装すべきです。 django.db.models.enums.ChoicesMeta メタクラスは ChoicesType に名前が変更されました。 Prefetch.get_current_queryset() メソッドは非推奨になりました。 関係マネージャーとディスクリプタの get_prefetch_queryset() メソッドは ...
https://man.mtool.work/django/6.1/releases/5.0.html
Fetch modes 8447
Fetch modes New in Django 6.1. When accessing model fields that were not loaded as part of the original query, Django will fetch that field's data from the database. You can customize the behavior of this fetching with a fetch mode , making ... eries. The batch query makes this mode a lot more efficient than FETCH_ONE and is similar to an on-demand call to QuerySet.prefetch_related() or prefetch_related_objects() . Using FETCH_PEERS can reduce most cases of the "N+1 queries problem" to two quer ...
https://man.mtool.work/django/6.1/topics/db/fetch-modes.html
contenttypes フレームワーク 8304
contenttypes フレームワーク Django には contenttypes アプリケーションが含まれており、 Django を使ったプロジェクトにインストールされているすべてのモデルを追跡し、モデルを扱うための高レベルで汎用的なインターフェースを提供します。 概要 content ... ine [ソース] GenericInlineModelAdmin のサブクラスで、それぞれスタックレイアウトと表形式のレイアウトを持っています。 GenericPrefetch() class GenericPrefetch ( lookup , querysets , to_attr = None ) [ソース] このルックアップは Prefetch() に類似しており、 Ge ... リセットのリストを受け入れます。これは、結果が均質でない GenericForeignKey に便利です。 >>> from django.contrib.contenttypes.prefetch import GenericPrefetch >>> bookmark = Bookmark . objects . create ( url = "https://www.djangoproject.com/" ) >>> animal = ... "great" , content_object = bookmark ) >>> TaggedItem . objects . create ( tag = "awesome" , content_object = animal ) >>> prefetch = GenericPrefetch ( ... "content_object" , [ Bookmark . objects . all (), Animal . objects . only ( "name" )] ... ) >>> Ta ...
https://man.mtool.work/django/6.1/ref/contrib/contenttypes.html
Django 1.7 リリースノート 8304
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... form system checks, you use the check management command. This command replaces the older validate management command. New Prefetch object for advanced prefetch_related operations. The new Prefetch object allows customizing prefetch operations. You can s ... pecify the QuerySet used to traverse a given relation or customize the storage location of prefetch results. This enables things like filtering prefetched relations, calling select_related() from a prefetched relation, or ... prefetching the same relation multiple times with different querysets. See prefetch_related() for more details. Admin shortcuts support time zones The "today" and "now" shortcuts next to date and time input ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 6.0 release notes 8304
Django 6.0 release notes December 3, 2025 Welcome to Django 6.0! These release notes cover the new features , as well as some backwards incompatible changes you should be aware of when upgrading from Django 5.2 or earlier. We've begun the d ... is removed. Support for cx_Oracle is removed. The ChoicesMeta alias to django.db.models.enums.ChoicesType is removed. The Prefetch.get_current_queryset() method is removed. The get_prefetch_queryset() method of related managers and descriptors is remove ... d. get_prefetcher() and prefetch_related_objects() no longer fall back to get_prefetch_queryset() . See 5.1 で非推奨となった機能 for detai ...
https://man.mtool.work/django/6.1/releases/6.0.html
Django 1.7.11 リリースノート 8162
Django 1.7.11 リリースノート November 24, 2015 Django 1.7.11 fixes a security issue and a data loss bug in 1.7.10. Fixed settings leak possibility in date template filter If an application allows users to specify an unvalidated format for d ... ts.get_format() , now only allows accessing the date/time formatting settings. バグ修正 Fixed a data loss possibility with Prefetch if to_attr is set to a ManyToManyField ( #25693 ). ...
https://man.mtool.work/django/6.1/releases/1.7.11.html
PREV 1 2 3 4 NEXT