per page, with , order by , clip by
Results of 1 - 10 of about 10 for efficient (0.011 sec.)
Fetch modes 12603
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 ... it more efficient or even blocking it. Use QuerySet.fetch_mode() to set the fetch mode for model instances fetched by a QuerySet : from djan ... tch all missing author fields for the batch of books …for a total of 2 queries. 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 FE ...
https://man.mtool.work/django/6.1/topics/db/fetch-modes.html
データベースアクセスの最適化 11548
データベースアクセスの最適化 Djangoのデータベース層は、開発者がデータベースを最大限活用できるように、さまざまな方法を提供しています。このドキュメントでは、データベースアクセスを最適化する際にとるべき手順を、大まかにいくつかの見出しとしてまと ... , the database may still need to scan everything to evaluate a non-unique condition. Narrowing your query up-front is more efficient. Retrieve related objects efficiently Generally, accessing the database multiple times to retrieve different parts of a si ... ngle "set" of data is less efficient than retrieving it all in one query. This is particularly important if you have a query that is executed in a loop, and co ... queries for efficiency. Use the FETCH_PEERS fetch mode Use the FETCH_PEERS fetch mode to make on-demand field access more efficient with bulk-fetching. Enable it for all usage of your models with a custom manager . Using this fetch mode is easier than de ...
https://man.mtool.work/django/6.1/topics/db/optimization.html
Django 1.0.1 リリースノート 10476
Django 1.0.1 リリースノート Django 1.0.1 へようこそ! This is the first "bugfix" release in the Django 1.0 series, improving the stability and performance of the Django 1.0 codebase. As such, Django 1.0.1 contains no new features (and, pursu ... or comments. Multiple fixes for Django's support of Oracle databases, including pagination support for GIS QuerySets, more efficient slicing of results and improved introspection of existing databases. Several fixes for query support in the Django object- ...
https://man.mtool.work/django/6.1/releases/1.0.1.html
Django の概要 8009
Django の概要 Django は変転の激しいニュースルーム環境で開発された経緯から、よくある Web 開発タスクを迅速かつ簡単化するように設計されています。ここでは Django による データベースを使った Web アプリケーション開発をざっと見てみましょう。 このド ... article_set . all () <QuerySet [<Article: Django is cool>]> # The API follows relationships as far as you need, performing efficient # JOINs for you behind the scenes. # This finds all articles by a reporter whose name starts with "John". >>> Article . ob ...
https://man.mtool.work/django/6.1/intro/overview.html
Django 3.1 リリースノート 8009
Django 3.1 リリースノート August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... now sets the primary key on objects when using MariaDB 10.5+. The DatabaseOperations.sql_flush() method now generates more efficient SQL on MySQL by using DELETE instead of TRUNCATE statements for tables which don't require resetting sequences. SQLite fun ...
https://man.mtool.work/django/6.1/releases/3.1.html
Django 6.1 release notes 8009
Django 6.1 release notes August 5, 2026 Welcome to Django 6.1! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 6.0 or earlier. We've begun the ... FAULT These options handle deletion logic entirely within the database, using the SQL ON DELETE clause. They are thus more efficient than the existing Python-level options, as Django does not need to load objects before deleting them. As a consequence, th ...
https://man.mtool.work/django/6.1/releases/6.1.html
非同期サポート 8009
非同期サポート Django has support for writing asynchronous ("async") views, along with an entirely async-enabled request stack if you are running under ASGI . Async views will still work under WSGI, but with a small per-request adaptation c ... ost (see パフォーマンス ), and without the ability to have efficient long-running requests. Many parts of Django provide asynchronous APIs, including the ORM , the cache framework, authentica ...
https://man.mtool.work/django/6.1/topics/async.html
Django 1.9 リリースノート 7651
Django 1.9 リリースノート December 1, 2015 Django 1.9 へようこそ! このリリースノートでは、 バージョン 1.9 の新機能 と、Django 1.8 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機 ... ange returned a list in Python 2 and a range in Python 3. Django 1.8 consistently returned a list, but an iterator is more efficient. Existing code that depends on list specific features, such as indexing, can be ported by converting the iterator into a l ...
https://man.mtool.work/django/6.1/releases/1.9.html
メールを送信する 7651
メールを送信する Django provides wrappers for Python's email and smtplib modules to simplify composing and sending email. Django's email framework also supports swapping in different delivery mechanisms: you can direct email to the console ... ecuted, while send_mass_mail() uses a single connection for all of its messages. This makes send_mass_mail() slightly more efficient. send_mail() with multiple to addresses sends a single email message, with john@example.com and jane@example.com both appe ... th the legacy compat32 policy, are responsible for implementing their own CRLF injection prevention. Sending many messages efficiently SMTP コネクション (またはその他のネットワークコネクション) の確立とクローズは、負荷の高い処理です。 送信するメールがたく ... d as a context manager, which will automatically call open() and close() as needed. An example is in Sending many messages efficiently . 開発用にメールを設定する Django に電子メールをまったく送信させたくない場合もあるでしょう。たとえば、ウェブサイトの開発 ...
https://man.mtool.work/django/6.1/topics/email.html
モデルフィールドリファレンス 7311
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... update referring objects, whilst the other values make Django perform the relevant actions. The database variants are more efficient because they avoid fetching related objects, but pre_delete and post_delete signals won't be sent when DB_CASCADE is used. ...
https://man.mtool.work/django/6.1/ref/models/fields.html
PREV 1 NEXT