per page, with , order by , clip by
Results of 1 - 10 of about 18 for defer (0.006 sec.)
QuerySet API リファレンス 14738
QuerySet API リファレンス このドキュメントでは、 QuerySet API の詳細を説明しています。 モデル と データベースクエリ ガイドにある説明を前提としていますので、このドキュメントを読む前にこの 2 つを読んでおくことをおすすめします。 このリファレン ... values() call. Any extra() call made after a values() call will have its extra selected fields ignored. Calling only() and defer() after values() doesn't make sense, so doing so will raise a TypeError . トランスフォームと集計の処理を組み合わせるには、 ... y this QuerySet . The fetch mode controls on-demand loading of fields when they are accessed, such as for foreign keys and deferred fields. For example, to use the FETCH_PEERS mode to batch-load all related objects on first access: from django.db impo ... 使用したい。 関連オブジェクトのサブセットのみを事前読み込みしたい。 You want to use performance optimization techniques like deferring fields, for example, via defer() or only() : >>> queryset = Pizza . objects . only ( "name" ) >>> >>> restaurants = Re ...
https://man.mtool.work/django/6.1/ref/models/querysets.html
Django 1.6.7 リリースノート 10192
Django 1.6.7 リリースノート September 2, 2014 Django 1.6.7 fixes several bugs in 1.6.6, including a regression related to a security fix in that release. バグ修正 Allowed inherited and m2m fields to be referenced in the admin ( #23329 ). Fi ... xed a crash when using QuerySet.defer() with select_related() ( #23370 ). ...
https://man.mtool.work/django/6.1/releases/1.6.7.html
Tasks 10020
Tasks New in Django 6.0. The Task framework provides the contract and plumbing for background work, not the engine that runs it. The Tasks API defines how work is described, queued, and tracked, but leaves actual execution to external infra ... , or None if not constrained. Defaults to None . This attribute can be set using using() . The backend must have supports_defer set to True to use this feature. Otherwise, InvalidTask is raised. name [ソース] The name of the function decorated with t ... identify the supported functionality of a backend, and potentially change behavior accordingly. BaseTaskBackend. supports_defer Whether the backend supports enqueueing Tasks to be executed after a specific time using the run_after attribute. BaseTask ... he below table notes which of the built-in backends support which features: Feature DummyBackend ImmediateBackend supports_defer Yes No supports_async_task Yes Yes supports_get_result No No [ 1 ] supports_priority Yes [ 2 ] Yes [ 3 ] Available backend ...
https://man.mtool.work/django/6.1/ref/tasks.html
Django 1.8.6 リリースノート 9111
Django 1.8.6 リリースノート November 4, 2015 Django 1.8.6 adds official support for Python 3.5 and fixes several bugs in 1.8.5. バグ修正 Fixed a regression causing ModelChoiceField to ignore prefetch_related() on its queryset ( #25496 ). Al ... h an invalid INSTALLED_APPS setting ( #25510 ). This regression appeared in 1.8.5 as a side effect of fixing #24704 . Made deferred models use their proxied model's _meta.apps for caching and retrieval ( #25563 ). This prevents any models generated in ... data migrations using QuerySet.defer() from leaking to test and application code. Fixed a typo in the name of the strictly_above PostGIS lookup ( #25592 ). Fix ...
https://man.mtool.work/django/6.1/releases/1.8.6.html
データベースアクセスの最適化 8922
データベースアクセスの最適化 Djangoのデータベース層は、開発者がデータベースを最大限活用できるように、さまざまな方法を提供しています。このドキュメントでは、データベースアクセスを最適化する際にとるべき手順を、大まかにいくつかの見出しとしてまと ... late code - as long as the dicts you supply have the same attributes as those used in the template, you are fine. QuerySet.defer() や only() を使用する Use defer() and only() if there are database columns you know that you won't need (or won't need in ... も、データベースは結果の1行のために、非テキスト、非 VARCHAR データのほとんどをディスクから読み込まなければならないからです。 defer() と only() メソッドは、多くのテキストデータの読み込みを避けられる場合や、Python に戻すのに多くの処理が必要なフィールドに対 ...
https://man.mtool.work/django/6.1/topics/db/optimization.html
Django 4.2.2 リリースノート 8561
Django 4.2.2 リリースノート 2023年6月5日 Django 4.2.2 では、4.2.1 におけるいくつかのバグを修正しました。 バグ修正 Django 4.2 におけるリグレッションを修正しました。これにより、Oracle 上の TextField() / BinaryField() に対する __isnull および ... et_prep_value() 呼び出しを復元しました ( #34539 )。 Django 4.2 におけるリグレッションを修正しました。これにより、 QuerySet.defer() に ManyToManyField または GenericForeignKey の参照を渡すとクラッシュする問題が解消されます。これは、以前のバージョンでは ...
https://man.mtool.work/django/6.1/releases/4.2.2.html
Fetch modes 8561
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 ... e ( models . FETCH_PEERS ) Fetch modes apply to: ForeignKey fields OneToOneField fields and their reverse accessors Fields deferred with QuerySet.defer() or QuerySet.only() ジェネリックリレーション(汎用リレーション) Django copies the fetch mode of a ...
https://man.mtool.work/django/6.1/topics/db/fetch-modes.html
Django 4.2.1 リリースノート 8201
Django 4.2.1 リリースノート 2023年5月3日 Django 4.2.1 では、 4.2 における深刻度 "moderate" のセキュリティの問題1件と、いくつかのバグを修正しました。 CVE-2023-31047: 1つのフォームフィールドを使用して複数のファイルをアップロードする際の検証の ... ファイルをアップロードする を参照してください。 バグ修正 Django 4.2 で、属性名でフィールドを遅延読み込みするときに QuerySet.defer() がクラッシュするリグレッションを修正しました ( #34458 )。 SearchVector 関数が % 文字でクラッシュする Django 4.2 のリグレ ...
https://man.mtool.work/django/6.1/releases/4.2.1.html
Django 1.1 リリースノート 7841
Django 1.1 リリースノート July 29, 2009 Django 1.1 へようこそ! Django 1.1 includes a number of nifty new features , lots of bug fixes, and an easy upgrade path from Django 1.0. Backwards-incompatible changes in 1.1 Django has a policy of AP ... he surface to unmanaged models, so the documentation has an explanation of how proxy models differ from unmanaged models . Deferred fields In some complex situations, your models might contain fields which could contain a lot of data (for example, lar ... cular fields, you can now tell Django not to retrieve them from the database. You'll do this with the new queryset methods defer() and only() . Testing improvements A few notable improvements have been made to the testing framework . Test performance ...
https://man.mtool.work/django/6.1/releases/1.1.html
Django 1.10 リリースノート 7841
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... プレートタグが、文字列引数に対して相対パスをサポートするようになりました。 テスト To better catch bugs, TestCase now checks deferrable database constraints at the end of each test. Tests and test cases can be marked with tags and run selectively with t ... es argument of the render_options() method is also removed, making selected_choices the first argument. Tests that violate deferrable database constraints will now error when run on a database that supports deferrable constraints. Built-in management ... ing the Django test client continue to have these "response fixes" applied. Model.__init__() now receives django.db.models.DEFERRED as the value of deferred fields. The Model._deferred attribute is removed as dynamic model classes when using QuerySet. ...
https://man.mtool.work/django/6.1/releases/1.10.html
PREV 1 2 NEXT